0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-06 20:40:08 -05:00

refactor(console): update phrases on the tenant settings page (#4905)

This commit is contained in:
Xiao Yijun 2023-11-17 16:53:47 +08:00 committed by GitHub
parent 6c8bd20fe0
commit 5011ffe379
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 138 additions and 40 deletions

View file

@ -34,7 +34,7 @@ function TenantEnvironment({ tag }: Props) {
{t(
tag === TenantTag.Development
? 'tenants.settings.development_description'
: 'tenants.create_modal.production_description'
: 'tenants.settings.production_description'
)}
</Trans>
</div>

View file

@ -1,5 +1,6 @@
import type { AdminConsoleKey } from '@logto/phrases';
import { TenantTag } from '@logto/schemas';
import { conditional } from '@silverhand/essentials';
import { Controller, useFormContext } from 'react-hook-form';
import { useTranslation } from 'react-i18next';
@ -48,7 +49,10 @@ function ProfileForm({ currentTenantId }: Props) {
} = useFormContext<TenantSettingsForm>();
return (
<FormCard title="tenants.settings.title">
<FormCard
title="tenants.settings.title"
description={conditional(isDevFeaturesEnabled && 'tenants.settings.description')}
>
<FormField title="tenants.settings.tenant_id">
<CopyToClipboard value={currentTenantId} variant="border" className={styles.textField} />
</FormField>
@ -82,7 +86,7 @@ function ProfileForm({ currentTenantId }: Props) {
</FormField>
)}
{isDevFeaturesEnabled && (
<FormField title="tenants.settings.environment_tag">
<FormField title="tenants.settings.tenant_type">
<TenantEnvironment tag={getValues('profile.tag')} />
</FormField>
)}

View file

@ -9,8 +9,8 @@ const tenants = {
},
settings: {
title: 'EINSTELLUNGEN',
description:
'Geben Sie den Mandanten-Namen ein und sehen Sie Ihre Daten in der gehosteten Region und mit dem Umgebungstag an.',
/** UNTRANSLATED */
description: 'Set the tenant name and view your data hosted region and tenant type.',
tenant_id: 'Mieter-ID',
tenant_name: 'Mietername',
tenant_region: 'Gehostete Region der Daten',
@ -22,8 +22,14 @@ const tenants = {
environment_tag_development: 'Entw',
environment_tag_staging: 'Staging',
environment_tag_production: 'Prod',
/** UNTRANSLATED */
tenant_type: 'Tenant type',
/** UNTRANSLATED */
development_description:
'Die Entwicklungsumgebung wird hauptsächlich zum Testen verwendet und enthält alle Pro-Funktionen, weist jedoch Wasserzeichen im Anmeldeerlebnis auf. <a>Mehr erfahren</a>',
"For testing only and shouldn't be used in production. No subscription is required. It has all the pro features but has limitations like a sign-in banner. <a>Learn more</a>",
/** UNTRANSLATED */
production_description:
'Intended for apps that are being used by end-users and may require a paid subscription. <a>Learn more</a>',
tenant_info_saved: 'Mieterinformationen erfolgreich gespeichert.',
},
full_env_tag: {

View file

@ -9,7 +9,7 @@ const tenants = {
},
settings: {
title: 'SETTINGS',
description: 'Set the tenant name and view your data hosted region and environment tag.',
description: 'Set the tenant name and view your data hosted region and tenant type.',
tenant_id: 'Tenant ID',
tenant_name: 'Tenant Name',
tenant_region: 'Data hosted region',
@ -20,8 +20,11 @@ const tenants = {
environment_tag_development: 'Dev',
environment_tag_staging: 'Staging',
environment_tag_production: 'Prod',
tenant_type: 'Tenant type',
development_description:
'Development environment is mainly used for testing and include all pro features but have watermarks in the sign in experience. <a>Learn more</a>',
"For testing only and shouldn't be used in production. No subscription is required. It has all the pro features but has limitations like a sign-in banner. <a>Learn more</a>",
production_description:
'Intended for apps that are being used by end-users and may require a paid subscription. <a>Learn more</a>',
tenant_info_saved: 'Tenant information saved successfully.',
},
full_env_tag: {

View file

@ -9,8 +9,8 @@ const tenants = {
},
settings: {
title: 'CONFIGURACIONES',
description:
'Establezca el nombre del inquilino y vea su región de alojamiento y etiqueta de entorno.',
/** UNTRANSLATED */
description: 'Set the tenant name and view your data hosted region and tenant type.',
tenant_id: 'ID del inquilino',
tenant_name: 'Nombre del inquilino',
tenant_region: 'Región de alojamiento de datos',
@ -22,8 +22,14 @@ const tenants = {
environment_tag_development: 'Desarrollo',
environment_tag_staging: 'Pruebas',
environment_tag_production: 'Producción',
/** UNTRANSLATED */
tenant_type: 'Tenant type',
/** UNTRANSLATED */
development_description:
'El entorno de desarrollo se utiliza principalmente para pruebas e incluye todas las funciones profesionales, pero tiene marcas de agua en la experiencia de inicio de sesión. <a>Obtén más información</a>',
"For testing only and shouldn't be used in production. No subscription is required. It has all the pro features but has limitations like a sign-in banner. <a>Learn more</a>",
/** UNTRANSLATED */
production_description:
'Intended for apps that are being used by end-users and may require a paid subscription. <a>Learn more</a>',
tenant_info_saved: 'Información del inquilino guardada correctamente.',
},
full_env_tag: {

View file

@ -9,8 +9,8 @@ const tenants = {
},
settings: {
title: 'PARAMÈTRES',
description:
"Définissez le nom du locataire et consultez votre région d'hébergement et l'étiquette d'environnement.",
/** UNTRANSLATED */
description: 'Set the tenant name and view your data hosted region and tenant type.',
tenant_id: 'ID du locataire',
tenant_name: 'Nom du locataire',
tenant_region: "Région d'hébergement des données",
@ -22,8 +22,14 @@ const tenants = {
environment_tag_development: 'Dev',
environment_tag_staging: 'Staging',
environment_tag_production: 'Prod',
/** UNTRANSLATED */
tenant_type: 'Tenant type',
/** UNTRANSLATED */
development_description:
"L'environnement de développement est principalement utilisé pour les tests et inclut toutes les fonctionnalités professionnelles mais comporte des filigranes dans l'expérience de connexion. <a>En savoir plus</a>",
"For testing only and shouldn't be used in production. No subscription is required. It has all the pro features but has limitations like a sign-in banner. <a>Learn more</a>",
/** UNTRANSLATED */
production_description:
'Intended for apps that are being used by end-users and may require a paid subscription. <a>Learn more</a>',
tenant_info_saved: 'Les informations du locataire ont été enregistrées avec succès.',
},
full_env_tag: {

View file

@ -10,8 +10,8 @@ const tenants = {
},
settings: {
title: 'IMPOSTAZIONI',
description:
"Imposta il nome del tenant e visualizza la tua regione di hosting e l'etichetta dell'ambiente.",
/** UNTRANSLATED */
description: 'Set the tenant name and view your data hosted region and tenant type.',
tenant_id: 'ID Tenant',
tenant_name: 'Nome Tenant',
tenant_region: 'Regione di hosting',
@ -22,8 +22,14 @@ const tenants = {
environment_tag_development: 'Svil',
environment_tag_staging: 'Staging',
environment_tag_production: 'Prod',
/** UNTRANSLATED */
tenant_type: 'Tenant type',
/** UNTRANSLATED */
development_description:
"L'ambiente di sviluppo viene principalmente utilizzato per i test e include tutte le funzionalità professionali, ma presenta filigrane durante l'esperienza di accesso. <a>Scopri di più</a>",
"For testing only and shouldn't be used in production. No subscription is required. It has all the pro features but has limitations like a sign-in banner. <a>Learn more</a>",
/** UNTRANSLATED */
production_description:
'Intended for apps that are being used by end-users and may require a paid subscription. <a>Learn more</a>',
tenant_info_saved: "Le informazioni dell'inquilino sono state salvate correttamente.",
},
full_env_tag: {

View file

@ -9,7 +9,8 @@ const tenants = {
},
settings: {
title: '設定',
description: 'テナント名を設定し、データがホストされている地域と環境のタグを表示します。',
/** UNTRANSLATED */
description: 'Set the tenant name and view your data hosted region and tenant type.',
tenant_id: 'テナントID',
tenant_name: 'テナント名',
tenant_region: 'データがホストされている地域',
@ -20,8 +21,14 @@ const tenants = {
environment_tag_development: '開発',
environment_tag_staging: 'ステージング',
environment_tag_production: '本番',
/** UNTRANSLATED */
tenant_type: 'Tenant type',
/** UNTRANSLATED */
development_description:
'Development environment is mainly used for testing and include all pro features but have watermarks in the sign in experience. <a>Learn more</a>',
"For testing only and shouldn't be used in production. No subscription is required. It has all the pro features but has limitations like a sign-in banner. <a>Learn more</a>",
/** UNTRANSLATED */
production_description:
'Intended for apps that are being used by end-users and may require a paid subscription. <a>Learn more</a>',
tenant_info_saved: 'テナント情報は正常に保存されました。',
},
full_env_tag: {

View file

@ -9,7 +9,8 @@ const tenants = {
},
settings: {
title: '설정',
description: '테넌트 이름을 설정하고 호스팅된 지역 및 환경 태그를 확인하세요.',
/** UNTRANSLATED */
description: 'Set the tenant name and view your data hosted region and tenant type.',
tenant_id: '테넌트 ID',
tenant_name: '테넌트 이름',
tenant_region: '데이터 호스팅 영역',
@ -20,8 +21,14 @@ const tenants = {
environment_tag_development: '개발',
environment_tag_staging: '스테이징',
environment_tag_production: '프로드',
/** UNTRANSLATED */
tenant_type: 'Tenant type',
/** UNTRANSLATED */
development_description:
'개발 환경은 주로 테스트 용도로 사용되며 모든 Pro 기능이 포함되지만 로그인 환경에 워터마크가 있습니다. <a>자세히 알아보기</a>',
"For testing only and shouldn't be used in production. No subscription is required. It has all the pro features but has limitations like a sign-in banner. <a>Learn more</a>",
/** UNTRANSLATED */
production_description:
'Intended for apps that are being used by end-users and may require a paid subscription. <a>Learn more</a>',
tenant_info_saved: '테넌트 정보가 성공적으로 저장되었습니다.',
},
full_env_tag: {

View file

@ -9,7 +9,8 @@ const tenants = {
},
settings: {
title: 'USTAWIENIA',
description: 'Ustaw nazwę najemcy i zobacz region hostowania oraz znacznik środowiska.',
/** UNTRANSLATED */
description: 'Set the tenant name and view your data hosted region and tenant type.',
tenant_id: 'ID Najemcy',
tenant_name: 'Nazwa Najemcy',
tenant_region: 'Data hosted region',
@ -20,8 +21,14 @@ const tenants = {
environment_tag_development: 'Dev',
environment_tag_staging: 'Staging',
environment_tag_production: 'Prod',
/** UNTRANSLATED */
tenant_type: 'Tenant type',
/** UNTRANSLATED */
development_description:
'Środowisko development jest głównie przeznaczone do testowania i obejmuje wszystkie funkcje pro, ale ma znaki wodne w doświadczeniu logowania. <a>Learn more</a>',
"For testing only and shouldn't be used in production. No subscription is required. It has all the pro features but has limitations like a sign-in banner. <a>Learn more</a>",
/** UNTRANSLATED */
production_description:
'Intended for apps that are being used by end-users and may require a paid subscription. <a>Learn more</a>',
tenant_info_saved: 'Informacje o najemcy zostały pomyślnie zapisane.',
},
full_env_tag: {

View file

@ -9,8 +9,8 @@ const tenants = {
},
settings: {
title: 'CONFIGURAÇÕES',
description:
'Defina o nome do locatário e veja a região de hospedagem e a etiqueta do ambiente.',
/** UNTRANSLATED */
description: 'Set the tenant name and view your data hosted region and tenant type.',
tenant_id: 'ID do Locatário',
tenant_name: 'Nome do Locatário',
tenant_region: 'Região de hospedagem',
@ -22,8 +22,14 @@ const tenants = {
environment_tag_development: 'Dev',
environment_tag_staging: 'Homol',
environment_tag_production: 'Prod',
/** UNTRANSLATED */
tenant_type: 'Tenant type',
/** UNTRANSLATED */
development_description:
"O ambiente de desenvolvimento é usado principalmente para testes e inclui todos os recursos profissionais, mas possui marcas d'água na experiência de login. <a>Learn more</a>",
"For testing only and shouldn't be used in production. No subscription is required. It has all the pro features but has limitations like a sign-in banner. <a>Learn more</a>",
/** UNTRANSLATED */
production_description:
'Intended for apps that are being used by end-users and may require a paid subscription. <a>Learn more</a>',
tenant_info_saved: 'As informações do locatário foram salvas com sucesso.',
},
full_env_tag: {

View file

@ -9,8 +9,8 @@ const tenants = {
},
settings: {
title: 'DEFINIÇÕES',
description:
'Defina o nome do inquilino e veja a região de hospedagem e a etiqueta do ambiente.',
/** UNTRANSLATED */
description: 'Set the tenant name and view your data hosted region and tenant type.',
tenant_id: 'ID do Inquilino',
tenant_name: 'Nome do Inquilino',
tenant_region: 'Região de hospedagem',
@ -22,8 +22,14 @@ const tenants = {
environment_tag_development: 'Dev',
environment_tag_staging: 'Staging',
environment_tag_production: 'Prod',
/** UNTRANSLATED */
tenant_type: 'Tenant type',
/** UNTRANSLATED */
development_description:
"O ambiente de desenvolvimento é principalmente utilizado para testes e inclui todos os recursos profissionais, mas têm marcas d'água na experiência de login. <a>Learn more</a>",
"For testing only and shouldn't be used in production. No subscription is required. It has all the pro features but has limitations like a sign-in banner. <a>Learn more</a>",
/** UNTRANSLATED */
production_description:
'Intended for apps that are being used by end-users and may require a paid subscription. <a>Learn more</a>',
tenant_info_saved: 'A informação do arrendatário foi guardada com sucesso.',
},
full_env_tag: {

View file

@ -9,7 +9,8 @@ const tenants = {
},
settings: {
title: 'НАСТРОЙКИ',
description: 'Установите имя арендатора и просмотрите регион размещения данных и метку среды.',
/** UNTRANSLATED */
description: 'Set the tenant name and view your data hosted region and tenant type.',
tenant_id: 'ID арендатора',
tenant_name: 'Имя арендатора',
tenant_region: 'Регион размещения данных',
@ -20,8 +21,14 @@ const tenants = {
environment_tag_development: 'Разр',
environment_tag_staging: 'Предпр',
environment_tag_production: 'Прод',
/** UNTRANSLATED */
tenant_type: 'Tenant type',
/** UNTRANSLATED */
development_description:
'Среда разработки в основном используется для тестирования и включает все профессиональные функции, но содержит водяные знаки при входе. <a>Узнайте больше</a>',
"For testing only and shouldn't be used in production. No subscription is required. It has all the pro features but has limitations like a sign-in banner. <a>Learn more</a>",
/** UNTRANSLATED */
production_description:
'Intended for apps that are being used by end-users and may require a paid subscription. <a>Learn more</a>',
tenant_info_saved: 'Информация о квартиросъемщике успешно сохранена.',
},
full_env_tag: {

View file

@ -9,8 +9,8 @@ const tenants = {
},
settings: {
title: 'AYARLAR',
description:
'Kiracı adını ayarlayın ve verilerinizin barındığı bölgeyi ve ortam etiketinizi görüntüleyin.',
/** UNTRANSLATED */
description: 'Set the tenant name and view your data hosted region and tenant type.',
tenant_id: 'Kiracı Kimliği',
tenant_name: 'Kiracı Adı',
tenant_region: 'Veriler barındırılan bölge',
@ -22,8 +22,14 @@ const tenants = {
environment_tag_development: 'Geliş',
environment_tag_staging: 'Staging',
environment_tag_production: 'Prod',
/** UNTRANSLATED */
tenant_type: 'Tenant type',
/** UNTRANSLATED */
development_description:
'Geliştirme ortamı genellikle test için kullanılır ve giriş deneyiminde filigranlar içerir. <a>Daha fazla bilgi</a>',
"For testing only and shouldn't be used in production. No subscription is required. It has all the pro features but has limitations like a sign-in banner. <a>Learn more</a>",
/** UNTRANSLATED */
production_description:
'Intended for apps that are being used by end-users and may require a paid subscription. <a>Learn more</a>',
tenant_info_saved: 'Kiracı bilgileri başarıyla kaydedildi.',
},
full_env_tag: {

View file

@ -9,7 +9,8 @@ const tenants = {
},
settings: {
title: '设置',
description: '设置租户名称并查看托管数据的地区和环境标签。',
/** UNTRANSLATED */
description: 'Set the tenant name and view your data hosted region and tenant type.',
tenant_id: '租户 ID',
tenant_name: '租户名称',
tenant_region: '数据托管地区',
@ -19,8 +20,14 @@ const tenants = {
environment_tag_development: '开发',
environment_tag_staging: '预发布',
environment_tag_production: '产品',
/** UNTRANSLATED */
tenant_type: 'Tenant type',
/** UNTRANSLATED */
development_description:
'开发环境主要用于测试,包括所有专业功能,但在登录体验中会有水印。 <a>了解更多</a>',
"For testing only and shouldn't be used in production. No subscription is required. It has all the pro features but has limitations like a sign-in banner. <a>Learn more</a>",
/** UNTRANSLATED */
production_description:
'Intended for apps that are being used by end-users and may require a paid subscription. <a>Learn more</a>',
tenant_info_saved: '租户信息成功保存。',
},
full_env_tag: {

View file

@ -9,7 +9,8 @@ const tenants = {
},
settings: {
title: '設定',
description: '設置租戶名稱並查看托管數據的地區和環境標籤。',
/** UNTRANSLATED */
description: 'Set the tenant name and view your data hosted region and tenant type.',
tenant_id: '租户ID',
tenant_name: '租户名称',
tenant_region: '數據托管區域',
@ -19,8 +20,14 @@ const tenants = {
environment_tag_development: '開發',
environment_tag_staging: '預備',
environment_tag_production: '產品',
/** UNTRANSLATED */
tenant_type: 'Tenant type',
/** UNTRANSLATED */
development_description:
'開發環境主要用於測試,並包括所有專業功能,但登錄體驗中會有浮水印。 <a>了解更多</a>',
"For testing only and shouldn't be used in production. No subscription is required. It has all the pro features but has limitations like a sign-in banner. <a>Learn more</a>",
/** UNTRANSLATED */
production_description:
'Intended for apps that are being used by end-users and may require a paid subscription. <a>Learn more</a>',
tenant_info_saved: '租戶信息成功保存。',
},
full_env_tag: {

View file

@ -9,7 +9,8 @@ const tenants = {
},
settings: {
title: '設定',
description: '設置租戶名稱並查看托管數據的地區和環境標籤。',
/** UNTRANSLATED */
description: 'Set the tenant name and view your data hosted region and tenant type.',
tenant_id: '租戶 ID',
tenant_name: '租戶名稱',
tenant_region: '資料托管地區',
@ -19,8 +20,14 @@ const tenants = {
environment_tag_development: '開發',
environment_tag_staging: '預置',
environment_tag_production: '產品',
/** UNTRANSLATED */
tenant_type: 'Tenant type',
/** UNTRANSLATED */
development_description:
'開發環境主要用於測試,包括所有 Pro 功能,但在登入體驗中會有浮水印。 <a>了解更多</a>',
"For testing only and shouldn't be used in production. No subscription is required. It has all the pro features but has limitations like a sign-in banner. <a>Learn more</a>",
/** UNTRANSLATED */
production_description:
'Intended for apps that are being used by end-users and may require a paid subscription. <a>Learn more</a>',
tenant_info_saved: '租戶資訊成功儲存。',
},
full_env_tag: {