diff --git a/.changeset/24142-settings-organization-noun.md b/.changeset/24142-settings-organization-noun.md new file mode 100644 index 00000000000..9885acd078b --- /dev/null +++ b/.changeset/24142-settings-organization-noun.md @@ -0,0 +1,13 @@ +--- +'@objectstack/service-settings': patch +--- + +Clause-②: no + +fix(service-settings): the Setup settings pages name the organization or the environment where they said "workspace" + +- **What changed.** The built-in settings manifests and their en, zh-CN, ja-JP and es-ES bundles no longer say "workspace" (工作区, ワークスペース, espacio de trabajo). Each string now uses the noun for what the setting belongs to: + - **Organization** (组织 / 組織 / organización): the Branding name field, now **Organization name**, and the Branding description; the Company legal-name help; the Feature Flags description. These settings are stored once per organization. + - **Environment** (环境 / 環境 / entorno): the Provider section of Mail and of SMS. These settings are stored once for the running instance. + - Authentication, New user membership: the help now names the explicit act as **creating an organization**. +- **Unchanged:** every setting key, including `branding.workspace_name` and its `OS_BRANDING_WORKSPACE_NAME` override; stored values; the Settings hub `category` values; the keys and shape of the translation bundles; and the exports. Only the text a reader sees changed. diff --git a/packages/services/service-settings/README.md b/packages/services/service-settings/README.md index 4124b7ea438..a22ca56a028 100644 --- a/packages/services/service-settings/README.md +++ b/packages/services/service-settings/README.md @@ -107,7 +107,7 @@ the following built-in manifests are pre-registered out of the box: |----------------|-----------------------------|---------------------------------------------| | `mail` | `EmailServicePlugin` | SMTP / Resend / Postmark + `mail/test` | | `storage` | `StorageServicePlugin` | Local FS / S3 + encrypted secret + `storage/test` | -| `branding` | (built-in fallback) | Workspace name, logo, accent colour | +| `branding` | (built-in fallback) | Organization name, logo, accent colour | | `feature_flags`| (built-in fallback) | Opt-in experimental features | ## License diff --git a/packages/services/service-settings/src/manifests/auth.manifest.ts b/packages/services/service-settings/src/manifests/auth.manifest.ts index 4a3c859cabd..e658e52658c 100644 --- a/packages/services/service-settings/src/manifests/auth.manifest.ts +++ b/packages/services/service-settings/src/manifests/auth.manifest.ts @@ -70,7 +70,7 @@ const manifest = { { value: 'invite-only', label: 'Invitation only — never join automatically' }, ], description: - 'Automatic binds every new user to this deployment\'s default organization. Invitation only grants membership solely through an explicit act — creating a workspace, accepting an invitation, being added by an admin, or SSO just-in-time provisioning. Applies to the backfill of pre-existing member-less users too.', + 'Automatic binds every new user to this deployment\'s default organization. Invitation only grants membership solely through an explicit act — creating an organization, accepting an invitation, being added by an admin, or SSO just-in-time provisioning. Applies to the backfill of pre-existing member-less users too.', }, // [#11768] Audience posture (#11739, epic #11723) — who may BECOME a user diff --git a/packages/services/service-settings/src/manifests/branding.manifest.ts b/packages/services/service-settings/src/manifests/branding.manifest.ts index 71c3548d2a5..d0aa0c53554 100644 --- a/packages/services/service-settings/src/manifests/branding.manifest.ts +++ b/packages/services/service-settings/src/manifests/branding.manifest.ts @@ -8,7 +8,7 @@ export const brandingSettingsManifest: SettingsManifest = { version: 1, label: 'Branding', icon: 'Palette', - description: 'Workspace name, logo, and accent colour.', + description: 'Organization name, logo, and accent colour.', scope: 'tenant', readPermission: 'setup.access', writePermission: 'setup.write', @@ -16,7 +16,7 @@ export const brandingSettingsManifest: SettingsManifest = { order: 5, specifiers: [ { type: 'group', id: 'identity', label: 'Identity', required: false }, - { type: 'text', key: 'workspace_name', label: 'Workspace name', required: true, + { type: 'text', key: 'workspace_name', label: 'Organization name', required: true, default: 'ObjectStack', minLength: 1, maxLength: 60 }, { type: 'email', key: 'support_email', label: 'Support email', required: false, description: 'Example: support@example.com' }, diff --git a/packages/services/service-settings/src/manifests/company.manifest.ts b/packages/services/service-settings/src/manifests/company.manifest.ts index a8737fea6fb..682d543a0eb 100644 --- a/packages/services/service-settings/src/manifests/company.manifest.ts +++ b/packages/services/service-settings/src/manifests/company.manifest.ts @@ -30,7 +30,7 @@ export const companySettingsManifest: SettingsManifest = { { type: 'group', id: 'identity', label: 'Identity', required: false }, { type: 'text', key: 'legal_name', label: 'Legal name', required: false, - description: 'Registered legal name of the organization (may differ from the workspace name).', + description: 'Registered legal name of the organization (may differ from the organization name set under Branding).', maxLength: 200, }, { diff --git a/packages/services/service-settings/src/manifests/feature-flags.manifest.ts b/packages/services/service-settings/src/manifests/feature-flags.manifest.ts index 7ff5af3f76a..0d24114aaee 100644 --- a/packages/services/service-settings/src/manifests/feature-flags.manifest.ts +++ b/packages/services/service-settings/src/manifests/feature-flags.manifest.ts @@ -8,7 +8,7 @@ export const featureFlagsSettingsManifest: SettingsManifest = { version: 1, label: 'Feature Flags', icon: 'FlaskConical', - description: 'Toggle experimental and beta features for this workspace.', + description: 'Toggle experimental and beta features for this organization.', scope: 'tenant', readPermission: 'setup.access', writePermission: 'setup.write', diff --git a/packages/services/service-settings/src/manifests/mail.manifest.ts b/packages/services/service-settings/src/manifests/mail.manifest.ts index fa6e08e1ab1..db39fb74ba9 100644 --- a/packages/services/service-settings/src/manifests/mail.manifest.ts +++ b/packages/services/service-settings/src/manifests/mail.manifest.ts @@ -55,7 +55,7 @@ const manifest = { order: 10, specifiers: [ { type: 'group', id: 'provider', label: 'Provider', required: false, - description: 'Choose how this workspace sends outbound email.' }, + description: 'Choose how this environment sends outbound email.' }, // See PROVIDER_OPTIONS above — the option list is a contract with // @objectstack/plugin-email, not a wish list. diff --git a/packages/services/service-settings/src/manifests/sms.manifest.ts b/packages/services/service-settings/src/manifests/sms.manifest.ts index f8d4ee3ea67..83913daa46f 100644 --- a/packages/services/service-settings/src/manifests/sms.manifest.ts +++ b/packages/services/service-settings/src/manifests/sms.manifest.ts @@ -19,7 +19,7 @@ const manifest = { order: 11, specifiers: [ { type: 'group', id: 'provider', label: 'Provider', required: false, - description: 'Choose how this workspace sends outbound SMS.' }, + description: 'Choose how this environment sends outbound SMS.' }, // ⚠️ This options table is a CONTRACT, not a menu of aspirations: every // value here must be one `@objectstack/service-sms` can actually build a diff --git a/packages/services/service-settings/src/settings-retired-workspace-noun.pin.test.ts b/packages/services/service-settings/src/settings-retired-workspace-noun.pin.test.ts new file mode 100644 index 00000000000..6066e04adde --- /dev/null +++ b/packages/services/service-settings/src/settings-retired-workspace-noun.pin.test.ts @@ -0,0 +1,150 @@ +// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license. + +/** + * 「工作区」 is retired from what a reader sees on the Setup settings pages. + * + * The maintainer's ruling (cloud ruling record 6229029648): one noun, 「组织」, + * for the thing members and billing belong to, and 「环境」 for the running + * instance. "Workspace" named both, so it names neither. + * + * ## Which noun a string takes — the manifest's own `scope` decides + * + * The same manifests are read on the control plane and in a tenant + * environment, and nothing in a manifest tells the two planes apart. Nothing + * has to: the noun follows the storage `scope` the manifest already declares, + * and that scope means the same thing on both planes, because one + * `SettingsService` stores both. + * + * - `tenant` — one row per ORGANIZATION (`sys_setting`'s identity is + * `(organization_id, namespace, key, scope, user_id)`; + * `settings-organization-isolation.pin.test.ts`). Branding, company and + * feature flags say "organization". + * - `global` — one row for the running instance. Mail and SMS say + * "environment", the noun the auth page's audience copy already uses. + * + * ## What is pinned + * + * Every user-facing STRING of every built-in manifest, and every VALUE of + * every shipped locale bundle, is free of the retired noun in all four + * locales' spellings. Keys are not copy and keep their spelling: the storage + * key `workspace_name`, the `OS_BRANDING_WORKSPACE_NAME` override derived from + * it, and the hub `category` value (see {@link NOT_COPY}). + */ + +import { describe, it, expect } from 'vitest'; +import type { SettingsManifest } from '@objectstack/spec/system'; +import * as manifestsModule from './manifests/index.js'; +import { builtinSettingsManifests } from './manifests/index.js'; +import { en, zhCN, jaJP, esES } from './translations/index.js'; + +const manifests = Object.values(manifestsModule).filter( + (v): v is SettingsManifest => + !!v && + typeof v === 'object' && + 'namespace' in v && + Array.isArray((v as SettingsManifest).specifiers), +); + +const BUNDLES: Array<[string, object]> = [ + ['en', en], + ['zh-CN', zhCN], + ['ja-JP', jaJP], + ['es-ES', esES], +]; + +/** + * The retired noun, one spelling per locale. The English one matches the WORD + * only: a neighbouring letter, digit or underscore makes it part of an + * identifier, so `workspace_name` and `OS_BRANDING_WORKSPACE_NAME` named in + * prose are keys, not the noun. + */ +const RETIRED: ReadonlyArray = [ + ['workspace', /(? re.test(text)).map(([name]) => name); +} + +/** + * Manifest properties a machine reads, never a person: identifiers, storage + * keys, stored values, permissions, expressions and handler wiring. Every + * OTHER string in a manifest is walked, so a copy field added later is covered + * without editing this list. + * + * `category` is here because it is a lookup KEY, not copy: the console reads + * `console.settingsHub.categories.` and translates the section + * header itself, in its own bundles. Renaming the value would move the + * console's key, not this package's copy. + */ +const NOT_COPY: ReadonlySet = new Set([ + 'namespace', 'key', 'id', 'childNamespace', 'replacedBy', 'category', + 'value', 'default', 'icon', 'type', 'scope', 'availableScopes', + 'readPermission', 'writePermission', 'featureFlag', 'visible', 'pattern', + 'valueDomain', 'bannerSeverity', + // handler wiring (`action_button`); its `confirmText` stays copy. + 'kind', 'method', 'url', 'body', 'name', 'params', 'target', +]); + +/** Every string under `node`, with its path; `skip` names properties not descended. */ +function stringsUnder(node: unknown, path: string, skip: ReadonlySet): Array<[string, string]> { + if (typeof node === 'string') return [[path, node]]; + if (Array.isArray(node)) return node.flatMap((v, i) => stringsUnder(v, `${path}.${i}`, skip)); + if (node && typeof node === 'object') { + return Object.entries(node).flatMap(([k, v]) => (skip.has(k) ? [] : stringsUnder(v, `${path}.${k}`, skip))); + } + return []; +} + +const NOTHING: ReadonlySet = new Set(); + +describe('the retired noun: no settings manifest or bundle says workspace / 工作区', () => { + it('the detector flags the noun in each locale and passes identifiers', () => { + for (const noun of ['Workspace name', 'for this workspace.', 'Workspaces', '此工作区', 'このワークスペース', 'este espacio de trabajo']) { + expect(retiredIn(noun), noun).not.toEqual([]); + } + for (const key of ['workspace_name', '`workspace_name`', 'OS_BRANDING_WORKSPACE_NAME', 'Organization name', '组织名称', '環境']) { + expect(retiredIn(key), key).toEqual([]); + } + }); + + it('walks every built-in manifest', () => { + expect(manifests.length).toBeGreaterThanOrEqual(10); + for (const m of builtinSettingsManifests) expect(manifests).toContain(m); + }); + + for (const m of manifests) { + it(`settings.${m.namespace}: no user-facing manifest string carries it`, () => { + const strings = stringsUnder(m, m.namespace, NOT_COPY); + const seen = new Set(strings.map(([p]) => p)); + // Non-vacuity: the walk reaches the manifest's label and every + // specifier's label and option labels, so NOT_COPY swallowed no copy. + expect(seen.has(`${m.namespace}.label`)).toBe(true); + m.specifiers.forEach((s, i) => { + if (typeof s.label === 'string') expect(seen.has(`${m.namespace}.specifiers.${i}.label`)).toBe(true); + (s.options ?? []).forEach((o, j) => { + if (typeof o.label === 'string') { + expect(seen.has(`${m.namespace}.specifiers.${i}.options.${j}.label`)).toBe(true); + } + }); + }); + const hits = strings.flatMap(([p, v]) => retiredIn(v).map((noun) => `${p} (${noun}): ${v}`)); + expect(hits, `the retired noun in manifest copy:\n${hits.join('\n')}`).toEqual([]); + }); + } + + for (const [locale, data] of BUNDLES) { + it(`${locale}: no bundle value carries it`, () => { + const strings = stringsUnder(data, locale, NOTHING); + // Non-vacuity: values are walked by their path, keys never as text — + // the storage key `workspace_name` is a path segment here, not a value. + expect(strings.length).toBeGreaterThan(100); + expect(strings.map(([p]) => p)).toContain(`${locale}.settings.branding.keys.workspace_name.label`); + const hits = strings.flatMap(([p, v]) => retiredIn(v).map((noun) => `${p} (${noun}): ${v}`)); + expect(hits, `the retired noun in ${locale} copy:\n${hits.join('\n')}`).toEqual([]); + }); + } +}); diff --git a/packages/services/service-settings/src/translations/en.ts b/packages/services/service-settings/src/translations/en.ts index 6dcf8a6f856..e87b63c0b81 100644 --- a/packages/services/service-settings/src/translations/en.ts +++ b/packages/services/service-settings/src/translations/en.ts @@ -24,7 +24,7 @@ export const en: PlatformTranslationData = { title: 'Mail Delivery', description: 'SMTP and transactional email provider configuration.', groups: { - provider: { title: 'Provider', description: 'Choose how this workspace sends outbound email.' }, + provider: { title: 'Provider', description: 'Choose how this environment sends outbound email.' }, smtp: { title: 'SMTP' }, api_key: { title: 'API key' }, from_address: { title: 'From address' }, @@ -64,13 +64,13 @@ export const en: PlatformTranslationData = { branding: { title: 'Branding', - description: 'Workspace name, logo, and accent colour.', + description: 'Organization name, logo, and accent colour.', groups: { identity: { title: 'Identity' }, appearance: { title: 'Appearance' }, }, keys: { - workspace_name: { label: 'Workspace name' }, + workspace_name: { label: 'Organization name' }, support_email: { label: 'Support email', help: 'Example: support@example.com' }, theme_mode: { label: 'Default theme', @@ -90,7 +90,7 @@ export const en: PlatformTranslationData = { contact: { title: 'Contact' }, }, keys: { - legal_name: { label: 'Legal name', help: 'Registered legal name (may differ from the workspace name).' }, + legal_name: { label: 'Legal name', help: 'Registered legal name (may differ from the organization name set under Branding).' }, registration_number: { label: 'Registration number', help: 'Company registration / incorporation number (e.g. EIN).' }, tax_id: { label: 'Tax / VAT ID', help: 'Shown on invoices (e.g. VAT, GST, ABN).' }, address_line1: { label: 'Address line 1' }, @@ -158,7 +158,7 @@ export const en: PlatformTranslationData = { require_email_verification: { label: 'Require email verification' }, membership_policy: { label: 'New user membership', - help: 'Automatic binds every new user to the default organization. Invitation only grants membership solely through an explicit act — creating a workspace, accepting an invitation, an admin adding them, or SSO just-in-time provisioning.', + help: 'Automatic binds every new user to the default organization. Invitation only grants membership solely through an explicit act — creating an organization, accepting an invitation, an admin adding them, or SSO just-in-time provisioning.', options: { auto: 'Join the default organization automatically', 'invite-only': 'Invitation only — never join automatically', @@ -202,7 +202,7 @@ export const en: PlatformTranslationData = { feature_flags: { title: 'Feature Flags', - description: 'Toggle experimental and beta features for this workspace.', + description: 'Toggle experimental and beta features for this organization.', groups: { productivity: { title: 'Productivity' }, collaboration: { title: 'Collaboration' }, diff --git a/packages/services/service-settings/src/translations/es-ES.ts b/packages/services/service-settings/src/translations/es-ES.ts index ad6e3e62871..ba308027f67 100644 --- a/packages/services/service-settings/src/translations/es-ES.ts +++ b/packages/services/service-settings/src/translations/es-ES.ts @@ -20,7 +20,7 @@ export const esES: PlatformTranslationData = { title: 'Envío de correo', description: 'Configuración de SMTP y del proveedor de correo transaccional.', groups: { - provider: { title: 'Proveedor', description: 'Elige cómo envía correo saliente este espacio de trabajo.' }, + provider: { title: 'Proveedor', description: 'Elige cómo envía correo saliente este entorno.' }, smtp: { title: 'SMTP' }, api_key: { title: 'Clave de API' }, from_address: { title: 'Dirección de remitente' }, @@ -60,13 +60,13 @@ export const esES: PlatformTranslationData = { branding: { title: 'Marca', - description: 'Nombre del espacio de trabajo, logotipo y color de acento.', + description: 'Nombre de la organización, logotipo y color de acento.', groups: { identity: { title: 'Identidad' }, appearance: { title: 'Apariencia' }, }, keys: { - workspace_name: { label: 'Nombre del espacio de trabajo' }, + workspace_name: { label: 'Nombre de la organización' }, support_email: { label: 'Correo de soporte', help: 'Ejemplo: support@example.com' }, theme_mode: { label: 'Tema predeterminado', @@ -129,7 +129,7 @@ export const esES: PlatformTranslationData = { require_email_verification: { label: 'Requerir verificación de correo' }, membership_policy: { label: 'Pertenencia de los usuarios nuevos', - help: 'La opción automática vincula cada usuario nuevo a la organización predeterminada del despliegue. «Solo por invitación» concede la pertenencia únicamente mediante un acto explícito: crear un espacio de trabajo, aceptar una invitación, que un administrador lo añada o el aprovisionamiento just-in-time por SSO.', + help: 'La opción automática vincula cada usuario nuevo a la organización predeterminada del despliegue. «Solo por invitación» concede la pertenencia únicamente mediante un acto explícito: crear una organización, aceptar una invitación, que un administrador lo añada o el aprovisionamiento just-in-time por SSO.', options: { auto: 'Unirse automáticamente a la organización predeterminada', 'invite-only': 'Solo por invitación: nunca se une automáticamente', @@ -251,7 +251,7 @@ export const esES: PlatformTranslationData = { title: 'Envío de SMS', description: 'Configuración del proveedor de SMS para inicio de sesión con OTP, invitaciones y notificaciones.', groups: { - provider: { title: 'Proveedor', description: 'Elige cómo envía este espacio de trabajo los SMS salientes.' }, + provider: { title: 'Proveedor', description: 'Elige cómo envía este entorno los SMS salientes.' }, aliyun: { title: 'Aliyun SMS' }, twilio: { title: 'Twilio' }, limits: { title: 'Límites de gasto', description: 'Limita el volumen de SMS salientes del despliegue. El SMS es un canal de pago y cada envío cuesta dinero real.' }, @@ -292,7 +292,7 @@ export const esES: PlatformTranslationData = { contact: { title: 'Contacto' }, }, keys: { - legal_name: { label: 'Razón social', help: 'Nombre legal registrado de la organización (puede diferir del nombre del espacio de trabajo).' }, + legal_name: { label: 'Razón social', help: 'Nombre legal registrado de la organización (puede diferir del nombre de la organización indicado en Marca).' }, registration_number: { label: 'Número de registro', help: 'Número de registro / constitución de la empresa (p. ej. EIN, n.º de sociedad).' }, tax_id: { label: 'ID fiscal / IVA', help: 'Identificador fiscal que aparece en las facturas (p. ej. IVA, GST, ABN).' }, address_line1: { label: 'Dirección línea 1' }, @@ -326,7 +326,7 @@ export const esES: PlatformTranslationData = { feature_flags: { title: 'Indicadores de función', - description: 'Activa funciones experimentales y en beta para este espacio de trabajo.', + description: 'Activa funciones experimentales y en beta para esta organización.', groups: { productivity: { title: 'Productividad' }, collaboration: { title: 'Colaboración' }, diff --git a/packages/services/service-settings/src/translations/ja-JP.ts b/packages/services/service-settings/src/translations/ja-JP.ts index f9ba2e25f00..06a7e0f91f3 100644 --- a/packages/services/service-settings/src/translations/ja-JP.ts +++ b/packages/services/service-settings/src/translations/ja-JP.ts @@ -20,7 +20,7 @@ export const jaJP: PlatformTranslationData = { title: 'メール配信', description: 'SMTP およびトランザクションメールプロバイダー設定。', groups: { - provider: { title: 'プロバイダー', description: 'このワークスペースの送信方法を選択します。' }, + provider: { title: 'プロバイダー', description: 'この環境の送信方法を選択します。' }, smtp: { title: 'SMTP' }, api_key: { title: 'API キー' }, from_address: { title: '差出人アドレス' }, @@ -60,13 +60,13 @@ export const jaJP: PlatformTranslationData = { branding: { title: 'ブランディング', - description: 'ワークスペース名・ロゴ・アクセントカラー。', + description: '組織名・ロゴ・アクセントカラー。', groups: { identity: { title: 'アイデンティティ' }, appearance: { title: '外観' }, }, keys: { - workspace_name: { label: 'ワークスペース名' }, + workspace_name: { label: '組織名' }, support_email: { label: 'サポートメール', help: '例: support@example.com' }, theme_mode: { label: 'デフォルトテーマ', @@ -129,7 +129,7 @@ export const jaJP: PlatformTranslationData = { require_email_verification: { label: 'メール確認を必須にする' }, membership_policy: { label: '新規ユーザーのメンバーシップ', - help: '「自動」はすべての新規ユーザーをこのデプロイの既定組織に紐付けます。「招待のみ」では、ワークスペースの作成、招待の承諾、管理者による追加、SSO のジャストインタイムプロビジョニングといった明示的な行為によってのみメンバーシップが付与されます。', + help: '「自動」はすべての新規ユーザーをこのデプロイの既定組織に紐付けます。「招待のみ」では、組織の作成、招待の承諾、管理者による追加、SSO のジャストインタイムプロビジョニングといった明示的な行為によってのみメンバーシップが付与されます。', options: { auto: '既定の組織に自動的に参加', 'invite-only': '招待のみ — 自動では参加しない', @@ -251,7 +251,7 @@ export const jaJP: PlatformTranslationData = { title: 'SMS 配信', description: 'OTP サインイン、招待、通知に使う SMS プロバイダー設定。', groups: { - provider: { title: 'プロバイダー', description: 'このワークスペースが送信 SMS をどう送るかを選択します。' }, + provider: { title: 'プロバイダー', description: 'この環境が送信 SMS をどう送るかを選択します。' }, aliyun: { title: 'Aliyun SMS' }, twilio: { title: 'Twilio' }, limits: { title: '送信上限', description: 'この配備の送信 SMS 量を制限します。SMS は有料チャネルで、1 通ごとに実費が発生します。' }, @@ -292,7 +292,7 @@ export const jaJP: PlatformTranslationData = { contact: { title: '連絡先' }, }, keys: { - legal_name: { label: '登記名', help: '組織の登記上の正式名称(ワークスペース名と異なる場合があります)。' }, + legal_name: { label: '登記名', help: '組織の登記上の正式名称(「ブランディング」の組織名と異なる場合があります)。' }, registration_number: { label: '登記番号', help: '会社の登記 / 設立番号(例:EIN、会社番号)。' }, tax_id: { label: '税務 / VAT ID', help: '請求書に表示される税務識別番号(例:VAT、GST、ABN)。' }, address_line1: { label: '住所 1' }, @@ -326,7 +326,7 @@ export const jaJP: PlatformTranslationData = { feature_flags: { title: '機能フラグ', - description: 'このワークスペースで実験的・ベータ機能を切替えます。', + description: 'この組織で実験的・ベータ機能を切替えます。', groups: { productivity: { title: '生産性' }, collaboration: { title: 'コラボレーション' }, diff --git a/packages/services/service-settings/src/translations/zh-CN.ts b/packages/services/service-settings/src/translations/zh-CN.ts index 234f8f8bfe1..568263dfa14 100644 --- a/packages/services/service-settings/src/translations/zh-CN.ts +++ b/packages/services/service-settings/src/translations/zh-CN.ts @@ -20,7 +20,7 @@ export const zhCN: PlatformTranslationData = { title: '邮件投递', description: 'SMTP 与事务性邮件服务商配置。', groups: { - provider: { title: '服务商', description: '选择此工作区如何发送邮件。' }, + provider: { title: '服务商', description: '选择此环境如何发送邮件。' }, smtp: { title: 'SMTP' }, api_key: { title: 'API 密钥' }, from_address: { title: '发件地址' }, @@ -60,7 +60,7 @@ export const zhCN: PlatformTranslationData = { title: '短信投递', description: '用于 OTP 登录、邀请与通知的短信服务商配置。', groups: { - provider: { title: '服务商', description: '选择此工作区如何发送外发短信。' }, + provider: { title: '服务商', description: '选择此环境如何发送外发短信。' }, aliyun: { title: '阿里云短信' }, twilio: { title: 'Twilio' }, limits: { title: '发送额度', description: '限制本部署的外发短信量。短信是付费通道,每一条都产生真实费用。' }, @@ -100,13 +100,13 @@ export const zhCN: PlatformTranslationData = { branding: { title: '品牌', - description: '工作区名称、Logo 与主题色。', + description: '组织名称、Logo 与主题色。', groups: { identity: { title: '身份' }, appearance: { title: '外观' }, }, keys: { - workspace_name: { label: '工作区名称' }, + workspace_name: { label: '组织名称' }, support_email: { label: '客服邮箱', help: '示例:support@example.com' }, theme_mode: { label: '默认主题', @@ -126,7 +126,7 @@ export const zhCN: PlatformTranslationData = { contact: { title: '联系方式' }, }, keys: { - legal_name: { label: '法定名称', help: '注册的法定名称(可能与工作区名称不同)。' }, + legal_name: { label: '法定名称', help: '注册的法定名称(可能与「品牌」中的组织名称不同)。' }, registration_number: { label: '注册号', help: '公司注册/工商登记号(如 EIN、统一社会信用代码)。' }, tax_id: { label: '税号 / VAT', help: '发票上显示的税务标识(如 VAT、GST、ABN)。' }, address_line1: { label: '地址行 1' }, @@ -271,7 +271,7 @@ export const zhCN: PlatformTranslationData = { require_email_verification: { label: '要求邮箱验证' }, membership_policy: { label: '新用户的成员归属', - help: '「自动加入」会把每个新用户绑定到本部署的默认组织;「仅限邀请」只在用户显式行动后才授予成员身份——自行创建工作区、接受邀请、被管理员添加,或由 SSO 即时开通。', + help: '「自动加入」会把每个新用户绑定到本部署的默认组织;「仅限邀请」只在用户显式行动后才授予成员身份——自行创建组织、接受邀请、被管理员添加,或由 SSO 即时开通。', options: { auto: '自动加入默认组织', 'invite-only': '仅限邀请——绝不自动加入', @@ -391,7 +391,7 @@ export const zhCN: PlatformTranslationData = { feature_flags: { title: '功能开关', - description: '为当前工作区开启实验性与测试功能。', + description: '为当前组织开启实验性与测试功能。', groups: { productivity: { title: '生产力' }, collaboration: { title: '协作' },