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:
Anmol Singh Bhatia 2025-03-03 19:56:39 +05:30 committed by GitHub
parent 9487c02954
commit f8997446e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 2369 additions and 3 deletions

View file

@ -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";

File diff suppressed because it is too large Load diff

View file

@ -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}`);
}

View file

@ -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;

View file

@ -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}
/>