feat: Enable traditional Chinese translations (#2266)
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
@@ -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" },
|
||||
|
||||
Reference in New Issue
Block a user