Skip to content

Commit

Permalink
Merge pull request coaidev#244 from PeterDaveHelloKitchen/SupportTrad…
Browse files Browse the repository at this point in the history
…itionalChineseZhTW

Add a basic zh-tw i18n locale
  • Loading branch information
zmh-program authored Sep 3, 2024
2 parents 50c6581 + 36f7ffb commit 29b6e6c
Show file tree
Hide file tree
Showing 2 changed files with 820 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import cn from "@/resources/i18n/cn.json";
import en from "@/resources/i18n/en.json";
import ru from "@/resources/i18n/ru.json";
import ja from "@/resources/i18n/ja.json";
import tw from "@/resources/i18n/tw.json";

// the translations
// (tip move them in a JSON file and import them,
Expand All @@ -15,13 +16,15 @@ const resources = {
en: { translation: en },
ru: { translation: ru },
ja: { translation: ja },
tw: { translation: tw },
};

export const langsProps: Record<string, string> = {
cn: "简体中文",
en: "English",
ru: "Русский",
ja: "日本語",
tw: "正體中文",
};

export const supportedLanguages = Object.keys(resources);
Expand Down
Loading

0 comments on commit 29b6e6c

Please sign in to comment.