diff --git a/.prettierrc b/.prettierrc index b3429d3..94099b0 100644 --- a/.prettierrc +++ b/.prettierrc @@ -8,5 +8,6 @@ "trailingComma": "es5", "bracketSpacing": true, "jsxBracketSameLine": false, - "arrowParens": "always" + "arrowParens": "always", + "quoteProps": "consistent" } diff --git a/public/locales/zh b/public/locales/zh new file mode 120000 index 0000000..a1532d8 --- /dev/null +++ b/public/locales/zh @@ -0,0 +1 @@ +zh-CN \ No newline at end of file diff --git a/src/components/LanguageSelector/LanguageSelector.tsx b/src/components/LanguageSelector/LanguageSelector.tsx index ea6999d..1652716 100644 --- a/src/components/LanguageSelector/LanguageSelector.tsx +++ b/src/components/LanguageSelector/LanguageSelector.tsx @@ -2,7 +2,7 @@ import React, { useState } from 'react'; import { useTranslation } from 'react-i18next'; import DownChevronArrow from '@icon/DownChevronArrow'; -import { i18nLanguages } from '@src/i18n'; +import { languageCodeToName, selectableLanguages } from '@constants/language'; const LanguageSelector = () => { const { i18n } = useTranslation(); @@ -11,24 +11,25 @@ const LanguageSelector = () => { return (