Skip to content

Commit a54649c

Browse files
committed
fix(settings): settings copy tables carry the eleven platform locales; sms/test and the built-in settings answers write the caller's language
Claude-Session: https://claude.ai/code/session_016WV4d1JeXeWGVzxc12FsUx Co-authored-by: Claude <noreply@anthropic.com>
1 parent 5d75a22 commit a54649c

13 files changed

Lines changed: 467 additions & 21 deletions
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@objectstack/plugin-auth': patch
3+
'@objectstack/plugin-email': patch
4+
'@objectstack/service-settings': patch
5+
'@objectstack/service-sms': patch
6+
---
7+
8+
fix(settings): settings refusals, live statements and action answers are written in every platform language, and `zh-TW` reads Traditional Chinese
9+
10+
Clause-②: no
11+
Metadata-protocol: none
12+
13+
- **Every module-local settings copy table carries the eleven platform languages** (the platform locale table: English, Simplified and Traditional Chinese, Spanish, Arabic, French, Brazilian Portuguese, Russian, German, Japanese, Korean). Before, they carried four (Setup → Email's live statement two), so a caller in any other language read English. Covered: the allowed-IP-ranges save refusal, the sign-in method floor refusals, the `auth.mfa_required` refusal and the organization MFA refusal and save notice (`@objectstack/plugin-auth`); Setup → Email's live-transport statement and "Send test email" answers (`@objectstack/plugin-email`); the default-currency lock and the "no longer offered" locale option (`@objectstack/service-settings`).
14+
- **`zh-TW`, `zh-HK` and `zh-MO` callers read Traditional Chinese.** Each table looks the caller's code up with core's `resolveLocale`, which reads it through the platform locale table's read aliases; a code naming no language on the table is answered in English, as before.
15+
- **"Send test SMS" (`sms/test`, `@objectstack/service-sms`) answers in the caller's language** (`Accept-Language`, else `?locale`), like the mail and storage connection tests. It read no locale before and answered English in every console language. A provider's own error text still passes through verbatim.
16+
- **The two answers `SettingsService.runAction` writes itself** (the built-in `reset` result and the refusal for an action with no registered handler) are written in the caller's language. With no locale, or one off the platform table, every sentence is the English one callers read before.

‎packages/plugins/plugin-auth/src/allowed-ip-ranges.ts‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export interface AllowedIpRangesWriteRefusal {
112112
constraint: { clientAddress: string | null };
113113
}
114114

115-
interface RefusalCopy {
115+
export interface AllowedIpRangesRefusalCopy {
116116
outside(address: string): string;
117117
undetermined: string;
118118
recovery: string;
@@ -123,7 +123,7 @@ interface RefusalCopy {
123123
* under their older codes; `resolveLocale` reads a caller's code through that
124124
* table (`zh-TW` → `zh-Hant`).
125125
*/
126-
const COPY: Record<SettingsCopyLocale, RefusalCopy> = {
126+
export const ALLOWED_IP_RANGES_REFUSAL_COPY: Record<SettingsCopyLocale, AllowedIpRangesRefusalCopy> = {
127127
en: {
128128
outside: (address) =>
129129
`No entry in this list matches ${address}, the address you are connected from, so saving it would refuse your `
@@ -236,11 +236,12 @@ const COPY: Record<SettingsCopyLocale, RefusalCopy> = {
236236
},
237237
};
238238

239-
const COPY_LOCALES = Object.keys(COPY);
239+
const COPY_LOCALES = Object.keys(ALLOWED_IP_RANGES_REFUSAL_COPY);
240240

241-
function copyFor(locale: string | undefined): RefusalCopy {
241+
/** The refusal copy for a caller's locale: through the platform locale table, else English. */
242+
export function allowedIpRangesRefusalCopy(locale: string | undefined): AllowedIpRangesRefusalCopy {
242243
const picked = locale ? resolveLocale(locale, COPY_LOCALES) : undefined;
243-
return COPY[(picked ?? 'en') as keyof typeof COPY];
244+
return ALLOWED_IP_RANGES_REFUSAL_COPY[(picked ?? 'en') as SettingsCopyLocale];
244245
}
245246

246247
/**
@@ -260,7 +261,7 @@ export function allowedIpRangesWritePredicate(
260261
if (!mgr) return undefined;
261262
const address = judgedClientAddress(mgr, transport);
262263
if (address && ranges.some((range) => ipMatchesRange(address, range))) return undefined;
263-
const copy = copyFor(locale);
264+
const copy = allowedIpRangesRefusalCopy(locale);
264265
return {
265266
message: (address ? copy.outside(address) : copy.undetermined) + copy.recovery,
266267
constraint: { clientAddress: address ?? null },

‎packages/plugins/plugin-auth/src/mfa-required-enrollment-predicate.test.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,9 @@ describe('the global mfa_required switch needs two-factor enrollment', () => {
225225
expect(off({ next: null, current: true })).toBeUndefined();
226226
expect(off({ next: true, current: 'true' })).toBeUndefined();
227227
expect(mfaRequiredEnrollmentPredicate(() => true)({ next: true, current: false })).toBeUndefined();
228-
// Unknown locales fall back to English.
229-
expect(off({ next: true, current: false, locale: 'fr-FR' })?.message).toBe(MFA_REQUIRED_ENROLLMENT_COPY.en);
228+
// A language off the platform locale table falls back to English; French is on it.
229+
expect(off({ next: true, current: false, locale: 'sw-KE' })?.message).toBe(MFA_REQUIRED_ENROLLMENT_COPY.en);
230+
expect(off({ next: true, current: false, locale: 'fr-FR' })?.message).toBe(MFA_REQUIRED_ENROLLMENT_COPY.fr);
230231
});
231232

232233
it('a settings service without write predicates is said at warn, only while the pin makes it matter', () => {

‎packages/plugins/plugin-auth/src/organization-mfa-enrollment-guard.test.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ describe('#30411 the refusal is in the caller\'s language, with the same field-l
436436

437437
it.each([
438438
['zh', 'zh-CN'], ['zh-cn', 'zh-CN'], ['zh-Hans-CN', 'zh-CN'], ['ja', 'ja-JP'], ['es-MX', 'es-ES'],
439-
['fr-FR', 'en'], ['', 'en'],
439+
['fr-FR', 'fr'], ['zh-TW', 'zh-Hant'], ['sw-KE', 'en'], ['', 'en'],
440440
] as const)('the request locale %j reads the %s copy (exact, then by language, else English)', (asked, served) => {
441441
expect((organizationMfaWithoutEnrollmentRefusal(asked) as any).message).toBe(ORGANIZATION_MFA_REFUSAL_COPY[served]);
442442
});
@@ -493,7 +493,9 @@ describe('#30411 an admitted turn-on answers the grace period in force as its sa
493493
for (const [locale, copy] of Object.entries(ORGANIZATION_MFA_REQUIRED_NOTICE_COPY)) {
494494
expect(copy(0), locale).toMatch(/\b0\b/);
495495
expect(copy(0), locale).not.toBe(copy(1));
496-
expect(copy(1), locale).toMatch(/\b1\b/);
496+
// Arabic writes one day as a word, as its grammar does ("يوم واحد"); every other language as a digit.
497+
if (locale === 'ar') expect(copy(1), locale).toContain('يوم واحد');
498+
else expect(copy(1), locale).toMatch(/\b1\b/);
497499
expect(copy(45), locale).toMatch(/\b45\b/);
498500
expect(copy(45), locale).not.toMatch(/#\d/);
499501
}

‎packages/plugins/plugin-auth/src/organization-mfa-enrollment-guard.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,8 @@ export const ORGANIZATION_MFA_REFUSAL_COPY: Readonly<Record<CopyLocale, string>>
251251
ko:
252252
'이 조직은 아직 다단계 인증을 필수로 설정할 수 없습니다. 이 배포에서는 2단계 인증 등록이 꺼져 있으므로, 유예 ' +
253253
'기간이 끝나면 소유자를 포함한 모든 구성원이 인증 앱을 등록할 방법 없이 차단됩니다. 먼저 2단계 인증을 켠 다음 ' +
254-
'여기에서 필수로 설정하세요. 배포에서 OS_AUTH_TWO_FACTOR=true로 설정하면 됩니다. 배포에서 OS_AUTH_TWO_FACTOR가 ' +
255-
'false로 설정되어 있지 않다면(이 값은 설정보다 우선합니다) auth.mfa_required 설정을 켜는 방법도 있습니다. 이 ' +
254+
'여기에서 필수로 설정하세요. 배포에서 OS_AUTH_TWO_FACTOR=true로 설정하면 됩니다. 배포에서 OS_AUTH_TWO_FACTOR ' +
255+
'값이 false로 설정되어 있지 않다면(이 값은 설정보다 우선합니다) auth.mfa_required 설정을 켜는 방법도 있습니다. 이 ' +
256256
'설정은 모든 조직에 다단계 인증을 요구하고 등록도 함께 켭니다.',
257257
};
258258

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
2+
//
3+
// Every settings copy table this plugin writes carries every language on the
4+
// platform locale table, and a caller's code finds its own language's entry:
5+
// `zh-TW` the Traditional one (never the Simplified), a stored alias its
6+
// table language, anything else English.
7+
8+
import { describe, it, expect } from 'vitest';
9+
import { PLATFORM_LOCALE_TAGS, type PlatformLocaleTag } from '@objectstack/spec/system';
10+
import type { SettingsCopyLocale } from './settings-copy-locale.js';
11+
import { ALLOWED_IP_RANGES_REFUSAL_COPY, allowedIpRangesRefusalCopy } from './allowed-ip-ranges.js';
12+
import { SIGN_IN_FLOOR_COPY, signInFloorCopy } from './sign-in-method-floor.js';
13+
import { MFA_REQUIRED_ENROLLMENT_COPY, mfaRequiredEnrollmentCopy } from './mfa-required-enrollment-predicate.js';
14+
import {
15+
ORGANIZATION_MFA_REFUSAL_COPY,
16+
ORGANIZATION_MFA_REQUIRED_NOTICE_COPY,
17+
organizationMfaRequiredNotice,
18+
organizationMfaWithoutEnrollmentRefusal,
19+
} from './organization-mfa-enrollment-guard.js';
20+
21+
/** The key each platform table tag is served by. */
22+
const KEY_OF_TAG: Record<PlatformLocaleTag, SettingsCopyLocale> = {
23+
en: 'en', 'zh-Hans': 'zh-CN', 'zh-Hant': 'zh-Hant', es: 'es-ES', ar: 'ar', fr: 'fr',
24+
'pt-BR': 'pt-BR', ru: 'ru', de: 'de', ja: 'ja-JP', ko: 'ko',
25+
};
26+
const KEYS = PLATFORM_LOCALE_TAGS.map((tag) => KEY_OF_TAG[tag]);
27+
28+
/** An entry's sentences, functions called with sample arguments. */
29+
function sentences(entry: unknown): Record<string, string> {
30+
if (typeof entry === 'string') return { text: entry };
31+
if (typeof entry === 'function') return { 0: entry(0), 1: entry(1), 7: entry(7), 22: entry(22) };
32+
const out: Record<string, string> = {};
33+
for (const [field, value] of Object.entries(entry as Record<string, unknown>)) {
34+
out[field] = typeof value === 'function' ? value('203.0.113.7') : String(value);
35+
}
36+
return out;
37+
}
38+
39+
interface Table {
40+
name: string;
41+
table: Record<string, unknown>;
42+
/** The table's own lookup, answering the entry a caller's code is served. */
43+
lookup(locale: string | undefined): unknown;
44+
}
45+
46+
const TABLES: Table[] = [
47+
{ name: 'allowed IP ranges refusal', table: ALLOWED_IP_RANGES_REFUSAL_COPY, lookup: allowedIpRangesRefusalCopy },
48+
{ name: 'sign-in method floor', table: SIGN_IN_FLOOR_COPY, lookup: signInFloorCopy },
49+
{ name: 'auth.mfa_required refusal', table: MFA_REQUIRED_ENROLLMENT_COPY, lookup: mfaRequiredEnrollmentCopy },
50+
{
51+
name: 'organization MFA refusal',
52+
table: ORGANIZATION_MFA_REFUSAL_COPY,
53+
lookup: (locale) => organizationMfaWithoutEnrollmentRefusal(locale).message,
54+
},
55+
{
56+
name: 'organization MFA notice',
57+
table: ORGANIZATION_MFA_REQUIRED_NOTICE_COPY,
58+
lookup: (locale) => organizationMfaRequiredNotice(7, locale),
59+
},
60+
];
61+
62+
/** What a lookup answered, as comparable text. */
63+
function served(t: Table, locale: string | undefined): string {
64+
const answer = t.lookup(locale);
65+
return JSON.stringify(typeof answer === 'string' ? answer : sentences(answer));
66+
}
67+
68+
/** The text a lookup must answer when it serves `key`. */
69+
function expected(t: Table, key: SettingsCopyLocale): string {
70+
const entry = t.table[key];
71+
if (t.name === 'organization MFA notice') return JSON.stringify((entry as (d: number) => string)(7));
72+
return JSON.stringify(typeof entry === 'string' ? entry : sentences(entry));
73+
}
74+
75+
describe.each(TABLES)('$name copy carries the eleven platform languages', (t) => {
76+
it('has exactly one entry per platform locale table language', () => {
77+
expect(Object.keys(t.table).sort()).toEqual([...KEYS].sort());
78+
expect(KEYS).toHaveLength(11);
79+
});
80+
81+
it('every entry carries every sentence, written in its own language (no English fill)', () => {
82+
const en = sentences(t.table.en);
83+
for (const key of KEYS) {
84+
const own = sentences(t.table[key]);
85+
expect(Object.keys(own).sort(), key).toEqual(Object.keys(en).sort());
86+
for (const [field, text] of Object.entries(own)) {
87+
expect(text.trim(), `${key}.${field}`).not.toBe('');
88+
if (key !== 'en') expect(text, `${key}.${field}`).not.toBe(en[field]);
89+
}
90+
}
91+
});
92+
93+
it('each table tag, and each stored alias, is served its own language', () => {
94+
for (const tag of PLATFORM_LOCALE_TAGS) {
95+
expect(served(t, tag), tag).toBe(expected(t, KEY_OF_TAG[tag]));
96+
}
97+
for (const [code, key] of [
98+
['zh-TW', 'zh-Hant'], ['zh-HK', 'zh-Hant'], ['zh-CN', 'zh-CN'], ['zh', 'zh-CN'],
99+
['ja-JP', 'ja-JP'], ['es-ES', 'es-ES'], ['pt', 'pt-BR'], ['en-US', 'en'], ['fr-CA', 'fr'], ['de-AT', 'de'],
100+
] as const) {
101+
expect(served(t, code), code).toBe(expected(t, key));
102+
}
103+
});
104+
105+
it('zh-TW is never served the Simplified entry', () => {
106+
expect(served(t, 'zh-TW')).not.toBe(expected(t, 'zh-CN'));
107+
});
108+
109+
it('a code naming no language here, or none at all, is served English', () => {
110+
for (const code of ['xx', 'tlh', undefined]) {
111+
expect(served(t, code), String(code)).toBe(expected(t, 'en'));
112+
}
113+
});
114+
});
115+
116+
describe('organization MFA notice plurals', () => {
117+
it('Russian and Arabic count days in the right form', () => {
118+
expect(organizationMfaRequiredNotice(1, 'ru')).toContain('1 день');
119+
expect(organizationMfaRequiredNotice(3, 'ru')).toContain('3 дня');
120+
expect(organizationMfaRequiredNotice(11, 'ru')).toContain('11 дней');
121+
expect(organizationMfaRequiredNotice(21, 'ru')).toContain('21 день');
122+
expect(organizationMfaRequiredNotice(2, 'ar')).toContain('يومان');
123+
expect(organizationMfaRequiredNotice(7, 'ar')).toContain('7 أيام');
124+
expect(organizationMfaRequiredNotice(14, 'ar')).toContain('14 يومًا');
125+
});
126+
});

‎packages/plugins/plugin-email/src/live-transport-status.pin.test.ts‎

Lines changed: 65 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,15 @@ import { describe, it, expect, vi } from 'vitest';
1111
import { EmailServicePlugin } from './email-plugin.js';
1212
import { EmailService, LogTransport } from './email-service.js';
1313
import { SmtpTransport } from './transports/smtp.js';
14-
import { describeLiveMailTransport, type LiveMailTransportStatus } from './live-transport-status.js';
14+
import {
15+
describeLiveMailTransport,
16+
mailDeliveryCopy,
17+
MAIL_DELIVERY_COPY,
18+
type LiveMailTransportStatus,
19+
type MailDeliveryCopy,
20+
type MailDeliveryCopyLocale,
21+
} from './live-transport-status.js';
22+
import { PLATFORM_LOCALE_TAGS, type PlatformLocaleTag } from '@objectstack/spec/system';
1523

1624
vi.mock('nodemailer', () => {
1725
const createTransport = vi.fn(() => ({ sendMail: vi.fn(), close: vi.fn() }));
@@ -119,3 +127,59 @@ describe('EmailServicePlugin — the statement Setup → Email makes', () => {
119127
expect(after?.label).toBe('Mail is delivered through SMTP (smtp.saved.test:587)');
120128
});
121129
});
130+
131+
// Setup → Email's words carry every language on the platform locale table, and
132+
// a caller's code finds its own language's entry: `zh-TW` the Traditional one
133+
// (never the Simplified), a stored alias its table language, anything else
134+
// English.
135+
describe('Setup → Email copy carries the eleven platform languages', () => {
136+
const KEY_OF_TAG: Record<PlatformLocaleTag, MailDeliveryCopyLocale> = {
137+
en: 'en', 'zh-Hans': 'zh-CN', 'zh-Hant': 'zh-Hant', es: 'es-ES', ar: 'ar', fr: 'fr',
138+
'pt-BR': 'pt-BR', ru: 'ru', de: 'de', ja: 'ja-JP', ko: 'ko',
139+
};
140+
const KEYS = PLATFORM_LOCALE_TAGS.map((tag) => KEY_OF_TAG[tag]);
141+
/** Every sentence of an entry, its functions called with sample arguments. */
142+
const sentences = (copy: MailDeliveryCopy): Record<string, string> => ({
143+
hostTransport: copy.hostTransport,
144+
noMailLabel: copy.noMailLabel,
145+
noMailText: copy.noMailText,
146+
deliveredLabel: copy.deliveredLabel('Resend'),
147+
deliveredText: copy.deliveredText('Resend'),
148+
testSent: copy.testSent('admin@example.test', 'resend', 'msg_1'),
149+
testSentLive: copy.testSent('admin@example.test', undefined, 'msg_1'),
150+
testFailed: copy.testFailed('resend', 'refused'),
151+
testFailedLive: copy.testFailed(undefined, 'refused'),
152+
testLoggedLive: copy.testLoggedLive,
153+
testLoggedForm: copy.testLoggedForm('Resend'),
154+
});
155+
156+
it('has exactly one entry per platform locale table language', () => {
157+
expect(Object.keys(MAIL_DELIVERY_COPY).sort()).toEqual([...KEYS].sort());
158+
expect(KEYS).toHaveLength(11);
159+
});
160+
161+
it('every entry carries every sentence, written in its own language (no English fill)', () => {
162+
const en = sentences(MAIL_DELIVERY_COPY.en);
163+
for (const key of KEYS) {
164+
for (const [field, text] of Object.entries(sentences(MAIL_DELIVERY_COPY[key]))) {
165+
expect(text.trim(), `${key}.${field}`).not.toBe('');
166+
if (key !== 'en') expect(text, `${key}.${field}`).not.toBe(en[field]);
167+
}
168+
}
169+
});
170+
171+
it('each table tag and stored alias is served its own language; zh-TW never the Simplified entry', () => {
172+
for (const tag of PLATFORM_LOCALE_TAGS) expect(mailDeliveryCopy(tag), tag).toBe(MAIL_DELIVERY_COPY[KEY_OF_TAG[tag]]);
173+
for (const [code, key] of [
174+
['zh-TW', 'zh-Hant'], ['zh-HK', 'zh-Hant'], ['zh-CN', 'zh-CN'], ['zh', 'zh-CN'],
175+
['ja-JP', 'ja-JP'], ['es-ES', 'es-ES'], ['pt', 'pt-BR'], ['en-US', 'en'], ['fr-CA', 'fr'],
176+
] as const) {
177+
expect(mailDeliveryCopy(code), code).toBe(MAIL_DELIVERY_COPY[key]);
178+
}
179+
expect(mailDeliveryCopy('zh-TW')).not.toBe(MAIL_DELIVERY_COPY['zh-CN']);
180+
});
181+
182+
it('a code naming no language here, or none at all, is served English', () => {
183+
for (const code of ['xx', 'sw-KE', undefined]) expect(mailDeliveryCopy(code), String(code)).toBe(MAIL_DELIVERY_COPY.en);
184+
});
185+
});

‎packages/plugins/plugin-email/src/mail-log-provider.pin.test.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,10 @@ describe('Setup → Email answers in the caller\'s language (zh-CN)', () => {
285285
expect(answer.message).toContain('邮件通过 SMTP (smtp.saved.test:587) 投递');
286286
});
287287

288-
it('CONTROL — a language with no copy answers in English', async () => {
288+
it('CONTROL — a language off the platform locale table answers in English', async () => {
289289
const h = await boot({});
290-
expect((await h.settings.statement('fr-FR'))?.label).toBe('No mail leaves this machine');
290+
// The copy carries every platform language (`fr-FR` is French now); Swahili is not on the table.
291+
expect((await h.settings.statement('fr-FR'))?.label).toBe('Aucun e-mail ne quitte cette machine');
292+
expect((await h.settings.statement('sw-KE'))?.label).toBe('No mail leaves this machine');
291293
});
292294
});

‎packages/services/service-settings/src/localization-currency-lock.test.ts‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { registerSettingsRoutes } from './settings-routes.js';
1515
import { localizationSettingsManifest } from './manifests/localization.manifest.js';
1616
import { mailSettingsManifest } from './manifests/mail.manifest.js';
1717
import { settingsBuiltinTranslations } from './translations/index.js';
18+
import { PLATFORM_LOCALE_TAGS } from '@objectstack/spec/system';
1819
import { SETTINGS_LIVE_STATUS_BANNER_ID, SettingsValidationError } from './settings-service.types.js';
1920
import {
2021
CURRENCY_LOCK_COPY,
@@ -220,16 +221,20 @@ describe('readCurrencyUsage', () => {
220221
});
221222
});
222223

223-
describe('the copy — every locale the settings bundle ships', () => {
224-
it('covers exactly the locales of settingsBuiltinTranslations', () => {
225-
expect(Object.keys(CURRENCY_LOCK_COPY).sort()).toEqual(Object.keys(settingsBuiltinTranslations).sort());
224+
describe('the copy — every language on the platform locale table', () => {
225+
it('covers the locales of settingsBuiltinTranslations, and one entry per platform locale table language', () => {
226+
for (const locale of Object.keys(settingsBuiltinTranslations)) expect(CURRENCY_LOCK_COPY).toHaveProperty([locale]);
227+
expect(Object.keys(CURRENCY_LOCK_COPY)).toHaveLength(PLATFORM_LOCALE_TAGS.length);
226228
});
227229

228230
it.each([
229231
['zh-CN', '默认币种已锁定为 USD:它已被 1 个对象(Invoice)和 2 条汇率使用。'],
230232
['ja', '既定の通貨は USD でロックされています。1 件のオブジェクト(Invoice)と 2 件の為替レートで使用されているためです。'],
231233
['es-MX', 'La moneda predeterminada está bloqueada en USD porque está en uso en 1 objeto (Invoice) y 2 tipos de cambio.'],
232-
['fr-FR', 'The default currency is locked at USD because it is in use by 1 object (Invoice) and 2 exchange rates.'],
234+
['fr-FR', 'La devise par défaut est verrouillée sur USD, car elle est utilisée par 1 objet (Invoice) et 2 taux de change.'],
235+
['zh-TW', '預設幣別已鎖定為 USD:它已被 1 個物件(Invoice)和 2 筆匯率使用。'],
236+
['ru', 'Валюта по умолчанию зафиксирована как USD, потому что она используется: 1 объект (Invoice) и 2 обменных курса.'],
237+
['sw-KE', 'The default currency is locked at USD because it is in use by 1 object (Invoice) and 2 exchange rates.'],
233238
])('writes the refusal in %s', async (locale, opening) => {
234239
const { svc, rates, objects } = rig();
235240
await svc.set('localization', 'currency', 'USD', ctx);

0 commit comments

Comments
 (0)