From 083ef8379e5a7e00c5e7f80ae615303b58072b1c Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Fri, 15 Sep 2023 10:29:41 +0800 Subject: [PATCH 1/2] refactor: ui -> experience (part 2) Rename `phrases-ui` to `phrases-experience`. --- packages/cli/package.json | 2 +- packages/cli/src/commands/translate/create.ts | 6 ++-- .../cli/src/commands/translate/list-tags.ts | 4 +-- .../src/commands/translate/sync-keys/index.ts | 6 ++-- packages/cli/src/commands/translate/sync.ts | 4 +-- packages/cli/src/commands/translate/utils.ts | 2 +- packages/cli/src/utils.ts | 4 +-- packages/console/package.json | 2 +- .../console/src/hooks/use-ui-languages.ts | 2 +- .../LanguageEditor/LanguageDetails.tsx | 4 +-- .../pages/SignInExperience/utils/language.ts | 2 +- packages/core/package.json | 2 +- packages/core/src/libraries/phrase.test.ts | 2 +- packages/core/src/libraries/phrase.ts | 4 +-- .../sign-in-experience/index.test.ts | 2 +- .../src/libraries/sign-in-experience/index.ts | 2 +- .../core/src/routes/custom-phrase.test.ts | 2 +- packages/core/src/routes/custom-phrase.ts | 2 +- ...ell-known.phrases.content-language.test.ts | 2 +- .../src/routes/well-known.phrases.test.ts | 2 +- packages/core/src/routes/well-known.ts | 2 +- packages/core/src/utils/translation.test.ts | 4 +-- .../CHANGELOG.md | 0 packages/phrases-experience/README.md | 3 ++ .../package.json | 4 +-- .../src/index.ts | 0 .../src/locales/de/action.ts | 0 .../src/locales/de/demo-app.ts | 0 .../src/locales/de/description.ts | 0 .../src/locales/de/error/index.ts | 0 .../src/locales/de/error/password-rejected.ts | 0 .../src/locales/de/index.ts | 0 .../src/locales/de/input.ts | 0 .../src/locales/de/list.ts | 0 .../src/locales/de/secondary.ts | 0 .../src/locales/en/action.ts | 0 .../src/locales/en/demo-app.ts | 0 .../src/locales/en/description.ts | 0 .../src/locales/en/error/index.ts | 0 .../src/locales/en/error/password-rejected.ts | 0 .../src/locales/en/index.ts | 0 .../src/locales/en/input.ts | 0 .../src/locales/en/list.ts | 0 .../src/locales/en/secondary.ts | 0 .../src/locales/es/action.ts | 0 .../src/locales/es/demo-app.ts | 0 .../src/locales/es/description.ts | 0 .../src/locales/es/error/index.ts | 0 .../src/locales/es/error/password-rejected.ts | 0 .../src/locales/es/index.ts | 0 .../src/locales/es/input.ts | 0 .../src/locales/es/list.ts | 0 .../src/locales/es/secondary.ts | 0 .../src/locales/fr/action.ts | 0 .../src/locales/fr/demo-app.ts | 0 .../src/locales/fr/description.ts | 0 .../src/locales/fr/error/index.ts | 0 .../src/locales/fr/error/password-rejected.ts | 0 .../src/locales/fr/index.ts | 0 .../src/locales/fr/input.ts | 0 .../src/locales/fr/list.ts | 0 .../src/locales/fr/secondary.ts | 0 .../src/locales/it/action.ts | 0 .../src/locales/it/demo-app.ts | 0 .../src/locales/it/description.ts | 0 .../src/locales/it/error/index.ts | 0 .../src/locales/it/error/password-rejected.ts | 0 .../src/locales/it/index.ts | 0 .../src/locales/it/input.ts | 0 .../src/locales/it/list.ts | 0 .../src/locales/it/secondary.ts | 0 .../src/locales/ja/action.ts | 0 .../src/locales/ja/demo-app.ts | 0 .../src/locales/ja/description.ts | 0 .../src/locales/ja/error/index.ts | 0 .../src/locales/ja/error/password-rejected.ts | 0 .../src/locales/ja/index.ts | 0 .../src/locales/ja/input.ts | 0 .../src/locales/ja/list.ts | 0 .../src/locales/ja/secondary.ts | 0 .../src/locales/ko/action.ts | 0 .../src/locales/ko/demo-app.ts | 0 .../src/locales/ko/description.ts | 0 .../src/locales/ko/error/index.ts | 0 .../src/locales/ko/error/password-rejected.ts | 0 .../src/locales/ko/index.ts | 0 .../src/locales/ko/input.ts | 0 .../src/locales/ko/list.ts | 0 .../src/locales/ko/secondary.ts | 0 .../src/locales/pl-pl/action.ts | 0 .../src/locales/pl-pl/demo-app.ts | 0 .../src/locales/pl-pl/description.ts | 0 .../src/locales/pl-pl/error/index.ts | 0 .../locales/pl-pl/error/password-rejected.ts | 0 .../src/locales/pl-pl/index.ts | 0 .../src/locales/pl-pl/input.ts | 0 .../src/locales/pl-pl/list.ts | 0 .../src/locales/pl-pl/secondary.ts | 0 .../src/locales/pt-br/action.ts | 0 .../src/locales/pt-br/demo-app.ts | 0 .../src/locales/pt-br/description.ts | 0 .../src/locales/pt-br/error/index.ts | 0 .../locales/pt-br/error/password-rejected.ts | 0 .../src/locales/pt-br/index.ts | 0 .../src/locales/pt-br/input.ts | 0 .../src/locales/pt-br/list.ts | 0 .../src/locales/pt-br/secondary.ts | 0 .../src/locales/pt-pt/action.ts | 0 .../src/locales/pt-pt/demo-app.ts | 0 .../src/locales/pt-pt/description.ts | 0 .../src/locales/pt-pt/error/index.ts | 0 .../locales/pt-pt/error/password-rejected.ts | 0 .../src/locales/pt-pt/index.ts | 0 .../src/locales/pt-pt/input.ts | 0 .../src/locales/pt-pt/list.ts | 0 .../src/locales/pt-pt/secondary.ts | 0 .../src/locales/ru/action.ts | 0 .../src/locales/ru/demo-app.ts | 0 .../src/locales/ru/description.ts | 0 .../src/locales/ru/error/index.ts | 0 .../src/locales/ru/error/password-rejected.ts | 0 .../src/locales/ru/index.ts | 0 .../src/locales/ru/input.ts | 0 .../src/locales/ru/list.ts | 0 .../src/locales/ru/secondary.ts | 0 .../src/locales/tr-tr/action.ts | 0 .../src/locales/tr-tr/demo-app.ts | 0 .../src/locales/tr-tr/description.ts | 0 .../src/locales/tr-tr/error/index.ts | 0 .../locales/tr-tr/error/password-rejected.ts | 0 .../src/locales/tr-tr/index.ts | 0 .../src/locales/tr-tr/input.ts | 0 .../src/locales/tr-tr/list.ts | 0 .../src/locales/tr-tr/secondary.ts | 0 .../src/locales/zh-cn/action.ts | 0 .../src/locales/zh-cn/demo-app.ts | 0 .../src/locales/zh-cn/description.ts | 0 .../src/locales/zh-cn/error/index.ts | 0 .../locales/zh-cn/error/password-rejected.ts | 0 .../src/locales/zh-cn/index.ts | 0 .../src/locales/zh-cn/input.ts | 0 .../src/locales/zh-cn/list.ts | 0 .../src/locales/zh-cn/secondary.ts | 0 .../src/locales/zh-hk/action.ts | 0 .../src/locales/zh-hk/demo-app.ts | 0 .../src/locales/zh-hk/description.ts | 0 .../src/locales/zh-hk/error/index.ts | 0 .../locales/zh-hk/error/password-rejected.ts | 0 .../src/locales/zh-hk/index.ts | 0 .../src/locales/zh-hk/input.ts | 0 .../src/locales/zh-hk/list.ts | 0 .../src/locales/zh-hk/secondary.ts | 0 .../src/locales/zh-tw/action.ts | 0 .../src/locales/zh-tw/demo-app.ts | 0 .../src/locales/zh-tw/description.ts | 0 .../src/locales/zh-tw/error/index.ts | 0 .../locales/zh-tw/error/password-rejected.ts | 0 .../src/locales/zh-tw/index.ts | 0 .../src/locales/zh-tw/input.ts | 0 .../src/locales/zh-tw/list.ts | 0 .../src/locales/zh-tw/secondary.ts | 0 .../src/types.ts | 0 .../tsconfig.json | 0 packages/phrases-ui/README.md | 11 ------- packages/schemas/package.json | 2 +- packages/ui/package.json | 2 +- packages/ui/src/i18n/utils.ts | 4 +-- packages/ui/src/include.d/i18next.d.ts | 2 +- pnpm-lock.yaml | 31 ++++++++----------- 169 files changed, 55 insertions(+), 68 deletions(-) rename packages/{phrases-ui => phrases-experience}/CHANGELOG.md (100%) create mode 100644 packages/phrases-experience/README.md rename packages/{phrases-ui => phrases-experience}/package.json (93%) rename packages/{phrases-ui => phrases-experience}/src/index.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/de/action.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/de/demo-app.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/de/description.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/de/error/index.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/de/error/password-rejected.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/de/index.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/de/input.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/de/list.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/de/secondary.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/en/action.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/en/demo-app.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/en/description.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/en/error/index.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/en/error/password-rejected.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/en/index.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/en/input.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/en/list.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/en/secondary.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/es/action.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/es/demo-app.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/es/description.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/es/error/index.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/es/error/password-rejected.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/es/index.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/es/input.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/es/list.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/es/secondary.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/fr/action.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/fr/demo-app.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/fr/description.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/fr/error/index.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/fr/error/password-rejected.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/fr/index.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/fr/input.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/fr/list.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/fr/secondary.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/it/action.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/it/demo-app.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/it/description.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/it/error/index.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/it/error/password-rejected.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/it/index.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/it/input.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/it/list.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/it/secondary.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/ja/action.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/ja/demo-app.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/ja/description.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/ja/error/index.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/ja/error/password-rejected.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/ja/index.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/ja/input.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/ja/list.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/ja/secondary.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/ko/action.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/ko/demo-app.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/ko/description.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/ko/error/index.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/ko/error/password-rejected.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/ko/index.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/ko/input.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/ko/list.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/ko/secondary.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/pl-pl/action.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/pl-pl/demo-app.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/pl-pl/description.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/pl-pl/error/index.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/pl-pl/error/password-rejected.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/pl-pl/index.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/pl-pl/input.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/pl-pl/list.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/pl-pl/secondary.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/pt-br/action.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/pt-br/demo-app.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/pt-br/description.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/pt-br/error/index.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/pt-br/error/password-rejected.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/pt-br/index.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/pt-br/input.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/pt-br/list.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/pt-br/secondary.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/pt-pt/action.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/pt-pt/demo-app.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/pt-pt/description.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/pt-pt/error/index.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/pt-pt/error/password-rejected.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/pt-pt/index.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/pt-pt/input.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/pt-pt/list.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/pt-pt/secondary.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/ru/action.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/ru/demo-app.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/ru/description.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/ru/error/index.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/ru/error/password-rejected.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/ru/index.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/ru/input.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/ru/list.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/ru/secondary.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/tr-tr/action.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/tr-tr/demo-app.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/tr-tr/description.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/tr-tr/error/index.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/tr-tr/error/password-rejected.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/tr-tr/index.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/tr-tr/input.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/tr-tr/list.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/tr-tr/secondary.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/zh-cn/action.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/zh-cn/demo-app.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/zh-cn/description.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/zh-cn/error/index.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/zh-cn/error/password-rejected.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/zh-cn/index.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/zh-cn/input.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/zh-cn/list.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/zh-cn/secondary.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/zh-hk/action.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/zh-hk/demo-app.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/zh-hk/description.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/zh-hk/error/index.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/zh-hk/error/password-rejected.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/zh-hk/index.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/zh-hk/input.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/zh-hk/list.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/zh-hk/secondary.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/zh-tw/action.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/zh-tw/demo-app.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/zh-tw/description.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/zh-tw/error/index.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/zh-tw/error/password-rejected.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/zh-tw/index.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/zh-tw/input.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/zh-tw/list.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/locales/zh-tw/secondary.ts (100%) rename packages/{phrases-ui => phrases-experience}/src/types.ts (100%) rename packages/{phrases-ui => phrases-experience}/tsconfig.json (100%) delete mode 100644 packages/phrases-ui/README.md diff --git a/packages/cli/package.json b/packages/cli/package.json index 43ff42179..515c8d925 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -47,7 +47,7 @@ "@logto/core-kit": "workspace:^2.0.1", "@logto/language-kit": "workspace:^1.0.0", "@logto/phrases": "workspace:^1.4.1", - "@logto/phrases-ui": "workspace:^1.2.0", + "@logto/phrases-experience": "workspace:^1.2.0", "@logto/schemas": "workspace:1.8.0", "@logto/shared": "workspace:^2.0.0", "@silverhand/essentials": "^2.8.4", diff --git a/packages/cli/src/commands/translate/create.ts b/packages/cli/src/commands/translate/create.ts index b1ad370f1..3e6f1a6ae 100644 --- a/packages/cli/src/commands/translate/create.ts +++ b/packages/cli/src/commands/translate/create.ts @@ -1,6 +1,6 @@ import { isLanguageTag } from '@logto/language-kit'; import { isBuiltInLanguageTag as isPhrasesBuiltInLanguageTag } from '@logto/phrases'; -import { isBuiltInLanguageTag as isPhrasesUiBuiltInLanguageTag } from '@logto/phrases-ui'; +import { isBuiltInLanguageTag as isPhrasesUiBuiltInLanguageTag } from '@logto/phrases-experience'; import type { CommandModule } from 'yargs'; import { consoleLog, inquireInstancePath } from '../../utils.js'; @@ -37,12 +37,12 @@ const create: CommandModule<{ path?: string }, { path?: string; 'language-tag': if (isPhrasesUiBuiltInLanguageTag(languageTag)) { consoleLog.info( - languageTag + ' is a built-in tag of phrases-ui, updating untranslated phrases' + languageTag + ' is a built-in tag of phrases-experience, updating untranslated phrases' ); } await createFullTranslation({ instancePath, - packageName: 'phrases-ui', + packageName: 'phrases-experience', languageTag, }); }, diff --git a/packages/cli/src/commands/translate/list-tags.ts b/packages/cli/src/commands/translate/list-tags.ts index 470074612..498fbf562 100644 --- a/packages/cli/src/commands/translate/list-tags.ts +++ b/packages/cli/src/commands/translate/list-tags.ts @@ -1,6 +1,6 @@ import { languages } from '@logto/language-kit'; import { isBuiltInLanguageTag as isPhrasesBuiltInLanguageTag } from '@logto/phrases'; -import { isBuiltInLanguageTag as isPhrasesUiBuiltInLanguageTag } from '@logto/phrases-ui'; +import { isBuiltInLanguageTag as isPhrasesUiBuiltInLanguageTag } from '@logto/phrases-experience'; import chalk from 'chalk'; import type { CommandModule } from 'yargs'; @@ -16,7 +16,7 @@ const listTags: CommandModule> = { ...[ tag, isPhrasesBuiltInLanguageTag(tag) && chalk.blue('phrases'), - isPhrasesUiBuiltInLanguageTag(tag) && chalk.blue('phrases-ui'), + isPhrasesUiBuiltInLanguageTag(tag) && chalk.blue('phrases-experience'), ].filter(Boolean) ); } diff --git a/packages/cli/src/commands/translate/sync-keys/index.ts b/packages/cli/src/commands/translate/sync-keys/index.ts index 5191ceda4..6fd3fc12b 100644 --- a/packages/cli/src/commands/translate/sync-keys/index.ts +++ b/packages/cli/src/commands/translate/sync-keys/index.ts @@ -31,7 +31,7 @@ const syncKeys: CommandModule< .option('package', { alias: 'pkg', type: 'string', - describe: 'The package name of the phrases, one of `phrases` or `phrases-ui`', + describe: 'The package name of the phrases, one of `phrases` or `phrases-experience`', default: 'phrases', }) .option('target', { @@ -64,8 +64,8 @@ const syncKeys: CommandModule< consoleLog.fatal('Baseline and target cannot be the same'); } - if (packageName !== 'phrases' && packageName !== 'phrases-ui') { - consoleLog.fatal('Invalid package name, expected `phrases` or `phrases-ui`'); + if (packageName !== 'phrases' && packageName !== 'phrases-experience') { + consoleLog.fatal('Invalid package name, expected `phrases` or `phrases-experience`'); } const instancePath = await inquireInstancePath(inputPath); diff --git a/packages/cli/src/commands/translate/sync.ts b/packages/cli/src/commands/translate/sync.ts index 5037c4499..9a65b8694 100644 --- a/packages/cli/src/commands/translate/sync.ts +++ b/packages/cli/src/commands/translate/sync.ts @@ -1,6 +1,6 @@ import { languages } from '@logto/language-kit'; import { isBuiltInLanguageTag as isPhrasesBuiltInLanguageTag } from '@logto/phrases'; -import { isBuiltInLanguageTag as isPhrasesUiBuiltInLanguageTag } from '@logto/phrases-ui'; +import { isBuiltInLanguageTag as isPhrasesUiBuiltInLanguageTag } from '@logto/phrases-experience'; import PQueue from 'p-queue'; import type { CommandModule } from 'yargs'; @@ -39,7 +39,7 @@ const sync: CommandModule<{ path?: string }, { path?: string }> = { if (isPhrasesUiBuiltInLanguageTag(languageTag)) { await syncTranslation({ ...baseOptions, - packageName: 'phrases-ui', + packageName: 'phrases-experience', languageTag, }); } diff --git a/packages/cli/src/commands/translate/utils.ts b/packages/cli/src/commands/translate/utils.ts index 40b9c88cf..dc3238814 100644 --- a/packages/cli/src/commands/translate/utils.ts +++ b/packages/cli/src/commands/translate/utils.ts @@ -43,7 +43,7 @@ export const readBaseLocaleFiles = async (directory: string): Promise export type TranslationOptions = { instancePath: string; - packageName: 'phrases' | 'phrases-ui'; + packageName: 'phrases' | 'phrases-experience'; languageTag: LanguageTag; verbose?: boolean; queue?: PQueue; diff --git a/packages/cli/src/utils.ts b/packages/cli/src/utils.ts index b0cacbc8d..aa2313ca3 100644 --- a/packages/cli/src/utils.ts +++ b/packages/cli/src/utils.ts @@ -275,13 +275,13 @@ export const lintLocaleFiles = async ( /** Logto instance path */ instancePath: string, /** Target package name, ignore to lint both packages */ - packageName?: 'phrases' | 'phrases-ui' + packageName?: 'phrases' | 'phrases-experience' ) => { const spinner = ora({ text: 'Running `eslint --fix` for locales', }).start(); - const targetPackages = packageName ? [packageName] : ['phrases', 'phrases-ui']; + const targetPackages = packageName ? [packageName] : ['phrases', 'phrases-experience']; await Promise.all( targetPackages.map(async (packageName) => { diff --git a/packages/console/package.json b/packages/console/package.json index c9d024dec..904ffa4ff 100644 --- a/packages/console/package.json +++ b/packages/console/package.json @@ -31,7 +31,7 @@ "@logto/core-kit": "workspace:^2.0.1", "@logto/language-kit": "workspace:^1.0.0", "@logto/phrases": "workspace:^1.4.1", - "@logto/phrases-ui": "workspace:^1.2.0", + "@logto/phrases-experience": "workspace:^1.2.0", "@logto/react": "^2.1.0", "@logto/schemas": "workspace:^1.8.0", "@logto/shared": "workspace:^2.0.0", diff --git a/packages/console/src/hooks/use-ui-languages.ts b/packages/console/src/hooks/use-ui-languages.ts index 4f5b1234c..90413a047 100644 --- a/packages/console/src/hooks/use-ui-languages.ts +++ b/packages/console/src/hooks/use-ui-languages.ts @@ -1,5 +1,5 @@ import type { LanguageTag } from '@logto/language-kit'; -import { builtInLanguages as builtInUiLanguages } from '@logto/phrases-ui'; +import { builtInLanguages as builtInUiLanguages } from '@logto/phrases-experience'; import { deduplicate } from '@silverhand/essentials'; import { useCallback, useMemo } from 'react'; import useSWR from 'swr'; diff --git a/packages/console/src/pages/SignInExperience/tabs/Content/components/ManageLanguage/LanguageEditor/LanguageDetails.tsx b/packages/console/src/pages/SignInExperience/tabs/Content/components/ManageLanguage/LanguageEditor/LanguageDetails.tsx index e2353bc47..5e90c642f 100644 --- a/packages/console/src/pages/SignInExperience/tabs/Content/components/ManageLanguage/LanguageEditor/LanguageDetails.tsx +++ b/packages/console/src/pages/SignInExperience/tabs/Content/components/ManageLanguage/LanguageEditor/LanguageDetails.tsx @@ -1,7 +1,7 @@ import type { LanguageTag } from '@logto/language-kit'; import { languages as uiLanguageNameMapping } from '@logto/language-kit'; -import resource, { isBuiltInLanguageTag } from '@logto/phrases-ui'; -import en from '@logto/phrases-ui/lib/locales/en'; +import resource, { isBuiltInLanguageTag } from '@logto/phrases-experience'; +import en from '@logto/phrases-experience/lib/locales/en'; import type { SignInExperience, Translation } from '@logto/schemas'; import cleanDeep from 'clean-deep'; import deepmerge from 'deepmerge'; diff --git a/packages/console/src/pages/SignInExperience/utils/language.ts b/packages/console/src/pages/SignInExperience/utils/language.ts index 769d98902..69b2e8f5e 100644 --- a/packages/console/src/pages/SignInExperience/utils/language.ts +++ b/packages/console/src/pages/SignInExperience/utils/language.ts @@ -1,4 +1,4 @@ -import en from '@logto/phrases-ui/lib/locales/en'; +import en from '@logto/phrases-experience/lib/locales/en'; import type { Translation } from '@logto/schemas'; export const flattenTranslation = ( diff --git a/packages/core/package.json b/packages/core/package.json index 988cba4ac..0e52963bd 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -37,7 +37,7 @@ "@logto/demo-app": "workspace:*", "@logto/language-kit": "workspace:^1.0.0", "@logto/phrases": "workspace:^1.4.1", - "@logto/phrases-ui": "workspace:^1.2.0", + "@logto/phrases-experience": "workspace:^1.2.0", "@logto/schemas": "workspace:^1.8.0", "@logto/shared": "workspace:^2.0.0", "@logto/ui": "workspace:*", diff --git a/packages/core/src/libraries/phrase.test.ts b/packages/core/src/libraries/phrase.test.ts index 811e6082c..2fa9f3f9d 100644 --- a/packages/core/src/libraries/phrase.test.ts +++ b/packages/core/src/libraries/phrase.test.ts @@ -1,4 +1,4 @@ -import resource from '@logto/phrases-ui'; +import resource from '@logto/phrases-experience'; import { type CustomPhrase } from '@logto/schemas'; import deepmerge from 'deepmerge'; diff --git a/packages/core/src/libraries/phrase.ts b/packages/core/src/libraries/phrase.ts index b134f8a44..6afa643c1 100644 --- a/packages/core/src/libraries/phrase.ts +++ b/packages/core/src/libraries/phrase.ts @@ -1,5 +1,5 @@ -import type { LocalePhrase } from '@logto/phrases-ui'; -import resource, { isBuiltInLanguageTag } from '@logto/phrases-ui'; +import type { LocalePhrase } from '@logto/phrases-experience'; +import resource, { isBuiltInLanguageTag } from '@logto/phrases-experience'; import { trySafe } from '@silverhand/essentials'; import cleanDeep from 'clean-deep'; import deepmerge from 'deepmerge'; diff --git a/packages/core/src/libraries/sign-in-experience/index.test.ts b/packages/core/src/libraries/sign-in-experience/index.test.ts index dad05a3ec..5134ad937 100644 --- a/packages/core/src/libraries/sign-in-experience/index.test.ts +++ b/packages/core/src/libraries/sign-in-experience/index.test.ts @@ -1,5 +1,5 @@ import type { LanguageTag } from '@logto/language-kit'; -import { builtInLanguages } from '@logto/phrases-ui'; +import { builtInLanguages } from '@logto/phrases-experience'; import type { CreateSignInExperience, SignInExperience } from '@logto/schemas'; import { diff --git a/packages/core/src/libraries/sign-in-experience/index.ts b/packages/core/src/libraries/sign-in-experience/index.ts index 42a8e59bd..5596837f6 100644 --- a/packages/core/src/libraries/sign-in-experience/index.ts +++ b/packages/core/src/libraries/sign-in-experience/index.ts @@ -1,4 +1,4 @@ -import { builtInLanguages } from '@logto/phrases-ui'; +import { builtInLanguages } from '@logto/phrases-experience'; import type { ConnectorMetadata, LanguageInfo } from '@logto/schemas'; import { ConnectorType } from '@logto/schemas'; import { deduplicate } from '@silverhand/essentials'; diff --git a/packages/core/src/routes/custom-phrase.test.ts b/packages/core/src/routes/custom-phrase.test.ts index 52a13c609..4d645b2af 100644 --- a/packages/core/src/routes/custom-phrase.test.ts +++ b/packages/core/src/routes/custom-phrase.test.ts @@ -1,4 +1,4 @@ -import en from '@logto/phrases-ui/lib/locales/en/index.js'; +import en from '@logto/phrases-experience/lib/locales/en/index.js'; import { type CustomPhrase, type SignInExperience } from '@logto/schemas'; import { pickDefault, createMockUtils } from '@logto/shared/esm'; diff --git a/packages/core/src/routes/custom-phrase.ts b/packages/core/src/routes/custom-phrase.ts index 9bd463201..04911336b 100644 --- a/packages/core/src/routes/custom-phrase.ts +++ b/packages/core/src/routes/custom-phrase.ts @@ -1,5 +1,5 @@ import { languageTagGuard } from '@logto/language-kit'; -import resource from '@logto/phrases-ui'; +import resource from '@logto/phrases-experience'; import type { Translation } from '@logto/schemas'; import { CustomPhrases, translationGuard } from '@logto/schemas'; import cleanDeep from 'clean-deep'; diff --git a/packages/core/src/routes/well-known.phrases.content-language.test.ts b/packages/core/src/routes/well-known.phrases.content-language.test.ts index e96be8ed8..ccb017e7b 100644 --- a/packages/core/src/routes/well-known.phrases.content-language.test.ts +++ b/packages/core/src/routes/well-known.phrases.content-language.test.ts @@ -1,4 +1,4 @@ -import en from '@logto/phrases-ui/lib/locales/en/index.js'; +import en from '@logto/phrases-experience/lib/locales/en/index.js'; import type { SignInExperience } from '@logto/schemas'; import { pickDefault } from '@logto/shared/esm'; diff --git a/packages/core/src/routes/well-known.phrases.test.ts b/packages/core/src/routes/well-known.phrases.test.ts index a0950ea58..bd2811d21 100644 --- a/packages/core/src/routes/well-known.phrases.test.ts +++ b/packages/core/src/routes/well-known.phrases.test.ts @@ -1,4 +1,4 @@ -import zhCN from '@logto/phrases-ui/lib/locales/zh-cn/index.js'; +import zhCN from '@logto/phrases-experience/lib/locales/zh-cn/index.js'; import type { CustomPhrase, SignInExperience } from '@logto/schemas'; import { pickDefault, createMockUtils } from '@logto/shared/esm'; diff --git a/packages/core/src/routes/well-known.ts b/packages/core/src/routes/well-known.ts index 0b389dd94..d7aa56d60 100644 --- a/packages/core/src/routes/well-known.ts +++ b/packages/core/src/routes/well-known.ts @@ -1,4 +1,4 @@ -import { isBuiltInLanguageTag } from '@logto/phrases-ui'; +import { isBuiltInLanguageTag } from '@logto/phrases-experience'; import { adminTenantId } from '@logto/schemas'; import { conditionalArray } from '@silverhand/essentials'; import { z } from 'zod'; diff --git a/packages/core/src/utils/translation.test.ts b/packages/core/src/utils/translation.test.ts index fc465f566..8d1895ecc 100644 --- a/packages/core/src/utils/translation.test.ts +++ b/packages/core/src/utils/translation.test.ts @@ -1,5 +1,5 @@ -import en from '@logto/phrases-ui/lib/locales/en/index.js'; -import fr from '@logto/phrases-ui/lib/locales/fr/index.js'; +import en from '@logto/phrases-experience/lib/locales/en/index.js'; +import fr from '@logto/phrases-experience/lib/locales/fr/index.js'; import { isStrictlyPartial } from '#src/utils/translation.js'; diff --git a/packages/phrases-ui/CHANGELOG.md b/packages/phrases-experience/CHANGELOG.md similarity index 100% rename from packages/phrases-ui/CHANGELOG.md rename to packages/phrases-experience/CHANGELOG.md diff --git a/packages/phrases-experience/README.md b/packages/phrases-experience/README.md new file mode 100644 index 000000000..230ee6968 --- /dev/null +++ b/packages/phrases-experience/README.md @@ -0,0 +1,3 @@ +# `@logto/phrases-experience` + +See [the main README](../../README.md) for more information. diff --git a/packages/phrases-ui/package.json b/packages/phrases-experience/package.json similarity index 93% rename from packages/phrases-ui/package.json rename to packages/phrases-experience/package.json index c49f095da..b54ac82b4 100644 --- a/packages/phrases-ui/package.json +++ b/packages/phrases-experience/package.json @@ -1,7 +1,7 @@ { - "name": "@logto/phrases-ui", + "name": "@logto/phrases-experience", "version": "1.2.0", - "description": "Logto shared phrases (i18n) for main flow.", + "description": "Logto shared phrases (i18n) for experience.", "author": "Silverhand Inc. ", "homepage": "https://github.com/logto-io/logto#readme", "license": "MPL-2.0", diff --git a/packages/phrases-ui/src/index.ts b/packages/phrases-experience/src/index.ts similarity index 100% rename from packages/phrases-ui/src/index.ts rename to packages/phrases-experience/src/index.ts diff --git a/packages/phrases-ui/src/locales/de/action.ts b/packages/phrases-experience/src/locales/de/action.ts similarity index 100% rename from packages/phrases-ui/src/locales/de/action.ts rename to packages/phrases-experience/src/locales/de/action.ts diff --git a/packages/phrases-ui/src/locales/de/demo-app.ts b/packages/phrases-experience/src/locales/de/demo-app.ts similarity index 100% rename from packages/phrases-ui/src/locales/de/demo-app.ts rename to packages/phrases-experience/src/locales/de/demo-app.ts diff --git a/packages/phrases-ui/src/locales/de/description.ts b/packages/phrases-experience/src/locales/de/description.ts similarity index 100% rename from packages/phrases-ui/src/locales/de/description.ts rename to packages/phrases-experience/src/locales/de/description.ts diff --git a/packages/phrases-ui/src/locales/de/error/index.ts b/packages/phrases-experience/src/locales/de/error/index.ts similarity index 100% rename from packages/phrases-ui/src/locales/de/error/index.ts rename to packages/phrases-experience/src/locales/de/error/index.ts diff --git a/packages/phrases-ui/src/locales/de/error/password-rejected.ts b/packages/phrases-experience/src/locales/de/error/password-rejected.ts similarity index 100% rename from packages/phrases-ui/src/locales/de/error/password-rejected.ts rename to packages/phrases-experience/src/locales/de/error/password-rejected.ts diff --git a/packages/phrases-ui/src/locales/de/index.ts b/packages/phrases-experience/src/locales/de/index.ts similarity index 100% rename from packages/phrases-ui/src/locales/de/index.ts rename to packages/phrases-experience/src/locales/de/index.ts diff --git a/packages/phrases-ui/src/locales/de/input.ts b/packages/phrases-experience/src/locales/de/input.ts similarity index 100% rename from packages/phrases-ui/src/locales/de/input.ts rename to packages/phrases-experience/src/locales/de/input.ts diff --git a/packages/phrases-ui/src/locales/de/list.ts b/packages/phrases-experience/src/locales/de/list.ts similarity index 100% rename from packages/phrases-ui/src/locales/de/list.ts rename to packages/phrases-experience/src/locales/de/list.ts diff --git a/packages/phrases-ui/src/locales/de/secondary.ts b/packages/phrases-experience/src/locales/de/secondary.ts similarity index 100% rename from packages/phrases-ui/src/locales/de/secondary.ts rename to packages/phrases-experience/src/locales/de/secondary.ts diff --git a/packages/phrases-ui/src/locales/en/action.ts b/packages/phrases-experience/src/locales/en/action.ts similarity index 100% rename from packages/phrases-ui/src/locales/en/action.ts rename to packages/phrases-experience/src/locales/en/action.ts diff --git a/packages/phrases-ui/src/locales/en/demo-app.ts b/packages/phrases-experience/src/locales/en/demo-app.ts similarity index 100% rename from packages/phrases-ui/src/locales/en/demo-app.ts rename to packages/phrases-experience/src/locales/en/demo-app.ts diff --git a/packages/phrases-ui/src/locales/en/description.ts b/packages/phrases-experience/src/locales/en/description.ts similarity index 100% rename from packages/phrases-ui/src/locales/en/description.ts rename to packages/phrases-experience/src/locales/en/description.ts diff --git a/packages/phrases-ui/src/locales/en/error/index.ts b/packages/phrases-experience/src/locales/en/error/index.ts similarity index 100% rename from packages/phrases-ui/src/locales/en/error/index.ts rename to packages/phrases-experience/src/locales/en/error/index.ts diff --git a/packages/phrases-ui/src/locales/en/error/password-rejected.ts b/packages/phrases-experience/src/locales/en/error/password-rejected.ts similarity index 100% rename from packages/phrases-ui/src/locales/en/error/password-rejected.ts rename to packages/phrases-experience/src/locales/en/error/password-rejected.ts diff --git a/packages/phrases-ui/src/locales/en/index.ts b/packages/phrases-experience/src/locales/en/index.ts similarity index 100% rename from packages/phrases-ui/src/locales/en/index.ts rename to packages/phrases-experience/src/locales/en/index.ts diff --git a/packages/phrases-ui/src/locales/en/input.ts b/packages/phrases-experience/src/locales/en/input.ts similarity index 100% rename from packages/phrases-ui/src/locales/en/input.ts rename to packages/phrases-experience/src/locales/en/input.ts diff --git a/packages/phrases-ui/src/locales/en/list.ts b/packages/phrases-experience/src/locales/en/list.ts similarity index 100% rename from packages/phrases-ui/src/locales/en/list.ts rename to packages/phrases-experience/src/locales/en/list.ts diff --git a/packages/phrases-ui/src/locales/en/secondary.ts b/packages/phrases-experience/src/locales/en/secondary.ts similarity index 100% rename from packages/phrases-ui/src/locales/en/secondary.ts rename to packages/phrases-experience/src/locales/en/secondary.ts diff --git a/packages/phrases-ui/src/locales/es/action.ts b/packages/phrases-experience/src/locales/es/action.ts similarity index 100% rename from packages/phrases-ui/src/locales/es/action.ts rename to packages/phrases-experience/src/locales/es/action.ts diff --git a/packages/phrases-ui/src/locales/es/demo-app.ts b/packages/phrases-experience/src/locales/es/demo-app.ts similarity index 100% rename from packages/phrases-ui/src/locales/es/demo-app.ts rename to packages/phrases-experience/src/locales/es/demo-app.ts diff --git a/packages/phrases-ui/src/locales/es/description.ts b/packages/phrases-experience/src/locales/es/description.ts similarity index 100% rename from packages/phrases-ui/src/locales/es/description.ts rename to packages/phrases-experience/src/locales/es/description.ts diff --git a/packages/phrases-ui/src/locales/es/error/index.ts b/packages/phrases-experience/src/locales/es/error/index.ts similarity index 100% rename from packages/phrases-ui/src/locales/es/error/index.ts rename to packages/phrases-experience/src/locales/es/error/index.ts diff --git a/packages/phrases-ui/src/locales/es/error/password-rejected.ts b/packages/phrases-experience/src/locales/es/error/password-rejected.ts similarity index 100% rename from packages/phrases-ui/src/locales/es/error/password-rejected.ts rename to packages/phrases-experience/src/locales/es/error/password-rejected.ts diff --git a/packages/phrases-ui/src/locales/es/index.ts b/packages/phrases-experience/src/locales/es/index.ts similarity index 100% rename from packages/phrases-ui/src/locales/es/index.ts rename to packages/phrases-experience/src/locales/es/index.ts diff --git a/packages/phrases-ui/src/locales/es/input.ts b/packages/phrases-experience/src/locales/es/input.ts similarity index 100% rename from packages/phrases-ui/src/locales/es/input.ts rename to packages/phrases-experience/src/locales/es/input.ts diff --git a/packages/phrases-ui/src/locales/es/list.ts b/packages/phrases-experience/src/locales/es/list.ts similarity index 100% rename from packages/phrases-ui/src/locales/es/list.ts rename to packages/phrases-experience/src/locales/es/list.ts diff --git a/packages/phrases-ui/src/locales/es/secondary.ts b/packages/phrases-experience/src/locales/es/secondary.ts similarity index 100% rename from packages/phrases-ui/src/locales/es/secondary.ts rename to packages/phrases-experience/src/locales/es/secondary.ts diff --git a/packages/phrases-ui/src/locales/fr/action.ts b/packages/phrases-experience/src/locales/fr/action.ts similarity index 100% rename from packages/phrases-ui/src/locales/fr/action.ts rename to packages/phrases-experience/src/locales/fr/action.ts diff --git a/packages/phrases-ui/src/locales/fr/demo-app.ts b/packages/phrases-experience/src/locales/fr/demo-app.ts similarity index 100% rename from packages/phrases-ui/src/locales/fr/demo-app.ts rename to packages/phrases-experience/src/locales/fr/demo-app.ts diff --git a/packages/phrases-ui/src/locales/fr/description.ts b/packages/phrases-experience/src/locales/fr/description.ts similarity index 100% rename from packages/phrases-ui/src/locales/fr/description.ts rename to packages/phrases-experience/src/locales/fr/description.ts diff --git a/packages/phrases-ui/src/locales/fr/error/index.ts b/packages/phrases-experience/src/locales/fr/error/index.ts similarity index 100% rename from packages/phrases-ui/src/locales/fr/error/index.ts rename to packages/phrases-experience/src/locales/fr/error/index.ts diff --git a/packages/phrases-ui/src/locales/fr/error/password-rejected.ts b/packages/phrases-experience/src/locales/fr/error/password-rejected.ts similarity index 100% rename from packages/phrases-ui/src/locales/fr/error/password-rejected.ts rename to packages/phrases-experience/src/locales/fr/error/password-rejected.ts diff --git a/packages/phrases-ui/src/locales/fr/index.ts b/packages/phrases-experience/src/locales/fr/index.ts similarity index 100% rename from packages/phrases-ui/src/locales/fr/index.ts rename to packages/phrases-experience/src/locales/fr/index.ts diff --git a/packages/phrases-ui/src/locales/fr/input.ts b/packages/phrases-experience/src/locales/fr/input.ts similarity index 100% rename from packages/phrases-ui/src/locales/fr/input.ts rename to packages/phrases-experience/src/locales/fr/input.ts diff --git a/packages/phrases-ui/src/locales/fr/list.ts b/packages/phrases-experience/src/locales/fr/list.ts similarity index 100% rename from packages/phrases-ui/src/locales/fr/list.ts rename to packages/phrases-experience/src/locales/fr/list.ts diff --git a/packages/phrases-ui/src/locales/fr/secondary.ts b/packages/phrases-experience/src/locales/fr/secondary.ts similarity index 100% rename from packages/phrases-ui/src/locales/fr/secondary.ts rename to packages/phrases-experience/src/locales/fr/secondary.ts diff --git a/packages/phrases-ui/src/locales/it/action.ts b/packages/phrases-experience/src/locales/it/action.ts similarity index 100% rename from packages/phrases-ui/src/locales/it/action.ts rename to packages/phrases-experience/src/locales/it/action.ts diff --git a/packages/phrases-ui/src/locales/it/demo-app.ts b/packages/phrases-experience/src/locales/it/demo-app.ts similarity index 100% rename from packages/phrases-ui/src/locales/it/demo-app.ts rename to packages/phrases-experience/src/locales/it/demo-app.ts diff --git a/packages/phrases-ui/src/locales/it/description.ts b/packages/phrases-experience/src/locales/it/description.ts similarity index 100% rename from packages/phrases-ui/src/locales/it/description.ts rename to packages/phrases-experience/src/locales/it/description.ts diff --git a/packages/phrases-ui/src/locales/it/error/index.ts b/packages/phrases-experience/src/locales/it/error/index.ts similarity index 100% rename from packages/phrases-ui/src/locales/it/error/index.ts rename to packages/phrases-experience/src/locales/it/error/index.ts diff --git a/packages/phrases-ui/src/locales/it/error/password-rejected.ts b/packages/phrases-experience/src/locales/it/error/password-rejected.ts similarity index 100% rename from packages/phrases-ui/src/locales/it/error/password-rejected.ts rename to packages/phrases-experience/src/locales/it/error/password-rejected.ts diff --git a/packages/phrases-ui/src/locales/it/index.ts b/packages/phrases-experience/src/locales/it/index.ts similarity index 100% rename from packages/phrases-ui/src/locales/it/index.ts rename to packages/phrases-experience/src/locales/it/index.ts diff --git a/packages/phrases-ui/src/locales/it/input.ts b/packages/phrases-experience/src/locales/it/input.ts similarity index 100% rename from packages/phrases-ui/src/locales/it/input.ts rename to packages/phrases-experience/src/locales/it/input.ts diff --git a/packages/phrases-ui/src/locales/it/list.ts b/packages/phrases-experience/src/locales/it/list.ts similarity index 100% rename from packages/phrases-ui/src/locales/it/list.ts rename to packages/phrases-experience/src/locales/it/list.ts diff --git a/packages/phrases-ui/src/locales/it/secondary.ts b/packages/phrases-experience/src/locales/it/secondary.ts similarity index 100% rename from packages/phrases-ui/src/locales/it/secondary.ts rename to packages/phrases-experience/src/locales/it/secondary.ts diff --git a/packages/phrases-ui/src/locales/ja/action.ts b/packages/phrases-experience/src/locales/ja/action.ts similarity index 100% rename from packages/phrases-ui/src/locales/ja/action.ts rename to packages/phrases-experience/src/locales/ja/action.ts diff --git a/packages/phrases-ui/src/locales/ja/demo-app.ts b/packages/phrases-experience/src/locales/ja/demo-app.ts similarity index 100% rename from packages/phrases-ui/src/locales/ja/demo-app.ts rename to packages/phrases-experience/src/locales/ja/demo-app.ts diff --git a/packages/phrases-ui/src/locales/ja/description.ts b/packages/phrases-experience/src/locales/ja/description.ts similarity index 100% rename from packages/phrases-ui/src/locales/ja/description.ts rename to packages/phrases-experience/src/locales/ja/description.ts diff --git a/packages/phrases-ui/src/locales/ja/error/index.ts b/packages/phrases-experience/src/locales/ja/error/index.ts similarity index 100% rename from packages/phrases-ui/src/locales/ja/error/index.ts rename to packages/phrases-experience/src/locales/ja/error/index.ts diff --git a/packages/phrases-ui/src/locales/ja/error/password-rejected.ts b/packages/phrases-experience/src/locales/ja/error/password-rejected.ts similarity index 100% rename from packages/phrases-ui/src/locales/ja/error/password-rejected.ts rename to packages/phrases-experience/src/locales/ja/error/password-rejected.ts diff --git a/packages/phrases-ui/src/locales/ja/index.ts b/packages/phrases-experience/src/locales/ja/index.ts similarity index 100% rename from packages/phrases-ui/src/locales/ja/index.ts rename to packages/phrases-experience/src/locales/ja/index.ts diff --git a/packages/phrases-ui/src/locales/ja/input.ts b/packages/phrases-experience/src/locales/ja/input.ts similarity index 100% rename from packages/phrases-ui/src/locales/ja/input.ts rename to packages/phrases-experience/src/locales/ja/input.ts diff --git a/packages/phrases-ui/src/locales/ja/list.ts b/packages/phrases-experience/src/locales/ja/list.ts similarity index 100% rename from packages/phrases-ui/src/locales/ja/list.ts rename to packages/phrases-experience/src/locales/ja/list.ts diff --git a/packages/phrases-ui/src/locales/ja/secondary.ts b/packages/phrases-experience/src/locales/ja/secondary.ts similarity index 100% rename from packages/phrases-ui/src/locales/ja/secondary.ts rename to packages/phrases-experience/src/locales/ja/secondary.ts diff --git a/packages/phrases-ui/src/locales/ko/action.ts b/packages/phrases-experience/src/locales/ko/action.ts similarity index 100% rename from packages/phrases-ui/src/locales/ko/action.ts rename to packages/phrases-experience/src/locales/ko/action.ts diff --git a/packages/phrases-ui/src/locales/ko/demo-app.ts b/packages/phrases-experience/src/locales/ko/demo-app.ts similarity index 100% rename from packages/phrases-ui/src/locales/ko/demo-app.ts rename to packages/phrases-experience/src/locales/ko/demo-app.ts diff --git a/packages/phrases-ui/src/locales/ko/description.ts b/packages/phrases-experience/src/locales/ko/description.ts similarity index 100% rename from packages/phrases-ui/src/locales/ko/description.ts rename to packages/phrases-experience/src/locales/ko/description.ts diff --git a/packages/phrases-ui/src/locales/ko/error/index.ts b/packages/phrases-experience/src/locales/ko/error/index.ts similarity index 100% rename from packages/phrases-ui/src/locales/ko/error/index.ts rename to packages/phrases-experience/src/locales/ko/error/index.ts diff --git a/packages/phrases-ui/src/locales/ko/error/password-rejected.ts b/packages/phrases-experience/src/locales/ko/error/password-rejected.ts similarity index 100% rename from packages/phrases-ui/src/locales/ko/error/password-rejected.ts rename to packages/phrases-experience/src/locales/ko/error/password-rejected.ts diff --git a/packages/phrases-ui/src/locales/ko/index.ts b/packages/phrases-experience/src/locales/ko/index.ts similarity index 100% rename from packages/phrases-ui/src/locales/ko/index.ts rename to packages/phrases-experience/src/locales/ko/index.ts diff --git a/packages/phrases-ui/src/locales/ko/input.ts b/packages/phrases-experience/src/locales/ko/input.ts similarity index 100% rename from packages/phrases-ui/src/locales/ko/input.ts rename to packages/phrases-experience/src/locales/ko/input.ts diff --git a/packages/phrases-ui/src/locales/ko/list.ts b/packages/phrases-experience/src/locales/ko/list.ts similarity index 100% rename from packages/phrases-ui/src/locales/ko/list.ts rename to packages/phrases-experience/src/locales/ko/list.ts diff --git a/packages/phrases-ui/src/locales/ko/secondary.ts b/packages/phrases-experience/src/locales/ko/secondary.ts similarity index 100% rename from packages/phrases-ui/src/locales/ko/secondary.ts rename to packages/phrases-experience/src/locales/ko/secondary.ts diff --git a/packages/phrases-ui/src/locales/pl-pl/action.ts b/packages/phrases-experience/src/locales/pl-pl/action.ts similarity index 100% rename from packages/phrases-ui/src/locales/pl-pl/action.ts rename to packages/phrases-experience/src/locales/pl-pl/action.ts diff --git a/packages/phrases-ui/src/locales/pl-pl/demo-app.ts b/packages/phrases-experience/src/locales/pl-pl/demo-app.ts similarity index 100% rename from packages/phrases-ui/src/locales/pl-pl/demo-app.ts rename to packages/phrases-experience/src/locales/pl-pl/demo-app.ts diff --git a/packages/phrases-ui/src/locales/pl-pl/description.ts b/packages/phrases-experience/src/locales/pl-pl/description.ts similarity index 100% rename from packages/phrases-ui/src/locales/pl-pl/description.ts rename to packages/phrases-experience/src/locales/pl-pl/description.ts diff --git a/packages/phrases-ui/src/locales/pl-pl/error/index.ts b/packages/phrases-experience/src/locales/pl-pl/error/index.ts similarity index 100% rename from packages/phrases-ui/src/locales/pl-pl/error/index.ts rename to packages/phrases-experience/src/locales/pl-pl/error/index.ts diff --git a/packages/phrases-ui/src/locales/pl-pl/error/password-rejected.ts b/packages/phrases-experience/src/locales/pl-pl/error/password-rejected.ts similarity index 100% rename from packages/phrases-ui/src/locales/pl-pl/error/password-rejected.ts rename to packages/phrases-experience/src/locales/pl-pl/error/password-rejected.ts diff --git a/packages/phrases-ui/src/locales/pl-pl/index.ts b/packages/phrases-experience/src/locales/pl-pl/index.ts similarity index 100% rename from packages/phrases-ui/src/locales/pl-pl/index.ts rename to packages/phrases-experience/src/locales/pl-pl/index.ts diff --git a/packages/phrases-ui/src/locales/pl-pl/input.ts b/packages/phrases-experience/src/locales/pl-pl/input.ts similarity index 100% rename from packages/phrases-ui/src/locales/pl-pl/input.ts rename to packages/phrases-experience/src/locales/pl-pl/input.ts diff --git a/packages/phrases-ui/src/locales/pl-pl/list.ts b/packages/phrases-experience/src/locales/pl-pl/list.ts similarity index 100% rename from packages/phrases-ui/src/locales/pl-pl/list.ts rename to packages/phrases-experience/src/locales/pl-pl/list.ts diff --git a/packages/phrases-ui/src/locales/pl-pl/secondary.ts b/packages/phrases-experience/src/locales/pl-pl/secondary.ts similarity index 100% rename from packages/phrases-ui/src/locales/pl-pl/secondary.ts rename to packages/phrases-experience/src/locales/pl-pl/secondary.ts diff --git a/packages/phrases-ui/src/locales/pt-br/action.ts b/packages/phrases-experience/src/locales/pt-br/action.ts similarity index 100% rename from packages/phrases-ui/src/locales/pt-br/action.ts rename to packages/phrases-experience/src/locales/pt-br/action.ts diff --git a/packages/phrases-ui/src/locales/pt-br/demo-app.ts b/packages/phrases-experience/src/locales/pt-br/demo-app.ts similarity index 100% rename from packages/phrases-ui/src/locales/pt-br/demo-app.ts rename to packages/phrases-experience/src/locales/pt-br/demo-app.ts diff --git a/packages/phrases-ui/src/locales/pt-br/description.ts b/packages/phrases-experience/src/locales/pt-br/description.ts similarity index 100% rename from packages/phrases-ui/src/locales/pt-br/description.ts rename to packages/phrases-experience/src/locales/pt-br/description.ts diff --git a/packages/phrases-ui/src/locales/pt-br/error/index.ts b/packages/phrases-experience/src/locales/pt-br/error/index.ts similarity index 100% rename from packages/phrases-ui/src/locales/pt-br/error/index.ts rename to packages/phrases-experience/src/locales/pt-br/error/index.ts diff --git a/packages/phrases-ui/src/locales/pt-br/error/password-rejected.ts b/packages/phrases-experience/src/locales/pt-br/error/password-rejected.ts similarity index 100% rename from packages/phrases-ui/src/locales/pt-br/error/password-rejected.ts rename to packages/phrases-experience/src/locales/pt-br/error/password-rejected.ts diff --git a/packages/phrases-ui/src/locales/pt-br/index.ts b/packages/phrases-experience/src/locales/pt-br/index.ts similarity index 100% rename from packages/phrases-ui/src/locales/pt-br/index.ts rename to packages/phrases-experience/src/locales/pt-br/index.ts diff --git a/packages/phrases-ui/src/locales/pt-br/input.ts b/packages/phrases-experience/src/locales/pt-br/input.ts similarity index 100% rename from packages/phrases-ui/src/locales/pt-br/input.ts rename to packages/phrases-experience/src/locales/pt-br/input.ts diff --git a/packages/phrases-ui/src/locales/pt-br/list.ts b/packages/phrases-experience/src/locales/pt-br/list.ts similarity index 100% rename from packages/phrases-ui/src/locales/pt-br/list.ts rename to packages/phrases-experience/src/locales/pt-br/list.ts diff --git a/packages/phrases-ui/src/locales/pt-br/secondary.ts b/packages/phrases-experience/src/locales/pt-br/secondary.ts similarity index 100% rename from packages/phrases-ui/src/locales/pt-br/secondary.ts rename to packages/phrases-experience/src/locales/pt-br/secondary.ts diff --git a/packages/phrases-ui/src/locales/pt-pt/action.ts b/packages/phrases-experience/src/locales/pt-pt/action.ts similarity index 100% rename from packages/phrases-ui/src/locales/pt-pt/action.ts rename to packages/phrases-experience/src/locales/pt-pt/action.ts diff --git a/packages/phrases-ui/src/locales/pt-pt/demo-app.ts b/packages/phrases-experience/src/locales/pt-pt/demo-app.ts similarity index 100% rename from packages/phrases-ui/src/locales/pt-pt/demo-app.ts rename to packages/phrases-experience/src/locales/pt-pt/demo-app.ts diff --git a/packages/phrases-ui/src/locales/pt-pt/description.ts b/packages/phrases-experience/src/locales/pt-pt/description.ts similarity index 100% rename from packages/phrases-ui/src/locales/pt-pt/description.ts rename to packages/phrases-experience/src/locales/pt-pt/description.ts diff --git a/packages/phrases-ui/src/locales/pt-pt/error/index.ts b/packages/phrases-experience/src/locales/pt-pt/error/index.ts similarity index 100% rename from packages/phrases-ui/src/locales/pt-pt/error/index.ts rename to packages/phrases-experience/src/locales/pt-pt/error/index.ts diff --git a/packages/phrases-ui/src/locales/pt-pt/error/password-rejected.ts b/packages/phrases-experience/src/locales/pt-pt/error/password-rejected.ts similarity index 100% rename from packages/phrases-ui/src/locales/pt-pt/error/password-rejected.ts rename to packages/phrases-experience/src/locales/pt-pt/error/password-rejected.ts diff --git a/packages/phrases-ui/src/locales/pt-pt/index.ts b/packages/phrases-experience/src/locales/pt-pt/index.ts similarity index 100% rename from packages/phrases-ui/src/locales/pt-pt/index.ts rename to packages/phrases-experience/src/locales/pt-pt/index.ts diff --git a/packages/phrases-ui/src/locales/pt-pt/input.ts b/packages/phrases-experience/src/locales/pt-pt/input.ts similarity index 100% rename from packages/phrases-ui/src/locales/pt-pt/input.ts rename to packages/phrases-experience/src/locales/pt-pt/input.ts diff --git a/packages/phrases-ui/src/locales/pt-pt/list.ts b/packages/phrases-experience/src/locales/pt-pt/list.ts similarity index 100% rename from packages/phrases-ui/src/locales/pt-pt/list.ts rename to packages/phrases-experience/src/locales/pt-pt/list.ts diff --git a/packages/phrases-ui/src/locales/pt-pt/secondary.ts b/packages/phrases-experience/src/locales/pt-pt/secondary.ts similarity index 100% rename from packages/phrases-ui/src/locales/pt-pt/secondary.ts rename to packages/phrases-experience/src/locales/pt-pt/secondary.ts diff --git a/packages/phrases-ui/src/locales/ru/action.ts b/packages/phrases-experience/src/locales/ru/action.ts similarity index 100% rename from packages/phrases-ui/src/locales/ru/action.ts rename to packages/phrases-experience/src/locales/ru/action.ts diff --git a/packages/phrases-ui/src/locales/ru/demo-app.ts b/packages/phrases-experience/src/locales/ru/demo-app.ts similarity index 100% rename from packages/phrases-ui/src/locales/ru/demo-app.ts rename to packages/phrases-experience/src/locales/ru/demo-app.ts diff --git a/packages/phrases-ui/src/locales/ru/description.ts b/packages/phrases-experience/src/locales/ru/description.ts similarity index 100% rename from packages/phrases-ui/src/locales/ru/description.ts rename to packages/phrases-experience/src/locales/ru/description.ts diff --git a/packages/phrases-ui/src/locales/ru/error/index.ts b/packages/phrases-experience/src/locales/ru/error/index.ts similarity index 100% rename from packages/phrases-ui/src/locales/ru/error/index.ts rename to packages/phrases-experience/src/locales/ru/error/index.ts diff --git a/packages/phrases-ui/src/locales/ru/error/password-rejected.ts b/packages/phrases-experience/src/locales/ru/error/password-rejected.ts similarity index 100% rename from packages/phrases-ui/src/locales/ru/error/password-rejected.ts rename to packages/phrases-experience/src/locales/ru/error/password-rejected.ts diff --git a/packages/phrases-ui/src/locales/ru/index.ts b/packages/phrases-experience/src/locales/ru/index.ts similarity index 100% rename from packages/phrases-ui/src/locales/ru/index.ts rename to packages/phrases-experience/src/locales/ru/index.ts diff --git a/packages/phrases-ui/src/locales/ru/input.ts b/packages/phrases-experience/src/locales/ru/input.ts similarity index 100% rename from packages/phrases-ui/src/locales/ru/input.ts rename to packages/phrases-experience/src/locales/ru/input.ts diff --git a/packages/phrases-ui/src/locales/ru/list.ts b/packages/phrases-experience/src/locales/ru/list.ts similarity index 100% rename from packages/phrases-ui/src/locales/ru/list.ts rename to packages/phrases-experience/src/locales/ru/list.ts diff --git a/packages/phrases-ui/src/locales/ru/secondary.ts b/packages/phrases-experience/src/locales/ru/secondary.ts similarity index 100% rename from packages/phrases-ui/src/locales/ru/secondary.ts rename to packages/phrases-experience/src/locales/ru/secondary.ts diff --git a/packages/phrases-ui/src/locales/tr-tr/action.ts b/packages/phrases-experience/src/locales/tr-tr/action.ts similarity index 100% rename from packages/phrases-ui/src/locales/tr-tr/action.ts rename to packages/phrases-experience/src/locales/tr-tr/action.ts diff --git a/packages/phrases-ui/src/locales/tr-tr/demo-app.ts b/packages/phrases-experience/src/locales/tr-tr/demo-app.ts similarity index 100% rename from packages/phrases-ui/src/locales/tr-tr/demo-app.ts rename to packages/phrases-experience/src/locales/tr-tr/demo-app.ts diff --git a/packages/phrases-ui/src/locales/tr-tr/description.ts b/packages/phrases-experience/src/locales/tr-tr/description.ts similarity index 100% rename from packages/phrases-ui/src/locales/tr-tr/description.ts rename to packages/phrases-experience/src/locales/tr-tr/description.ts diff --git a/packages/phrases-ui/src/locales/tr-tr/error/index.ts b/packages/phrases-experience/src/locales/tr-tr/error/index.ts similarity index 100% rename from packages/phrases-ui/src/locales/tr-tr/error/index.ts rename to packages/phrases-experience/src/locales/tr-tr/error/index.ts diff --git a/packages/phrases-ui/src/locales/tr-tr/error/password-rejected.ts b/packages/phrases-experience/src/locales/tr-tr/error/password-rejected.ts similarity index 100% rename from packages/phrases-ui/src/locales/tr-tr/error/password-rejected.ts rename to packages/phrases-experience/src/locales/tr-tr/error/password-rejected.ts diff --git a/packages/phrases-ui/src/locales/tr-tr/index.ts b/packages/phrases-experience/src/locales/tr-tr/index.ts similarity index 100% rename from packages/phrases-ui/src/locales/tr-tr/index.ts rename to packages/phrases-experience/src/locales/tr-tr/index.ts diff --git a/packages/phrases-ui/src/locales/tr-tr/input.ts b/packages/phrases-experience/src/locales/tr-tr/input.ts similarity index 100% rename from packages/phrases-ui/src/locales/tr-tr/input.ts rename to packages/phrases-experience/src/locales/tr-tr/input.ts diff --git a/packages/phrases-ui/src/locales/tr-tr/list.ts b/packages/phrases-experience/src/locales/tr-tr/list.ts similarity index 100% rename from packages/phrases-ui/src/locales/tr-tr/list.ts rename to packages/phrases-experience/src/locales/tr-tr/list.ts diff --git a/packages/phrases-ui/src/locales/tr-tr/secondary.ts b/packages/phrases-experience/src/locales/tr-tr/secondary.ts similarity index 100% rename from packages/phrases-ui/src/locales/tr-tr/secondary.ts rename to packages/phrases-experience/src/locales/tr-tr/secondary.ts diff --git a/packages/phrases-ui/src/locales/zh-cn/action.ts b/packages/phrases-experience/src/locales/zh-cn/action.ts similarity index 100% rename from packages/phrases-ui/src/locales/zh-cn/action.ts rename to packages/phrases-experience/src/locales/zh-cn/action.ts diff --git a/packages/phrases-ui/src/locales/zh-cn/demo-app.ts b/packages/phrases-experience/src/locales/zh-cn/demo-app.ts similarity index 100% rename from packages/phrases-ui/src/locales/zh-cn/demo-app.ts rename to packages/phrases-experience/src/locales/zh-cn/demo-app.ts diff --git a/packages/phrases-ui/src/locales/zh-cn/description.ts b/packages/phrases-experience/src/locales/zh-cn/description.ts similarity index 100% rename from packages/phrases-ui/src/locales/zh-cn/description.ts rename to packages/phrases-experience/src/locales/zh-cn/description.ts diff --git a/packages/phrases-ui/src/locales/zh-cn/error/index.ts b/packages/phrases-experience/src/locales/zh-cn/error/index.ts similarity index 100% rename from packages/phrases-ui/src/locales/zh-cn/error/index.ts rename to packages/phrases-experience/src/locales/zh-cn/error/index.ts diff --git a/packages/phrases-ui/src/locales/zh-cn/error/password-rejected.ts b/packages/phrases-experience/src/locales/zh-cn/error/password-rejected.ts similarity index 100% rename from packages/phrases-ui/src/locales/zh-cn/error/password-rejected.ts rename to packages/phrases-experience/src/locales/zh-cn/error/password-rejected.ts diff --git a/packages/phrases-ui/src/locales/zh-cn/index.ts b/packages/phrases-experience/src/locales/zh-cn/index.ts similarity index 100% rename from packages/phrases-ui/src/locales/zh-cn/index.ts rename to packages/phrases-experience/src/locales/zh-cn/index.ts diff --git a/packages/phrases-ui/src/locales/zh-cn/input.ts b/packages/phrases-experience/src/locales/zh-cn/input.ts similarity index 100% rename from packages/phrases-ui/src/locales/zh-cn/input.ts rename to packages/phrases-experience/src/locales/zh-cn/input.ts diff --git a/packages/phrases-ui/src/locales/zh-cn/list.ts b/packages/phrases-experience/src/locales/zh-cn/list.ts similarity index 100% rename from packages/phrases-ui/src/locales/zh-cn/list.ts rename to packages/phrases-experience/src/locales/zh-cn/list.ts diff --git a/packages/phrases-ui/src/locales/zh-cn/secondary.ts b/packages/phrases-experience/src/locales/zh-cn/secondary.ts similarity index 100% rename from packages/phrases-ui/src/locales/zh-cn/secondary.ts rename to packages/phrases-experience/src/locales/zh-cn/secondary.ts diff --git a/packages/phrases-ui/src/locales/zh-hk/action.ts b/packages/phrases-experience/src/locales/zh-hk/action.ts similarity index 100% rename from packages/phrases-ui/src/locales/zh-hk/action.ts rename to packages/phrases-experience/src/locales/zh-hk/action.ts diff --git a/packages/phrases-ui/src/locales/zh-hk/demo-app.ts b/packages/phrases-experience/src/locales/zh-hk/demo-app.ts similarity index 100% rename from packages/phrases-ui/src/locales/zh-hk/demo-app.ts rename to packages/phrases-experience/src/locales/zh-hk/demo-app.ts diff --git a/packages/phrases-ui/src/locales/zh-hk/description.ts b/packages/phrases-experience/src/locales/zh-hk/description.ts similarity index 100% rename from packages/phrases-ui/src/locales/zh-hk/description.ts rename to packages/phrases-experience/src/locales/zh-hk/description.ts diff --git a/packages/phrases-ui/src/locales/zh-hk/error/index.ts b/packages/phrases-experience/src/locales/zh-hk/error/index.ts similarity index 100% rename from packages/phrases-ui/src/locales/zh-hk/error/index.ts rename to packages/phrases-experience/src/locales/zh-hk/error/index.ts diff --git a/packages/phrases-ui/src/locales/zh-hk/error/password-rejected.ts b/packages/phrases-experience/src/locales/zh-hk/error/password-rejected.ts similarity index 100% rename from packages/phrases-ui/src/locales/zh-hk/error/password-rejected.ts rename to packages/phrases-experience/src/locales/zh-hk/error/password-rejected.ts diff --git a/packages/phrases-ui/src/locales/zh-hk/index.ts b/packages/phrases-experience/src/locales/zh-hk/index.ts similarity index 100% rename from packages/phrases-ui/src/locales/zh-hk/index.ts rename to packages/phrases-experience/src/locales/zh-hk/index.ts diff --git a/packages/phrases-ui/src/locales/zh-hk/input.ts b/packages/phrases-experience/src/locales/zh-hk/input.ts similarity index 100% rename from packages/phrases-ui/src/locales/zh-hk/input.ts rename to packages/phrases-experience/src/locales/zh-hk/input.ts diff --git a/packages/phrases-ui/src/locales/zh-hk/list.ts b/packages/phrases-experience/src/locales/zh-hk/list.ts similarity index 100% rename from packages/phrases-ui/src/locales/zh-hk/list.ts rename to packages/phrases-experience/src/locales/zh-hk/list.ts diff --git a/packages/phrases-ui/src/locales/zh-hk/secondary.ts b/packages/phrases-experience/src/locales/zh-hk/secondary.ts similarity index 100% rename from packages/phrases-ui/src/locales/zh-hk/secondary.ts rename to packages/phrases-experience/src/locales/zh-hk/secondary.ts diff --git a/packages/phrases-ui/src/locales/zh-tw/action.ts b/packages/phrases-experience/src/locales/zh-tw/action.ts similarity index 100% rename from packages/phrases-ui/src/locales/zh-tw/action.ts rename to packages/phrases-experience/src/locales/zh-tw/action.ts diff --git a/packages/phrases-ui/src/locales/zh-tw/demo-app.ts b/packages/phrases-experience/src/locales/zh-tw/demo-app.ts similarity index 100% rename from packages/phrases-ui/src/locales/zh-tw/demo-app.ts rename to packages/phrases-experience/src/locales/zh-tw/demo-app.ts diff --git a/packages/phrases-ui/src/locales/zh-tw/description.ts b/packages/phrases-experience/src/locales/zh-tw/description.ts similarity index 100% rename from packages/phrases-ui/src/locales/zh-tw/description.ts rename to packages/phrases-experience/src/locales/zh-tw/description.ts diff --git a/packages/phrases-ui/src/locales/zh-tw/error/index.ts b/packages/phrases-experience/src/locales/zh-tw/error/index.ts similarity index 100% rename from packages/phrases-ui/src/locales/zh-tw/error/index.ts rename to packages/phrases-experience/src/locales/zh-tw/error/index.ts diff --git a/packages/phrases-ui/src/locales/zh-tw/error/password-rejected.ts b/packages/phrases-experience/src/locales/zh-tw/error/password-rejected.ts similarity index 100% rename from packages/phrases-ui/src/locales/zh-tw/error/password-rejected.ts rename to packages/phrases-experience/src/locales/zh-tw/error/password-rejected.ts diff --git a/packages/phrases-ui/src/locales/zh-tw/index.ts b/packages/phrases-experience/src/locales/zh-tw/index.ts similarity index 100% rename from packages/phrases-ui/src/locales/zh-tw/index.ts rename to packages/phrases-experience/src/locales/zh-tw/index.ts diff --git a/packages/phrases-ui/src/locales/zh-tw/input.ts b/packages/phrases-experience/src/locales/zh-tw/input.ts similarity index 100% rename from packages/phrases-ui/src/locales/zh-tw/input.ts rename to packages/phrases-experience/src/locales/zh-tw/input.ts diff --git a/packages/phrases-ui/src/locales/zh-tw/list.ts b/packages/phrases-experience/src/locales/zh-tw/list.ts similarity index 100% rename from packages/phrases-ui/src/locales/zh-tw/list.ts rename to packages/phrases-experience/src/locales/zh-tw/list.ts diff --git a/packages/phrases-ui/src/locales/zh-tw/secondary.ts b/packages/phrases-experience/src/locales/zh-tw/secondary.ts similarity index 100% rename from packages/phrases-ui/src/locales/zh-tw/secondary.ts rename to packages/phrases-experience/src/locales/zh-tw/secondary.ts diff --git a/packages/phrases-ui/src/types.ts b/packages/phrases-experience/src/types.ts similarity index 100% rename from packages/phrases-ui/src/types.ts rename to packages/phrases-experience/src/types.ts diff --git a/packages/phrases-ui/tsconfig.json b/packages/phrases-experience/tsconfig.json similarity index 100% rename from packages/phrases-ui/tsconfig.json rename to packages/phrases-experience/tsconfig.json diff --git a/packages/phrases-ui/README.md b/packages/phrases-ui/README.md deleted file mode 100644 index b7e2532dd..000000000 --- a/packages/phrases-ui/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# `@logto/phrases-ui` - -> TODO: description - -## Usage - -``` -const uiPhrases = require('@logto/ui-phrases'); - -// TODO: DEMONSTRATE API -``` diff --git a/packages/schemas/package.json b/packages/schemas/package.json index 47cc25a50..29ce287f1 100644 --- a/packages/schemas/package.json +++ b/packages/schemas/package.json @@ -84,7 +84,7 @@ "@logto/core-kit": "workspace:^2.0.1", "@logto/language-kit": "workspace:^1.0.0", "@logto/phrases": "workspace:^1.4.1", - "@logto/phrases-ui": "workspace:^1.2.0", + "@logto/phrases-experience": "workspace:^1.2.0", "@logto/shared": "workspace:^2.0.0", "@withtyped/server": "^0.12.9" }, diff --git a/packages/ui/package.json b/packages/ui/package.json index 80dc6126e..61a497388 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -26,7 +26,7 @@ "@logto/core-kit": "workspace:^2.0.1", "@logto/language-kit": "workspace:^1.0.0", "@logto/phrases": "workspace:^1.4.1", - "@logto/phrases-ui": "workspace:^1.2.0", + "@logto/phrases-experience": "workspace:^1.2.0", "@logto/schemas": "workspace:^1.6.0", "@parcel/compressor-brotli": "2.9.3", "@parcel/compressor-gzip": "2.9.3", diff --git a/packages/ui/src/i18n/utils.ts b/packages/ui/src/i18n/utils.ts index 543a662c9..de12fb7b9 100644 --- a/packages/ui/src/i18n/utils.ts +++ b/packages/ui/src/i18n/utils.ts @@ -1,5 +1,5 @@ -import type { LocalePhrase } from '@logto/phrases-ui'; -import resource from '@logto/phrases-ui'; +import type { LocalePhrase } from '@logto/phrases-experience'; +import resource from '@logto/phrases-experience'; import type { LanguageInfo } from '@logto/schemas'; import type { Resource } from 'i18next'; import i18next from 'i18next'; diff --git a/packages/ui/src/include.d/i18next.d.ts b/packages/ui/src/include.d/i18next.d.ts index de8fc9408..336e10d44 100644 --- a/packages/ui/src/include.d/i18next.d.ts +++ b/packages/ui/src/include.d/i18next.d.ts @@ -1,6 +1,6 @@ // https://react.i18next.com/latest/typescript#create-a-declaration-file -import type { LocalePhrase } from '@logto/phrases-ui'; +import type { LocalePhrase } from '@logto/phrases-experience'; declare module 'i18next' { interface CustomTypeOptions { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index df98724d5..1eff35ec1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -115,9 +115,9 @@ importers: '@logto/phrases': specifier: workspace:^1.4.1 version: link:../phrases - '@logto/phrases-ui': + '@logto/phrases-experience': specifier: workspace:^1.2.0 - version: link:../phrases-ui + version: link:../phrases-experience '@logto/schemas': specifier: workspace:1.8.0 version: link:../schemas @@ -2848,9 +2848,9 @@ importers: '@logto/phrases': specifier: workspace:^1.4.1 version: link:../phrases - '@logto/phrases-ui': + '@logto/phrases-experience': specifier: workspace:^1.2.0 - version: link:../phrases-ui + version: link:../phrases-experience '@logto/react': specifier: ^2.1.0 version: 2.1.0(react@18.2.0) @@ -3151,9 +3151,9 @@ importers: '@logto/phrases': specifier: workspace:^1.4.1 version: link:../phrases - '@logto/phrases-ui': + '@logto/phrases-experience': specifier: workspace:^1.2.0 - version: link:../phrases-ui + version: link:../phrases-experience '@logto/schemas': specifier: workspace:^1.8.0 version: link:../schemas @@ -3577,7 +3577,7 @@ importers: specifier: ^5.0.0 version: 5.0.2 - packages/phrases-ui: + packages/phrases-experience: dependencies: '@logto/core-kit': specifier: workspace:^2.0.1 @@ -3628,9 +3628,9 @@ importers: '@logto/phrases': specifier: workspace:^1.4.1 version: link:../phrases - '@logto/phrases-ui': + '@logto/phrases-experience': specifier: workspace:^1.2.0 - version: link:../phrases-ui + version: link:../phrases-experience '@logto/shared': specifier: workspace:^2.0.0 version: link:../shared @@ -3926,9 +3926,9 @@ importers: '@logto/phrases': specifier: workspace:^1.4.1 version: link:../phrases - '@logto/phrases-ui': + '@logto/phrases-experience': specifier: workspace:^1.2.0 - version: link:../phrases-ui + version: link:../phrases-experience '@logto/schemas': specifier: workspace:^1.6.0 version: link:../schemas @@ -6075,11 +6075,6 @@ packages: resolution: {integrity: sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw==} engines: {node: '>=6.9.0'} - /@babel/helper-validator-identifier@7.19.1: - resolution: {integrity: sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==} - engines: {node: '>=6.9.0'} - dev: true - /@babel/helper-validator-identifier@7.22.5: resolution: {integrity: sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ==} engines: {node: '>=6.9.0'} @@ -12297,7 +12292,7 @@ packages: peerDependencies: eslint: '>=8.38.0' dependencies: - '@babel/helper-validator-identifier': 7.19.1 + '@babel/helper-validator-identifier': 7.22.5 '@eslint-community/eslint-utils': 4.4.0(eslint@8.44.0) ci-info: 3.8.0 clean-regexp: 1.0.0 @@ -12312,7 +12307,7 @@ packages: regexp-tree: 0.1.24 regjsparser: 0.10.0 safe-regex: 2.1.1 - semver: 7.5.3 + semver: 7.5.4 strip-indent: 3.0.0 dev: true From f8408fa77a4c53a45c524dd1acf6847a0b12f9fd Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Fri, 15 Sep 2023 10:45:46 +0800 Subject: [PATCH 2/2] chore: add changeset --- .changeset/funny-bikes-press.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .changeset/funny-bikes-press.md diff --git a/.changeset/funny-bikes-press.md b/.changeset/funny-bikes-press.md new file mode 100644 index 000000000..f832be507 --- /dev/null +++ b/.changeset/funny-bikes-press.md @@ -0,0 +1,11 @@ +--- +"@logto/phrases-experience": patch +"@logto/integration-tests": patch +"@logto/console": patch +"@logto/schemas": patch +"@logto/core": patch +"@logto/cli": patch +"@logto/ui": patch +--- + +rename the package `phrases-ui` to `phrases-experience`