Files
outline/shared/i18n/index.ts
Tom Moor 53414ec3ba feat: Server side translation setup (#4657)
* Server side translation setup

* docs
2023-01-07 11:52:09 -08:00

75 lines
1.4 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// Note: Updating the available languages? Make sure to also update the
// locales array in app/utils/i18n.js to enable translation for timestamps.
export const languageOptions = [
{
label: "English (US)",
value: "en_US",
},
{
label: "简体中文 (Chinese, Simplified)",
value: "zh_CN",
},
{
label: "繁體中文 (Chinese, Traditional)",
value: "zh_TW",
},
{
label: "Deutsch (German)",
value: "de_DE",
},
{
label: "Español (Spanish)",
value: "es_ES",
},
{
label: "Français (French)",
value: "fr_FR",
},
{
label: "Italiano (Italian)",
value: "it_IT",
},
{
label: "日本語 (Japanese)",
value: "ja_JP",
},
{
label: "한국어 (Korean)",
value: "ko_KR",
},
{
label: "Nederland (Dutch, Netherlands)",
value: "nl_NL",
},
{
label: "Português (Portuguese, Brazil)",
value: "pt_BR",
},
{
label: "Português (Portuguese, Portugal)",
value: "pt_PT",
},
{
label: "Polskie (Polish)",
value: "pl_PL",
},
{
label: "فارسی (Persian)",
value: "fa_IR",
},
{
label: "Pусский (Russian)",
value: "ru_RU",
},
{
label: "Türkçe (Turkish)",
value: "tr_TR",
},
{
label: "Tiếng Việt (Vietnamese)",
value: "vi_VN",
},
];
export const languages: string[] = languageOptions.map((i) => i.value);