Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(i18n): add ar-iq/kw/tn language support #462

Merged
merged 4 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'dev' into i18n/add-ar-new
  • Loading branch information
upupnoah committed Sep 20, 2024
commit e78b1c6a66d0a7e142aee908993e8d06fcbbc448
14 changes: 10 additions & 4 deletions apps/renderer/src/@types/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@ const langs = [
"ar-IQ",
"ar-KW",
"ar-TN",
"zh-HK",
"fi",
"it",
"ru",
"es",
]
export const currentSupportedLanguages = langs.sort()
export const currentSupportedLanguages = ["en", ...langs.sort()]
export const dayjsLocaleImportMap = {
en: ["en", () => import("dayjs/locale/en")],
["zh-CN"]: ["zh-cn", () => import("dayjs/locale/zh-cn")],
Expand All @@ -27,9 +32,10 @@ export const dayjsLocaleImportMap = {
["fr"]: ["fr", () => import("dayjs/locale/fr")],
["pt"]: ["pt", () => import("dayjs/locale/pt")],
["zh-TW"]: ["zh-tw", () => import("dayjs/locale/zh-tw")],
["ar-iq"]: ["ar-iq", () => import("dayjs/locale/ar-iq")],
["ar-kw"]: ["ar-kw", () => import("dayjs/locale/ar-kw")],
["ar-tn"]: ["ar-tn", () => import("dayjs/locale/ar-tn")],
["ar-IQ"]: ["ar-iq", () => import("dayjs/locale/ar-iq")],
["ar-KW"]: ["ar-kw", () => import("dayjs/locale/ar-kw")],
["ar-TN"]: ["ar-tn", () => import("dayjs/locale/ar-tn")],
["zh-HK"]: ["zh-hk", () => import("dayjs/locale/zh-hk")],
}
export const ns = ["app", "common", "lang", "settings", "shortcuts", "errors"] as const
export const defaultNS = "app" as const
3 changes: 3 additions & 0 deletions locales/lang/ar-ma.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"langs.ar-DZ": "العربية (الجزائر)",
"langs.ar-IQ": "العربية (العراق)",
"langs.ar-KW": "العربية (الكويت)",
"langs.ar-MA": "العربية (المغرب)",
"langs.ar-SA": "العربية (السعودية)",
"langs.ar-TN": "العربية (تونس)",
"langs.en": "English",
"langs.es": "Español",
"langs.fr": "Français",
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.