-
-
Notifications
You must be signed in to change notification settings - Fork 553
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: refactored i18n to display real lang name
- Loading branch information
Showing
2 changed files
with
25 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
export enum Languages { | ||
English = "en", | ||
Polish = "pl", | ||
Russian = "ru", | ||
French = "fr", | ||
German = "de", | ||
ChineseTraditional = "zh-Hant", | ||
ChineseSimplified = "zh-Hans", | ||
Turkish = "tr", | ||
Kazakh = "kz", | ||
Persian = "fa", | ||
Korean = "ko", | ||
Portuguese = "pt-br", | ||
Italian = "it", | ||
Japanese = "ja", | ||
Spanish = "es", | ||
} | ||
export const Languages = { | ||
english: { code: "en", name: "English" }, | ||
polish: { code: "pl", name: "Polski" }, | ||
russian: { code: "ru", name: "Русский" }, | ||
french: { code: "fr", name: "Français" }, | ||
german: { code: "de", name: "Deutsch" }, | ||
chineseTraditional: { code: "zh-Hant", name: "繁體中文" }, | ||
chineseSimplified: { code: "zh-Hans", name: "简体中文" }, | ||
turkish: { code: "tr", name: "Türkçe" }, | ||
kazakh: { code: "kz", name: "Қазақ" }, | ||
persian: { code: "fa", name: "فارسی" }, | ||
korean: { code: "ko", name: "한국어" }, | ||
portuguese: { code: "pt-br", name: "Português" }, | ||
italian: { code: "it", name: "Italiano" }, | ||
japanese: { code: "ja", name: "日本語" }, | ||
spanish: { code: "es", name: "Español" }, | ||
}; | ||
|
||
export type Language = keyof typeof Languages; |