feat: Enable traditional Chinese translations (#2266)

This commit is contained in:
Tom Moor
2021-07-02 12:08:08 -07:00
committed by GitHub
parent 1c0c694c22
commit 04eabe68a7
2 changed files with 15 additions and 1 deletions

View File

@@ -1,6 +1,18 @@
// @flow
import { format, formatDistanceToNow } from "date-fns";
import { enUS, de, fr, es, it, ko, ptBR, pt, zhCN, ru } from "date-fns/locale";
import {
enUS,
de,
fr,
es,
it,
ko,
ptBR,
pt,
zhCN,
zhTW,
ru,
} from "date-fns/locale";
import * as React from "react";
import Tooltip from "components/Tooltip";
import useUserLocale from "hooks/useUserLocale";
@@ -15,6 +27,7 @@ const locales = {
pt_BR: ptBR,
pt_PT: pt,
zh_CN: zhCN,
zh_TW: zhTW,
ru_RU: ru,
};

View File

@@ -8,6 +8,7 @@ import { initReactI18next } from "react-i18next";
export const languageOptions = [
{ label: "English (US)", value: "en_US" },
{ label: "简体中文 (Chinese, Simplified)", value: "zh_CN" },
{ label: "繁體中文 (Chinese, Traditional)", value: "zh_TW" },
{ label: "Deutsch (Deutschland)", value: "de_DE" },
{ label: "Español (España)", value: "es_ES" },
{ label: "Français (France)", value: "fr_FR" },