From 1592cd0b0bf93d8f5ff592792d3d2b8b078046e0 Mon Sep 17 00:00:00 2001 From: Charles Zhao Date: Wed, 20 Jul 2022 00:55:45 +0800 Subject: [PATCH] refactor(console): use non-i18n raw string in language select box --- packages/console/src/pages/Settings/index.tsx | 13 ++----------- .../components/LanguagesForm.tsx | 17 +---------------- packages/phrases/src/index.ts | 2 +- .../en/translation/admin-console/settings.ts | 2 -- .../en/translation/admin-console/sign-in-exp.ts | 4 ---- .../zh-cn/translation/admin-console/settings.ts | 2 -- .../translation/admin-console/sign-in-exp.ts | 4 ---- packages/phrases/src/types.ts | 5 +++++ 8 files changed, 9 insertions(+), 40 deletions(-) diff --git a/packages/console/src/pages/Settings/index.tsx b/packages/console/src/pages/Settings/index.tsx index d514f1273..0fd31faa8 100644 --- a/packages/console/src/pages/Settings/index.tsx +++ b/packages/console/src/pages/Settings/index.tsx @@ -1,4 +1,4 @@ -import { Language } from '@logto/phrases'; +import { languageOptions } from '@logto/phrases'; import { AppearanceMode } from '@logto/schemas'; import classNames from 'classnames'; import { Controller, useForm } from 'react-hook-form'; @@ -58,16 +58,7 @@ const Settings = () => { render={({ field: { value, onChange } }) => (