feat: Add Polish to languageOptions (#2593)
This commit is contained in:
@ -13,6 +13,7 @@ import {
|
|||||||
zhCN,
|
zhCN,
|
||||||
zhTW,
|
zhTW,
|
||||||
ru,
|
ru,
|
||||||
|
pl,
|
||||||
} from "date-fns/locale";
|
} from "date-fns/locale";
|
||||||
|
|
||||||
const locales = {
|
const locales = {
|
||||||
@ -29,6 +30,7 @@ const locales = {
|
|||||||
zh_CN: zhCN,
|
zh_CN: zhCN,
|
||||||
zh_TW: zhTW,
|
zh_TW: zhTW,
|
||||||
ru_RU: ru,
|
ru_RU: ru,
|
||||||
|
pl_PL: pl,
|
||||||
};
|
};
|
||||||
|
|
||||||
export function dateLocale(userLocale: ?string) {
|
export function dateLocale(userLocale: ?string) {
|
||||||
|
@ -4,7 +4,7 @@ import backend from "i18next-http-backend";
|
|||||||
import { initReactI18next } from "react-i18next";
|
import { initReactI18next } from "react-i18next";
|
||||||
|
|
||||||
// Note: Updating the available languages? Make sure to also update the
|
// Note: Updating the available languages? Make sure to also update the
|
||||||
// locales array in app/components/LocaleTime.js to enable translation for timestamps.
|
// locales array in app/utils/i18n.js to enable translation for timestamps.
|
||||||
export const languageOptions = [
|
export const languageOptions = [
|
||||||
{ label: "English (US)", value: "en_US" },
|
{ label: "English (US)", value: "en_US" },
|
||||||
{ label: "简体中文 (Chinese, Simplified)", value: "zh_CN" },
|
{ label: "简体中文 (Chinese, Simplified)", value: "zh_CN" },
|
||||||
@ -19,6 +19,7 @@ export const languageOptions = [
|
|||||||
{ label: "Português (Brazil)", value: "pt_BR" },
|
{ label: "Português (Brazil)", value: "pt_BR" },
|
||||||
{ label: "Português (Portugal)", value: "pt_PT" },
|
{ label: "Português (Portugal)", value: "pt_PT" },
|
||||||
{ label: "Pусский (Россия)", value: "ru_RU" },
|
{ label: "Pусский (Россия)", value: "ru_RU" },
|
||||||
|
{ label: "Polskie (Polska)", value: "pl_PL" },
|
||||||
];
|
];
|
||||||
|
|
||||||
export const languages: string[] = languageOptions.map((i) => i.value);
|
export const languages: string[] = languageOptions.map((i) => i.value);
|
||||||
|
Reference in New Issue
Block a user