feat: Add Polish to languageOptions (#2593)

This commit is contained in:
Saumya Pandey
2021-09-19 22:15:26 +05:30
committed by GitHub
parent 313067ff7b
commit 9c3c0fe418
2 changed files with 4 additions and 1 deletions

View File

@ -13,6 +13,7 @@ import {
zhCN,
zhTW,
ru,
pl,
} from "date-fns/locale";
const locales = {
@ -29,6 +30,7 @@ const locales = {
zh_CN: zhCN,
zh_TW: zhTW,
ru_RU: ru,
pl_PL: pl,
};
export function dateLocale(userLocale: ?string) {

View File

@ -4,7 +4,7 @@ import backend from "i18next-http-backend";
import { initReactI18next } from "react-i18next";
// 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 = [
{ label: "English (US)", value: "en_US" },
{ label: "简体中文 (Chinese, Simplified)", value: "zh_CN" },
@ -19,6 +19,7 @@ export const languageOptions = [
{ label: "Português (Brazil)", value: "pt_BR" },
{ label: "Português (Portugal)", value: "pt_PT" },
{ label: "Pусский (Россия)", value: "ru_RU" },
{ label: "Polskie (Polska)", value: "pl_PL" },
];
export const languages: string[] = languageOptions.map((i) => i.value);