Skip to content

Commit ef777b8

Browse files
fix(app-shell): name the copy buttons in an action's result dialog and announce the copied state (#28265)
<!-- claude-projects-attribution: {"github_login":"os-tesla"} --> _Requested by **Tesla** · [project thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6JaoCFC5prTTPschL4i6Cz14L9)_ Fixes #28186 Clause-②: no Metadata-protocol: none ## 维护者速读 - 改了什么:动作结果弹窗(邀请链接、新 API 密钥、2FA 密钥等只显示一次的值)里每个仅图标的「复制」按钮现在都有可读的名称,例如「复制 Email」;没有字段标签时叫「复制值」,备用码列表按序号叫「复制 备用码 第 2 项」。复制成功后,读屏会念出「已复制到剪贴板」。 - 为什么改:读屏或语音控制用户以前只听到「按钮」,分不清它是复制哪个值,也没法按名字点它;值只显示一次,漏复制就得把动作重做一遍。 - 风险与回滚:只改渲染层,弹窗的布局与复制行为不变(新的播报区是视觉隐藏的);十个语言包各加 5 个键。回滚即 revert 本 PR。 - 先看:`ui/packages/app-shell/src/views/ActionResultDialog.tsx`(`CopyButton` 与 `ResultField` 里的 `copyName`);`ui/packages/app-shell/src/views/__tests__/ActionResultDialog.test.tsx` 新增的 describe;`ui/packages/i18n/src/locales/en.ts` 的 `actions.resultDialog`。 - 两分钟验证:`pnpm --dir ui exec vitest run packages/app-shell/src/views/__tests__/ActionResultDialog.test.tsx`,预期 1 个文件、12 个测试全绿。 - 需要你做的:无,席位落地。 ## What changes **Names** (`ui/packages/app-shell/src/views/ActionResultDialog.tsx`). `ResultField` already resolves the field's `I18nLabel`; it now builds the accessible name of that field's copy buttons from it and hands it to the format block (`QrcodeBlock`, `SecretBlock`, `TextBlock`, `JsonBlock`, `CodeListBlock`): - a labelled field: `actions.resultDialog.copyField` ("Copy LABEL"); - an unlabelled field, including the whole-payload JSON fallback: `actions.resultDialog.copyValue` ("Copy value"); - each code of a code list, by 1-based position: `copyFieldItem` ("Copy LABEL, item N") or `copyItem` ("Copy item N"). `CopyButton` takes either a visible `label` (that text is its name, as "Copy all" already was) or a `name` that becomes its `aria-label`; the prop type makes one of the two required, so a new icon-only use cannot compile without a name. The `Copy` / `Check` icons are marked `aria-hidden`. **Copied state.** Each `CopyButton` renders a visually hidden `role="status"` region (implicitly polite) beside the button. It is mounted empty and filled with `actions.resultDialog.copied` ("Copied to clipboard") while the copied state lasts, so a screen reader announces the change. It is positioned out of flow by `sr-only`, so the flex rows keep their layout. **Translations.** The five keys are added under `actions.resultDialog` in all ten packs (`en`, `zh`, `ja`, `ko`, `de`, `fr`, `es`, `pt`, `ru`, `ar`), next to the existing `copyAll`. **#27521's focus pins.** The change does not touch `useActionDialogReturnFocus` or the dialog's focus props; `actionDialogFocus-27521.test.tsx` is run below as a control. ## Tests `ui/packages/app-shell/src/views/__tests__/ActionResultDialog.test.tsx` gains a describe, "every copy button has an accessible name", with role-and-name queries. The file's `useObjectTranslation` stub now echoes interpolation params after the key, so a name shows which label reached it (existing assertions use no params and are unchanged). - each of a text, secret, qrcode and json field's copy button is found by `getByRole('button', { name: 'actions.resultDialog.copyField(label=LABEL)' })`; - the whole-payload fallback's button is named `copyValue`; - a labelled code list's per-code buttons are named `copyFieldItem` with index 1 and 2, and "Copy all" keeps its visible name; an unlabelled list's are named `copyItem`; - no button in the dialog is left without a name (all buttons equal the buttons with a non-blank name); - the `status` region exists and is empty before the click, `writeText` receives the value, and the same region node then reads `actions.resultDialog.copied`. ## Acceptance notes - "Copy all" keeps its visible text as its accessible name. Two code-list fields in one dialog would show two "Copy all" buttons with the same name; no shipped `resultDialog` declares two code lists, so this is noted, not changed. - The live region announces only a successful copy. A refused clipboard write still does nothing visible or audible, as before; the value stays on screen for a manual copy. ## Verification Tree: objectstack-ai/objectstack, branch head named in the os-dev report on the card. <details><summary>Result dialog tests</summary> ``` pnpm --dir ui exec vitest run packages/app-shell/src/views/__tests__/ActionResultDialog.test.tsx Test Files 1 passed (1) Tests 12 passed (12) os-verify-lock: VERDICT command-exit 0 ``` </details> <details><summary>Ablation: the fix removed, the new pins go red</summary> `aria-label` on `CopyButton` and the `status` span deleted (0 hits for each confirmed on disk), same command: ``` × names each field's copy button after the field label × names an unlabelled value's copy button generically × names each code of a code list by its position, and keeps the visible name of Copy all × names the codes of an unlabelled code list by position alone × leaves no button in the dialog without a name × announces the copied state in a live region that is mounted before it fills Tests 6 failed | 6 passed (12) os-verify-lock: VERDICT command-exit 1 ``` Restored with `git checkout HEAD --`; `git diff HEAD` empty afterwards. The 6 pre-existing tests stayed green in both legs. </details> <details><summary>Derived gates (dispatch-gates --commands, head f68fcad): 34 of 34 exit 0, reconciliation 34 run, 0 NOT-MEASURED, 0 UNRUN</summary> ``` node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0 node scripts/check-adr-0087-registration.mjs --self-test :: exit 0 node scripts/check-changeset-no-major.mjs --base origin/main :: exit 0 node scripts/check-closing-keyword-parity.mjs :: exit 0 node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0 node scripts/check-comment-mask-corpus.mjs :: exit 0 node scripts/check-empty-changeset.mjs --base origin/main :: exit 0 node scripts/check-empty-changeset.mjs --self-test :: exit 0 node scripts/check-sdui-manifest.mjs :: exit 0 node scripts/check-sdui-manifest.mjs --self-test :: exit 0 node scripts/pm/release-rehearsal-clone.mjs --self-test :: exit 0 node scripts/release-pending-publish.mjs --self-test :: exit 0 pnpm --filter @objectstack/spec run check:duration-unit-keys :: exit 0 pnpm check:changeset-gate-self-tests :: exit 0 pnpm check:closed-ceremony-text :: exit 0 pnpm check:cross-package-test-inputs :: exit 0 pnpm check:dispatcher-error-vocabulary :: exit 0 pnpm check:driver-memory-census :: exit 0 pnpm check:engine-double-contract :: exit 0 pnpm check:gitlink-declared :: exit 0 pnpm check:nul-bytes :: exit 0 pnpm check:pm-changeset-deadline-census :: exit 0 pnpm check:published-files :: exit 0 pnpm check:query-options-erasure :: exit 0 pnpm check:refd-timer-probe :: exit 0 pnpm check:skill-identifier-liveness :: exit 0 pnpm check:test-source-alias :: exit 0 pnpm check:tier-file-adoption :: exit 0 pnpm check:type-check-coverage :: exit 0 pnpm check:type-check-debt :: exit 0 pnpm check:undeclared-dep-imports :: exit 0 pnpm check:watch-hint-literal :: exit 0 pnpm check:where-matcher :: exit 0 pnpm --dir ui exec vitest run scripts/ :: exit 0 ``` `check:type-check-debt` first hit a 500 s `timeout` wrapper while the type-check below held the box (exit 124); re-run alone, exit 0, and the record carries that code. </details> <details><summary>Type-check, sibling tests and line citations</summary> ``` pnpm --filter @object-ui/i18n run type-check && pnpm --filter @object-ui/app-shell run type-check (after a full dts build of @object-ui/app-shell^...) os-verify-lock: VERDICT command-exit 0 pnpm --dir ui exec vitest run packages/app-shell/src/views/actionDialogFocus-27521.test.tsx packages/app-shell/src/views/ObjectView.inviteOutcome-27797.test.tsx packages/i18n/ Test Files 95 passed (95) Tests 1445 passed | 13 skipped (1458) pnpm --dir ui run check:new-line-citations VERDICT new-cross-file-line-citations: 0 new citation(s), enforcement report-only -> exit 0 ``` </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01L9qibvSA9x5ZD2RncR2GRx)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent c3842ac commit ef777b8

