feat: italian translations (#6692)
* Create translations.json - ITALIAN translation (#6667) * chore: italian translation updated * feat: italian translation added * fix: module end date translation --------- Co-authored-by: Nicolas Bossi <nicolasbossi@gmail.com> Co-authored-by: gakshita <akshitagoyal1516@gmail.com>
This commit is contained in:
parent
9487c02954
commit
f8997446e2
5 changed files with 2369 additions and 3 deletions
|
|
@ -9,6 +9,7 @@ export const SUPPORTED_LANGUAGES: ILanguageOption[] = [
|
|||
{ label: "日本語", value: "ja" },
|
||||
{ label: "中文", value: "zh-CN" },
|
||||
{ label: "Русский", value: "ru" },
|
||||
{ label: "Italian", value: "it" },
|
||||
];
|
||||
|
||||
export const STORAGE_KEY = "userLanguage";
|
||||
|
|
|
|||
2363
packages/i18n/src/locales/it/translations.json
Normal file
2363
packages/i18n/src/locales/it/translations.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -149,6 +149,8 @@ export class TranslationStore {
|
|||
return import("../locales/zh-CN/translations.json");
|
||||
case "ru":
|
||||
return import("../locales/ru/translations.json");
|
||||
case "it":
|
||||
return import("../locales/it/translations.json");
|
||||
default:
|
||||
throw new Error(`Unsupported language: ${language}`);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
export type TLanguage = "en" | "fr" | "es" | "ja" | "zh-CN" | "ru";
|
||||
export type TLanguage = "en" | "fr" | "es" | "ja" | "zh-CN" | "ru" | "it";
|
||||
|
||||
export interface ILanguageOption {
|
||||
label: string;
|
||||
|
|
|
|||
|
|
@ -417,7 +417,7 @@ export const ModuleAnalyticsSidebar: React.FC<Props> = observer((props) => {
|
|||
<CalendarClock className="h-4 w-4" />
|
||||
<span className="text-base">{t("date_range")}</span>
|
||||
</div>
|
||||
<div className="h-7 w-3/5">
|
||||
<div className="h-7">
|
||||
<Controller
|
||||
control={control}
|
||||
name="start_date"
|
||||
|
|
@ -443,7 +443,7 @@ export const ModuleAnalyticsSidebar: React.FC<Props> = observer((props) => {
|
|||
}}
|
||||
placeholder={{
|
||||
from: t("start_date"),
|
||||
to: t("target_date"),
|
||||
to: t("end_date"),
|
||||
}}
|
||||
disabled={!isEditingAllowed || isArchived}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue