From 1ba3349a473715faf345df8e9cc16b627e448ce7 Mon Sep 17 00:00:00 2001 From: Innei Date: Fri, 20 Sep 2024 09:22:29 +0800 Subject: [PATCH] update Signed-off-by: Innei --- apps/renderer/src/@types/constants.ts | 16 +++++++++++++++- locales/lang/ar-dz.json | 14 -------------- locales/lang/ar-sa.json | 14 -------------- 3 files changed, 15 insertions(+), 29 deletions(-) delete mode 100644 locales/lang/ar-dz.json delete mode 100644 locales/lang/ar-sa.json diff --git a/apps/renderer/src/@types/constants.ts b/apps/renderer/src/@types/constants.ts index b80a4332a4..4bea07a58e 100644 --- a/apps/renderer/src/@types/constants.ts +++ b/apps/renderer/src/@types/constants.ts @@ -1,4 +1,18 @@ -const langs = ["ja", "zh-CN", "zh-TW", "pt", "fr", "ar-DZ", "ar-SA", "ar-MA", "zh-HK","fi","it","ru","es"] +const langs = [ + "ja", + "zh-CN", + "zh-TW", + "pt", + "fr", + "ar-DZ", + "ar-SA", + "ar-MA", + "zh-HK", + "fi", + "it", + "ru", + "es", +] export const currentSupportedLanguages = ["en", ...langs.sort()] export const dayjsLocaleImportMap = { en: ["en", () => import("dayjs/locale/en")], diff --git a/locales/lang/ar-dz.json b/locales/lang/ar-dz.json deleted file mode 100644 index 5de2332c3c..0000000000 --- a/locales/lang/ar-dz.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "langs.ar-DZ": "العربية (الجزائر)", - "langs.ar-MA": "العربية (المغرب)", - "langs.ar-SA": "العربية (السعودية)", - "langs.en": "English", - "langs.es": "Español", - "langs.fr": "Français", - "langs.ja": "日本語", - "langs.pt": "Português", - "langs.zh-CN": "简体中文", - "langs.zh-HK": "繁體中文(香港)", - "langs.zh-TW": "繁體中文(台灣)", - "name": "العربية (الجزائر)" -} diff --git a/locales/lang/ar-sa.json b/locales/lang/ar-sa.json deleted file mode 100644 index fd3a995244..0000000000 --- a/locales/lang/ar-sa.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "langs.ar-DZ": "العربية (الجزائر)", - "langs.ar-MA": "العربية (المغرب)", - "langs.ar-SA": "العربية (السعودية)", - "langs.en": "English", - "langs.es": "Español", - "langs.fr": "Français", - "langs.ja": "日本語", - "langs.pt": "Português", - "langs.zh-CN": "简体中文", - "langs.zh-HK": "繁體中文(香港)", - "langs.zh-TW": "繁體中文(台灣)", - "name": "العربية (السعودية)" -}