13 files changed

Lines changed: 249 additions & 23 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/i18n': patch
4+
---
5+
6+
fix(app-shell): every copy button in an action's result dialog has an accessible name, and the copied state is announced
7+
8+
Clause-②: no (a renderer accessibility fix; no schema, accept set, error code or result field changes)
9+
Metadata-protocol: none
10+
11+
The result dialog shows a value the user must copy now, such as an invite link, a new API key or a 2FA secret. Its per-value copy buttons were icon-only with no name, so a screen-reader or voice-control user reached a bare "button" and could not ask for it by name. Nothing announced that the copy worked either.
12+
13+
- **Names.** An icon-only copy button is named after its field: "Copy Email" when the field has a label, "Copy value" when it has none. Each code of a code list is named by its position ("Copy Backup codes, item 2", or "Copy item 2" when unlabelled). "Copy all" keeps its visible text as its name.
14+
- **Copied state.** A polite live region next to each copy button, mounted empty, reads "Copied to clipboard" when the value reaches the clipboard.
15+
- **Translations.** The new `actions.resultDialog` keys `copyField`, `copyValue`, `copyFieldItem`, `copyItem` and `copied` are in all ten packs.

‎ui/packages/app-shell/src/views/ActionResultDialog.tsx‎

Lines changed: 54 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,20 @@ function ResultField({
162162
value: unknown;
163163
defaultFormat?: FieldFormat;
164164
}) {
165-
const { language } = useObjectTranslation();
165+
const { t, language } = useObjectTranslation();
166166
const format: FieldFormat = field.format ?? defaultFormat ?? 'json';
167167
// Same `I18nLabel` contract as the dialog's own three label members, same
168168
// resolution — a field label is the fourth member the block declares as one.
169169
const label = resolveInlineI18nLabel(field.label, language);
170+
// The accessible name of this field's icon-only copy buttons: the field's
171+
// label when it has one, so two fields' buttons are told apart by name.
172+
const copyName = label
173+
? t('actions.resultDialog.copyField', { label })
174+
: t('actions.resultDialog.copyValue');
175+
const copyItemName = (index: number) =>
176+
label
177+
? t('actions.resultDialog.copyFieldItem', { label, index })
178+
: t('actions.resultDialog.copyItem', { index });
170179

171180
// Type-guard each renderer rather than crash if the server returned an
172181
// unexpected shape (e.g. format=qrcode but value is undefined). We
@@ -183,11 +192,13 @@ function ResultField({
183192
{label ? (
184193
<div className="text-sm font-medium text-foreground/80">{label}</div>
185194
) : null}
186-
{safeFormat === 'qrcode' ? <QrcodeBlock value={value as string} /> : null}
187-
{safeFormat === 'code-list' ? <CodeListBlock value={value as string[]} /> : null}
188-
{safeFormat === 'secret' ? <SecretBlock value={value as string} /> : null}
189-
{safeFormat === 'text' ? <TextBlock value={value as string} /> : null}
190-
{safeFormat === 'json' ? <JsonBlock value={value} /> : null}
195+
{safeFormat === 'qrcode' ? <QrcodeBlock value={value as string} copyName={copyName} /> : null}
196+
{safeFormat === 'code-list' ? (
197+
<CodeListBlock value={value as string[]} copyItemName={copyItemName} />
198+
) : null}
199+
{safeFormat === 'secret' ? <SecretBlock value={value as string} copyName={copyName} /> : null}
200+
{safeFormat === 'text' ? <TextBlock value={value as string} copyName={copyName} /> : null}
201+
{safeFormat === 'json' ? <JsonBlock value={value} copyName={copyName} /> : null}
191202
</div>
192203
);
193204
}
@@ -212,17 +223,33 @@ function useCopy(value: string | undefined) {
212223
return { copy, copied };
213224
}
214225

215-
function CopyButton({ value, label }: { value: string | undefined; label?: string }) {
226+
/**
227+
* A copy button. With a visible `label` that text is its accessible name;
228+
* an icon-only button takes `name` as its `aria-label` instead. The copied
229+
* state is announced through a polite live region, mounted empty before it
230+
* fills — a region inserted together with its text is not reliably read.
231+
*/
232+
function CopyButton({
233+
value,
234+
label,
235+
name,
236+
}: { value: string | undefined } & ({ label: string; name?: never } | { label?: never; name: string })) {
237+
const { t } = useObjectTranslation();
216238
const { copy, copied } = useCopy(value);
217239
return (
218-
<Button type="button" variant="outline" size="sm" onClick={copy}>
219-
{copied ? <Check className="w-4 h-4" /> : <Copy className="w-4 h-4" />}
220-
{label ? <span className="ml-2">{label}</span> : null}
221-
</Button>
240+
<>
241+
<Button type="button" variant="outline" size="sm" onClick={copy} aria-label={label ? undefined : name}>
242+
{copied ? <Check className="w-4 h-4" aria-hidden="true" /> : <Copy className="w-4 h-4" aria-hidden="true" />}
243+
{label ? <span className="ml-2">{label}</span> : null}
244+
</Button>
245+
<span role="status" className="sr-only">
246+
{copied ? t('actions.resultDialog.copied') : ''}
247+
</span>
248+
</>
222249
);
223250
}
224251

225-
function QrcodeBlock({ value }: { value: string }) {
252+
function QrcodeBlock({ value, copyName }: { value: string; copyName: string }) {
226253
// QR codes for 2FA carry the shared secret. Render entirely client-side
227254
// (toCanvas writes into a local <canvas>) — never round-trip to a third
228255
// party. Falls back to plaintext if rendering fails (e.g. value too long
@@ -247,13 +274,19 @@ function QrcodeBlock({ value }: { value: string }) {
247274
<code className="flex-1 truncate rounded bg-muted px-2 py-1 text-xs font-mono">
248275
{value}
249276
</code>
250-
<CopyButton value={value} />
277+
<CopyButton value={value} name={copyName} />
251278
</div>
252279
</div>
253280
);
254281
}
255282

256-
function CodeListBlock({ value }: { value: string[] }) {
283+
function CodeListBlock({
284+
value,
285+
copyItemName,
286+
}: {
287+
value: string[];
288+
copyItemName: (index: number) => string;
289+
}) {
257290
const { t } = useObjectTranslation();
258291
const joined = value.join('\n');
259292
return (
@@ -265,7 +298,7 @@ function CodeListBlock({ value }: { value: string[] }) {
265298
<code className="flex-1 rounded bg-background px-2 py-1 text-sm font-mono">
266299
{code}
267300
</code>
268-
<CopyButton value={code} />
301+
<CopyButton value={code} name={copyItemName(i + 1)} />
269302
</li>
270303
))}
271304
</ul>
@@ -277,7 +310,7 @@ function CodeListBlock({ value }: { value: string[] }) {
277310
);
278311
}
279312

280-
function SecretBlock({ value }: { value: string }) {
313+
function SecretBlock({ value, copyName }: { value: string; copyName: string }) {
281314
const { t } = useObjectTranslation();
282315
const [revealed, setRevealed] = useState(false);
283316
return (
@@ -294,23 +327,23 @@ function SecretBlock({ value }: { value: string }) {
294327
>
295328
{revealed ? <EyeOff className="w-4 h-4" /> : <Eye className="w-4 h-4" />}
296329
</Button>
297-
<CopyButton value={value} />
330+
<CopyButton value={value} name={copyName} />
298331
</div>
299332
);
300333
}
301334

302-
function TextBlock({ value }: { value: string }) {
335+
function TextBlock({ value, copyName }: { value: string; copyName: string }) {
303336
return (
304337
<div className="flex items-center gap-2">
305338
<code className="flex-1 rounded bg-muted px-2 py-1 text-sm font-mono break-all">
306339
{value}
307340
</code>
308-
<CopyButton value={value} />
341+
<CopyButton value={value} name={copyName} />
309342
</div>
310343
);
311344
}
312345

313-
function JsonBlock({ value }: { value: unknown }) {
346+
function JsonBlock({ value, copyName }: { value: unknown; copyName: string }) {
314347
const text = useMemo(() => {
315348
try {
316349
return JSON.stringify(value, null, 2);
@@ -324,7 +357,7 @@ function JsonBlock({ value }: { value: unknown }) {
324357
{text}
325358
</pre>
326359
<div className="flex justify-end">
327-
<CopyButton value={text} />
360+
<CopyButton value={text} name={copyName} />
328361
</div>
329362
</div>
330363
);

‎ui/packages/app-shell/src/views/__tests__/ActionResultDialog.test.tsx‎

Lines changed: 110 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
22

33
import { describe, it, expect, vi } from 'vitest';
4-
import { render, screen } from '@testing-library/react';
4+
import { render, screen, fireEvent, act, within } from '@testing-library/react';
55
import type { ResultDialogSpec } from '@object-ui/core';
66
import { ActionResultDialog } from '../ActionResultDialog';
77

@@ -17,7 +17,15 @@ vi.mock('@object-ui/i18n', async (importOriginal) => ({
1717
// `language` is the source every other `resolveI18nLabel` caller in this
1818
// package threads (`UnifiedSidebar`, `resolveActionParams`, and
1919
// metadata-admin's `useMetadataLocale`), so the stub carries it too.
20-
useObjectTranslation: () => ({ t: (key: string) => key, language: i18nState.language }),
20+
// Interpolation params are echoed after the key, so a name built from a
21+
// field label shows which label reached it.
22+
useObjectTranslation: () => ({
23+
t: (key: string, params?: Record<string, unknown>) =>
24+
params
25+
? `${key}(${Object.entries(params).map(([k, v]) => `${k}=${String(v)}`).join(', ')})`
26+
: key,
27+
language: i18nState.language,
28+
}),
2129
}));
2230
// jsdom has no canvas; the qrcode path is not under test.
2331
vi.mock('qrcode', () => ({ toCanvas: vi.fn() }));
@@ -131,3 +139,103 @@ describe('ActionResultDialog — an inline per-locale map resolves against the d
131139
expect(screen.getByText('actions.resultDialog.defaultTitle')).toBeInTheDocument();
132140
});
133141
});
142+
143+
/**
144+
* objectstack#28186 — the copy buttons are icon-only, so each one carries an
145+
* accessible name built from its field's label, and the copied state is
146+
* announced through a polite live region. The names are read the way a
147+
* screen-reader or voice-control user reaches the buttons: by role and name.
148+
*/
149+
describe('ActionResultDialog — every copy button has an accessible name', () => {
150+
it('names each field\'s copy button after the field label', () => {
151+
i18nState.language = 'en';
152+
open(
153+
{
154+
title: 'User Created',
155+
fields: [
156+
{ path: 'user.email', label: 'Email', format: 'text' },
157+
{ path: 'temporaryPassword', label: 'Temporary Password', format: 'secret' },
158+
{ path: 'link', label: 'Invite link', format: 'qrcode' },
159+
{ path: 'meta', label: 'Response', format: 'json' },
160+
],
161+
},
162+
{ user: { email: 'a@example.com' }, temporaryPassword: 'p@ss', link: 'https://x.test/i/1', meta: { id: 1 } },
163+
);
164+
165+
for (const label of ['Email', 'Temporary Password', 'Invite link', 'Response']) {
166+
expect(
167+
screen.getByRole('button', { name: `actions.resultDialog.copyField(label=${label})` }),
168+
).toBeInTheDocument();
169+
}
170+
});
171+
172+
it('names an unlabelled value\'s copy button generically', () => {
173+
i18nState.language = 'en';
174+
open({ title: 'Done' }, { anything: 1 });
175+
176+
expect(screen.getByRole('button', { name: 'actions.resultDialog.copyValue' })).toBeInTheDocument();
177+
});
178+
179+
it('names each code of a code list by its position, and keeps the visible name of Copy all', () => {
180+
i18nState.language = 'en';
181+
open(
182+
{ title: 'Backup codes', fields: [{ path: 'codes', label: 'Backup codes', format: 'code-list' }] },
183+
{ codes: ['aaaa-1111', 'bbbb-2222'] },
184+
);
185+
186+
expect(
187+
screen.getByRole('button', { name: 'actions.resultDialog.copyFieldItem(label=Backup codes, index=1)' }),
188+
).toBeInTheDocument();
189+
expect(
190+
screen.getByRole('button', { name: 'actions.resultDialog.copyFieldItem(label=Backup codes, index=2)' }),
191+
).toBeInTheDocument();
192+
expect(screen.getByRole('button', { name: 'actions.resultDialog.copyAll' })).toBeInTheDocument();
193+
});
194+
195+
it('names the codes of an unlabelled code list by position alone', () => {
196+
i18nState.language = 'en';
197+
open({ title: 'Codes', fields: [{ path: 'codes', format: 'code-list' }] }, { codes: ['a', 'b'] });
198+
199+
expect(screen.getByRole('button', { name: 'actions.resultDialog.copyItem(index=2)' })).toBeInTheDocument();
200+
});
201+
202+
it('leaves no button in the dialog without a name', () => {
203+
i18nState.language = 'en';
204+
open(
205+
{
206+
title: 'Everything',
207+
fields: [
208+
{ path: 'a', label: 'A', format: 'text' },
209+
{ path: 'b', format: 'secret' },
210+
{ path: 'c', format: 'code-list' },
211+
{ path: 'd', format: 'json' },
212+
],
213+
},
214+
{ a: 'x', b: 'y', c: ['z'], d: { k: 1 } },
215+
);
216+
217+
const dialog = screen.getByRole('dialog');
218+
const all = within(dialog).getAllByRole('button');
219+
const named = within(dialog).getAllByRole('button', { name: /\S/ });
220+
expect(named).toHaveLength(all.length);
221+
});
222+
223+
it('announces the copied state in a live region that is mounted before it fills', async () => {
224+
i18nState.language = 'en';
225+
const writeText = vi.fn().mockResolvedValue(undefined);
226+
Object.defineProperty(navigator, 'clipboard', { value: { writeText }, configurable: true });
227+
open({ title: 'Secret', fields: [{ path: 'secret', label: 'Secret', format: 'text' }] }, { secret: 's3cr3t' });
228+
229+
const region = screen.getByRole('status');
230+
expect(region).toHaveTextContent('');
231+
232+
await act(async () => {
233+
fireEvent.click(screen.getByRole('button', { name: 'actions.resultDialog.copyField(label=Secret)' }));
234+
});
235+
236+
expect(writeText).toHaveBeenCalledWith('s3cr3t');
237+
// The same node, so assistive technology already watching it reads the change.
238+
expect(screen.getByRole('status')).toBe(region);
239+
expect(region).toHaveTextContent('actions.resultDialog.copied');
240+
});
241+
});

‎ui/packages/i18n/src/locales/ar.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,13 @@ const ar = {
150150
defaultTitle: 'احفظ هذه القيمة الآن',
151151
acknowledge: 'لقد حفظتها',
152152
copyAll: 'نسخ الكل',
153+
// Accessible names of the icon-only copy buttons, and the polite
154+
// announcement once a value reaches the clipboard.
155+
copyField: 'نسخ {{label}}',
156+
copyValue: 'نسخ القيمة',
157+
copyFieldItem: 'نسخ {{label}}، العنصر {{index}}',
158+
copyItem: 'نسخ العنصر {{index}}',
159+
copied: 'تم النسخ إلى الحافظة',
153160
},
154161
notAvailableHere: '"{{action}}" غير متاح في الصفحة الحالية.',
155162
notAvailableForRecord: 'غير متاح لهذا السجل',

‎ui/packages/i18n/src/locales/de.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,13 @@ const de = {
136136
defaultTitle: 'Diesen Wert jetzt speichern',
137137
acknowledge: 'Ich habe ihn gespeichert',
138138
copyAll: 'Alle kopieren',
139+
// Accessible names of the icon-only copy buttons, and the polite
140+
// announcement once a value reaches the clipboard.
141+
copyField: '{{label}} kopieren',
142+
copyValue: 'Wert kopieren',
143+
copyFieldItem: '{{label}}, Eintrag {{index}} kopieren',
144+
copyItem: 'Eintrag {{index}} kopieren',
145+
copied: 'In die Zwischenablage kopiert',
139146
},
140147
notAvailableHere: '„{{action}}“ ist auf der aktuellen Seite nicht verfügbar.',
141148
notAvailableForRecord: 'Für diesen Datensatz nicht verfügbar',

‎ui/packages/i18n/src/locales/en.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,13 @@ const en = {
153153
defaultTitle: 'Save this value now',
154154
acknowledge: 'I have saved this',
155155
copyAll: 'Copy all',
156+
// Accessible names of the icon-only copy buttons, and the polite
157+
// announcement once a value reaches the clipboard.
158+
copyField: 'Copy {{label}}',
159+
copyValue: 'Copy value',
160+
copyFieldItem: 'Copy {{label}}, item {{index}}',
161+
copyItem: 'Copy item {{index}}',
162+
copied: 'Copied to clipboard',
156163
},
157164
// The refusal notice for an action whose `autoTrigger` its own declared
158165
// `visible` gate outranks (objectui#4191) — the deep link or host asked

‎ui/packages/i18n/src/locales/es.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,13 @@ const es = {
138138
defaultTitle: 'Guarda este valor ahora',
139139
acknowledge: 'Lo he guardado',
140140
copyAll: 'Copiar todo',
141+
// Accessible names of the icon-only copy buttons, and the polite
142+
// announcement once a value reaches the clipboard.
143+
copyField: 'Copiar {{label}}',
144+
copyValue: 'Copiar valor',
145+
copyFieldItem: 'Copiar {{label}}, elemento {{index}}',
146+
copyItem: 'Copiar elemento {{index}}',
147+
copied: 'Copiado al portapapeles',
141148
},
142149
notAvailableHere: '«{{action}}» no está disponible en la página actual.',
143150
notAvailableForRecord: 'No disponible para este registro',

‎ui/packages/i18n/src/locales/fr.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,13 @@ const fr = {
138138
defaultTitle: 'Enregistrez cette valeur maintenant',
139139
acknowledge: 'Je l\'ai enregistrée',
140140
copyAll: 'Tout copier',
141+
// Accessible names of the icon-only copy buttons, and the polite
142+
// announcement once a value reaches the clipboard.
143+
copyField: 'Copier {{label}}',
144+
copyValue: 'Copier la valeur',
145+
copyFieldItem: 'Copier {{label}}, élément {{index}}',
146+
copyItem: 'Copier l\'élément {{index}}',
147+
copied: 'Copié dans le presse-papiers',
141148
},
142149
notAvailableHere: '« {{action}} » n\'est pas disponible sur la page actuelle.',
143150
notAvailableForRecord: 'Non disponible pour cet enregistrement',

‎ui/packages/i18n/src/locales/ja.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,13 @@ const ja = {
136136
defaultTitle: 'この値を今すぐ保存してください',
137137
acknowledge: '保存しました',
138138
copyAll: 'すべてコピー',
139+
// Accessible names of the icon-only copy buttons, and the polite
140+
// announcement once a value reaches the clipboard.
141+
copyField: '{{label}}をコピー',
142+
copyValue: '値をコピー',
143+
copyFieldItem: '{{label}}の項目 {{index}} をコピー',
144+
copyItem: '項目 {{index}} をコピー',
145+
copied: 'クリップボードにコピーしました',
139146
},
140147
notAvailableHere: '「{{action}}」は現在のページでは利用できません。',
141148
notAvailableForRecord: 'このレコードでは利用できません',

0 commit comments

Comments
 (0)