Skip to content

Commit 32b9c6b

Browse files
fix(app-shell): the impersonation banner names the administrator by name or email, never by a raw user id (#29272)
<!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} --> _Requested by **Steedos** · [project thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbT6n1aToYeMazWN7vdHR2cD)_ Fixes #29161 Clause-②: yes (widening) Metadata-protocol: none ## 维护者速读 - **改了什么**:管理员「模拟登录」某个用户后,页面顶部红条原来写「由管理员 963Jhis… 发起」(一串内部用户 id),现在写管理员的姓名(没有姓名时写邮箱),例如「由管理员 Dev Admin 发起」。 - **为什么改**:红条的作用是让人一眼看清谁在代谁操作;一串 id 既不能让管理员确认是自己,也不能让屏幕共享或审计截图里的旁观者认出是谁。 - **风险与回滚**:只改红条这一句的显示;被模拟的用户看不到管理员那条用户记录时(例如不在同一组织),显示「由管理员发起」,绝不显示 id;退出模拟、密码/MFA 遮罩都不变。回滚即 revert 本 PR。 - **先看**:`ui/packages/app-shell/src/layout/ImpersonationBanner.tsx`(`useAdministratorName` 的一次读取与三种结果);`ui/packages/app-shell/src/layout/__tests__/ImpersonationBanner.test.tsx`;`ui/packages/i18n/src/locales/en.ts`(新键 `startedByUnnamed`)。 - **两分钟验证**:showcase 上以管理员进入 Setup → Users,对一个同组织的普通用户「Impersonate User」,红条应写「Started by administrator Dev Admin.」,不出现任何 id。 - **需要你做的**:无,席位落地。 ## What changes - **`ImpersonationBanner` names the administrator.** The session carries the administrator only as `session.impersonatedBy` (a `sys_user` id). The banner now reads that one row, `GET /api/v1/data/sys_user/ID`, through `createAuthenticatedFetch` (the session the console holds, which is the impersonated user's), parses the body with the spec's `GetDataResponseSchema`, and names the administrator by the first non-empty of the person display columns `approverIdentity` already uses for `sys_user` (full name, name, display name, email). - **An honest sentence when the row cannot be read.** A refused, missing or failed read, a body off the `GetDataResponse` shape, or a row with neither name nor email shows "Started by an administrator." The raw id is never rendered, and the sentence is held back until the read answers, so it never flips from an id to a name. - **Why a raw authenticated GET and not the data adapter:** the banner mounts in `ConsoleShell`, above `AdapterProvider`, so `useAdapter()` has nothing there. The `/api/v1` lane is the one the banner's exit (`useImpersonationExit`) and `storageUsageEndpoint` already use from the same shell level. - **`RemediationOverlay` is unchanged.** The read lives in the banner, not in the shared `useImpersonationExit`, so the overlay (which names nobody) issues no read. - **New locale key** `impersonation.banner.startedByUnnamed` in all ten `@object-ui/i18n` packs, hence `Clause-②: yes (widening)` (the claim was amended for it). ## Tests - `ImpersonationBanner.test.tsx` (13 cases, on the real `AuthProvider` + real locale packs): - the named case now asserts "Started by administrator Dev Admin." and that `usr_admin` appears nowhere; the read goes to `/api/v1/data/sys_user/usr_admin` with the impersonated bearer; - a row with an empty name is named by email; - four cases (404 as a user outside the row scope gets it, 403, an off-shape body, a network failure) all show "Started by an administrator." and never the id; - while the read is still out, no administrator sentence renders; - the two stop cases now rotate the token only on the stop route (the old stub rotated on every URL, which the new read would have adopted). - Ablation (one, the brief's): `admin: administrator.name` mutated to `admin: impersonatedBy` (pass the id back) through `scripts/ablation-replace.mjs`: 2 cases red ("names BOTH parties", "names the administrator by email"), 11 green; restored, blob equal to HEAD and `git diff HEAD` empty. - Runs at head `cb02bf18` (after merging `main`), under `scripts/pm/os-verify-lock.sh`: - `pnpm --dir ui exec vitest run packages/app-shell/src/layout/__tests__/ImpersonationBanner.test.tsx packages/app-shell/src/console/__tests__/RemediationOverlay.impersonation-13208.test.tsx`: 2 files, 19 tests passed (the overlay's 6 unchanged). - `pnpm --dir ui exec vitest run packages/i18n/`: 95 files passed, 1443 tests passed, 13 skipped (run before the merge; the merge moved only the Studio namespace in i18n). - `turbo run type-check --filter=@object-ui/app-shell --filter=@object-ui/i18n`: 66 tasks, exit 0 (both `tsc` programs, source and tests). ## Acceptance notes - The data route answers `GET /data/sys_user/ID` as the spec's `GetDataResponse` body with no `success`/`data` envelope (measured live, below); the banner reads that shape only. - The read uses the conventional `/api/v1/data` prefix, as the exit uses `/api/v1/auth`. A deployment that moved `crud.dataPrefix` gets a 404 there and the banner says "an administrator", never the id. - In the Vite dev console the read is issued twice (React StrictMode double effect); production renders issue it once per administrator id. ## Verification Live showcase (`pnpm dev -- --fresh`, framework at this branch before the main merge, Console Vite dev proxied to it), admin `admin@objectos.ai`, a new user "RT Dave" created with `admin/create-user` and impersonated with `admin/impersonate-user`: - Dave in the admin's organization: `get-session` reports `impersonatedBy` = the admin's id; `GET /api/v1/data/sys_user/ADMIN_ID` as Dave answers 200 `{"object":"sys_user","id":…,"record":{…"name":"Dev Admin","email":"admin@objectos.ai"…}}`; the banner reads "You are impersonating RT Dave — every action is recorded as them. Started by administrator Dev Admin." - Dave removed from the organization (`organization/remove-member`), re-impersonated: the same GET answers 404 `RECORD_NOT_FOUND` (the `sys_user` row scope is own row plus organization members), `GET /data/sys_user` lists only Dave's own row; the banner reads "… Started by an administrator." with no id. - Screenshots (desktop named, phone named, desktop unnamed) are on the card thread. <details><summary>Derived gates (34), at head cb02bf1</summary> `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` derived 34 commands; every one exited 0, and `--ran` reconciles 34 derived, 34 run, 0 NOT-MEASURED. Among them `node scripts/check-sdui-manifest.mjs` (and its `--self-test`), `check-changeset-no-major`, `check-adr-0087-registration`, `check-closing-keyword-parity` (run against this body), `check:nul-bytes`, `check:cross-package-test-inputs`, `check:published-files`, `check:type-check-debt` (locked) and `pnpm --dir ui exec vitest run scripts/` (169 files passed, 2 skipped). The first `vitest run scripts/` was red in `check-readme-exports.test.ts` only, on `@object-ui/mobile` README imports that the `main` merge added while the local `mobile` dist predated it; after rebuilding `@object-ui/mobile` the full suite reran green. </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01QsR2jTfuF6dXc7H9Ajpbej)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 4522c3e commit 32b9c6b

13 files changed

Lines changed: 195 additions & 17 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/i18n': patch
4+
---
5+
6+
fix(app-shell): the impersonation banner names the administrator by name or email, never by a raw user id
7+
8+
Clause-②: yes (widening)
9+
Metadata-protocol: none
10+
11+
An impersonated session carries the administrator only as `session.impersonatedBy`, a `sys_user` id, and the banner printed that id ("Started by administrator 963Jhis…"). Neither the administrator nor anyone watching the screen could tell who started the impersonation.
12+
13+
- **Named from the user's row.** The banner reads the administrator's `sys_user` row once (`GET /api/v1/data/sys_user/ID`, sent as the session the console holds) and names them by their name, else their email: "Started by administrator Dev Admin."
14+
- **An honest sentence when the row cannot be read.** The read is made as the impersonated user, whose row scope may not reach the administrator's row. A refused, missing or failed read, or a row with neither a name nor an email, shows "Started by an administrator." The raw id is never shown, and the sentence is held back until the read answers.
15+
- **The remediation overlay is unchanged.** It shares the exit with the banner but names nobody, so it issues no read.
16+
- **New locale key** in every `@object-ui/i18n` pack: `impersonation.banner.startedByUnnamed`.

‎ui/packages/app-shell/src/layout/ImpersonationBanner.tsx‎

Lines changed: 82 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,24 @@
2323
* whose `/home` showed no sign of impersonation at all, so a home that could
2424
* not carry the indicator would have reproduced the bug.
2525
*
26+
* ## The administrator is named by a person's name, never by an id
27+
*
28+
* The session carries the administrator only as `impersonatedBy`, a `sys_user`
29+
* id, which tells neither the administrator nor anyone watching the screen who
30+
* started this. The banner therefore reads that one `sys_user` row and names it
31+
* by its name, else its email. The read is made AS the impersonated user (that
32+
* is the session the console holds), and their row scope may not reach the
33+
* administrator's row: a refused, missing or failed read says "an
34+
* administrator" instead. ⛔ The raw id is never shown, and nothing is shown for
35+
* the administrator until the read has answered, so the sentence never flips
36+
* from an id or a guess to the name.
37+
*
38+
* The read is a raw authenticated `GET` on the `/api/v1` lane, the lane the
39+
* exit uses: this banner mounts in `ConsoleShell`, above `AdapterProvider`, so
40+
* the data adapter does not exist here. It lives in the banner rather than in
41+
* `useImpersonationExit` because the remediation overlay shares that hook and
42+
* names nobody, so it must not issue the read.
43+
*
2644
* ## The exit fails LOUDLY
2745
*
2846
* `POST /auth/admin/stop-impersonating` restores the administrator from the
@@ -34,18 +52,70 @@
3452
* the operator would go back to ordinary work believing they were themselves.
3553
*/
3654

55+
import { useEffect, useState } from 'react';
3756
import { UserCog } from 'lucide-react';
3857
import { Button } from '@object-ui/components';
58+
import { createAuthenticatedFetch } from '@object-ui/auth';
59+
import { GetDataResponseSchema } from '@objectstack/spec/api';
3960
import { useObjectTranslation } from '@object-ui/i18n';
61+
import { PERSON_DISPLAY_FIELDS, rowLabel } from '../utils/approverIdentity.js';
4062
import { useImpersonationExit } from './useImpersonationExit.js';
4163

64+
/**
65+
* How the banner names the administrator: `{ name }` once the `sys_user` read
66+
* answered with a name or email, `null` once it answered without one (refused,
67+
* missing, failed), `undefined` while it is still being asked.
68+
*/
69+
type AdministratorName = { name: string } | null | undefined;
70+
71+
/**
72+
* Read the administrator's `sys_user` row once per administrator id. See the
73+
* module header for why the read is made here and how a refusal reads.
74+
*/
75+
function useAdministratorName(adminId: string | undefined): AdministratorName {
76+
// The answer is kept with the id it answers for, so a later impersonation by
77+
// another administrator never shows the previous one's name.
78+
const [answer, setAnswer] = useState<{ id: string; name: { name: string } | null } | null>(null);
79+
80+
useEffect(() => {
81+
if (!adminId) return;
82+
let cancelled = false;
83+
void (async () => {
84+
let name: string | null = null;
85+
try {
86+
const baseUrl = import.meta.env.VITE_SERVER_URL || '';
87+
const res = await createAuthenticatedFetch()(
88+
`${baseUrl}/api/v1/data/sys_user/${encodeURIComponent(adminId)}`,
89+
{ method: 'GET', headers: { Accept: 'application/json' }, credentials: 'include' },
90+
);
91+
if (res.ok) {
92+
// The data route answers the spec's `GetDataResponse` body; anything
93+
// else names nobody.
94+
const body = GetDataResponseSchema.safeParse(await res.json());
95+
if (body.success) name = rowLabel(body.data.record, PERSON_DISPLAY_FIELDS) || null;
96+
}
97+
} catch {
98+
// A failed read names nobody; the banner says "an administrator".
99+
}
100+
if (!cancelled) setAnswer({ id: adminId, name: name ? { name } : null });
101+
})();
102+
return () => {
103+
cancelled = true;
104+
};
105+
}, [adminId]);
106+
107+
if (!adminId || answer === null || answer.id !== adminId) return undefined;
108+
return answer.name;
109+
}
110+
42111
export function ImpersonationBanner() {
43112
const { t } = useObjectTranslation();
44113
// The exit itself — request, token adoption, outcome — is shared with the
45114
// remediation overlay, which covers this banner when the session is held
46115
// (objectui#13208). See `useImpersonationExit`.
47116
const { impersonatedBy, impersonatedName, stop, stopping, stopError, notRestored } =
48117
useImpersonationExit();
118+
const administrator = useAdministratorName(impersonatedBy);
49119

50120
// Nothing to say on an ordinary session. Below every hook, so the hook order
51121
// is stable across the transition out of impersonation.
@@ -65,12 +135,18 @@ export function ImpersonationBanner() {
65135
user: impersonatedName,
66136
})}
67137
</span>{' '}
68-
<span className="opacity-80">
69-
{t('impersonation.banner.startedBy', {
70-
defaultValue: 'Started by administrator {{admin}}.',
71-
admin: impersonatedBy,
72-
})}
73-
</span>
138+
{administrator === undefined ? null : (
139+
<span className="opacity-80" data-testid="impersonation-started-by">
140+
{administrator
141+
? t('impersonation.banner.startedBy', {
142+
defaultValue: 'Started by administrator {{admin}}.',
143+
admin: administrator.name,
144+
})
145+
: t('impersonation.banner.startedByUnnamed', {
146+
defaultValue: 'Started by an administrator.',
147+
})}
148+
</span>
149+
)}
74150
</p>
75151
<Button
76152
size="sm"

‎ui/packages/app-shell/src/layout/__tests__/ImpersonationBanner.test.tsx‎

Lines changed: 87 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,26 @@ function tokenBoundClient(): AuthClient {
7979
} as unknown as AuthClient;
8080
}
8181

82-
/** Stub `fetch` for the stop-impersonating call. */
82+
const STOP_PATH = '/api/v1/auth/admin/stop-impersonating';
83+
84+
/** The administrator's `sys_user` row, read by the banner to name them. */
85+
const ADMIN_READ_PATH = '/api/v1/data/sys_user/usr_admin';
86+
87+
function jsonResponse(body: unknown, status = 200): Response {
88+
return new Response(JSON.stringify(body), { status, headers: { 'Content-Type': 'application/json' } });
89+
}
90+
91+
/**
92+
* The data route's answer for the administrator's row: the spec's
93+
* `GetDataResponse` body, unwrapped, as a live server answers it.
94+
*/
95+
function adminRow(fields: Record<string, unknown>): Response {
96+
return jsonResponse({ object: 'sys_user', id: 'usr_admin', record: { id: 'usr_admin', ...fields } });
97+
}
98+
99+
/** Stub `fetch` for the stop-impersonating call and the administrator read. */
83100
function stubStopEndpoint(
84-
respond: (url: string) => Response,
101+
respond: (url: string) => Response | Promise<Response>,
85102
): { urls: string[]; bearers: (string | null)[] } {
86103
const urls: string[] = [];
87104
const bearers: (string | null)[] = [];
@@ -138,34 +155,91 @@ describe('ImpersonationBanner (#4467)', () => {
138155

139156
it('names BOTH parties while the session is impersonated', async () => {
140157
TokenStorage.set(IMPERSONATED_TOKEN);
158+
const seen = stubStopEndpoint((url) =>
159+
url.endsWith(ADMIN_READ_PATH) ? adminRow({ name: 'Dev Admin', email: 'admin@objectos.ai' }) : new Response('{}'),
160+
);
141161
renderBanner();
142162

143163
const banner = await screen.findByTestId('impersonation-banner');
144164
// The impersonated user — whose name every write is recorded under.
145165
expect(banner.textContent).toMatch(/RT8 Dave/);
146-
// The administrator who started it, as the session reports them.
147-
expect(banner.textContent).toMatch(/usr_admin/);
166+
// The administrator who started it, by name: the session carries only the id.
167+
const startedBy = await screen.findByTestId('impersonation-started-by');
168+
expect(startedBy.textContent).toBe('Started by administrator Dev Admin.');
169+
expect(banner.textContent).not.toMatch(/usr_admin/);
170+
// The read went out as the session the console holds: the impersonated user's.
171+
const read = seen.urls.findIndex((u) => u.endsWith(ADMIN_READ_PATH));
172+
expect(read).toBeGreaterThanOrEqual(0);
173+
expect(seen.bearers[read]).toBe(`Bearer ${IMPERSONATED_TOKEN}`);
148174
// And an exit.
149175
expect(screen.getByTestId('impersonation-stop')).toBeTruthy();
150176
});
151177

178+
it('names the administrator by email when their row carries no name', async () => {
179+
TokenStorage.set(IMPERSONATED_TOKEN);
180+
stubStopEndpoint((url) =>
181+
url.endsWith(ADMIN_READ_PATH) ? adminRow({ name: '', email: 'admin@objectos.ai' }) : new Response('{}'),
182+
);
183+
renderBanner();
184+
185+
const startedBy = await screen.findByTestId('impersonation-started-by');
186+
expect(startedBy.textContent).toBe('Started by administrator admin@objectos.ai.');
187+
});
188+
189+
it.each([
190+
// What a user outside the administrator's organization gets: the row scope
191+
// hides the row, and the route answers it as missing.
192+
['outside the reader\'s row scope', () => jsonResponse({ error: 'Record usr_admin not found in sys_user', code: 'RECORD_NOT_FOUND', object: 'sys_user' }, 404)],
193+
['refused', () => jsonResponse({ error: 'Permission denied', code: 'PERMISSION_DENIED' }, 403)],
194+
['answered off the GetDataResponse shape', () => jsonResponse({ success: true, data: { name: 'Dev Admin' } })],
195+
['answered without a name or email', () => adminRow({})],
196+
['a network failure', () => {
197+
throw new TypeError('Failed to fetch');
198+
}],
199+
])('says "an administrator", never the id, when the read is %s', async (_case, answer) => {
200+
TokenStorage.set(IMPERSONATED_TOKEN);
201+
stubStopEndpoint((url) => (url.endsWith(ADMIN_READ_PATH) ? answer() : new Response('{}')));
202+
renderBanner();
203+
204+
const startedBy = await screen.findByTestId('impersonation-started-by');
205+
expect(startedBy.textContent).toBe('Started by an administrator.');
206+
expect(screen.getByTestId('impersonation-banner').textContent).not.toMatch(/usr_admin/);
207+
});
208+
209+
it('shows no administrator at all while the read is still out', async () => {
210+
TokenStorage.set(IMPERSONATED_TOKEN);
211+
stubStopEndpoint((url) => {
212+
if (url.endsWith(ADMIN_READ_PATH)) return new Promise<Response>(() => {});
213+
return new Response('{}');
214+
});
215+
renderBanner();
216+
217+
const banner = await screen.findByTestId('impersonation-banner');
218+
await new Promise((r) => setTimeout(r, 0));
219+
expect(screen.queryByTestId('impersonation-started-by')).toBeNull();
220+
expect(banner.textContent).not.toMatch(/usr_admin/);
221+
});
222+
152223
it('stop: calls the endpoint, adopts the restored token, refreshes identity, banner goes', async () => {
153224
TokenStorage.set(IMPERSONATED_TOKEN);
154-
const seen = stubStopEndpoint(() =>
225+
const seen = stubStopEndpoint((url) =>
155226
// The server hands the ADMINISTRATOR's session back the same way it
156-
// handed the impersonated one out: a rotation on the response header.
157-
new Response('{}', { status: 200, headers: { 'set-auth-token': ADMIN_TOKEN } }),
227+
// handed the impersonated one out: a rotation on the stop's response
228+
// header, and on no other route.
229+
url.endsWith(STOP_PATH)
230+
? new Response('{}', { status: 200, headers: { 'set-auth-token': ADMIN_TOKEN } })
231+
: new Response('{}'),
158232
);
159233
renderBanner();
160234

161235
await screen.findByTestId('impersonation-banner');
162236
await userEvent.click(screen.getByTestId('impersonation-stop'));
163237

164238
await waitFor(() => expect(screen.queryByTestId('impersonation-banner')).toBeNull());
165-
expect(seen.urls.some((u) => u.endsWith('/api/v1/auth/admin/stop-impersonating'))).toBe(true);
239+
expect(seen.urls.some((u) => u.endsWith(STOP_PATH))).toBe(true);
166240
// The request went out AS the impersonated user (that is the session we
167241
// hold); the administrator is restored from the `admin_session` cookie.
168-
expect(seen.bearers[0]).toBe(`Bearer ${IMPERSONATED_TOKEN}`);
242+
expect(seen.bearers[seen.urls.findIndex((u) => u.endsWith(STOP_PATH))]).toBe(`Bearer ${IMPERSONATED_TOKEN}`);
169243
// The rotation was adopted — this is the lane fix doing the work.
170244
expect(TokenStorage.get()).toBe(ADMIN_TOKEN);
171245
});
@@ -208,8 +282,10 @@ describe('ImpersonationBanner (#4467)', () => {
208282

209283
it('a LATER impersonation, after a stop that worked, is not reported as a failed stop', async () => {
210284
TokenStorage.set(IMPERSONATED_TOKEN);
211-
stubStopEndpoint(() =>
212-
new Response('{}', { status: 200, headers: { 'set-auth-token': ADMIN_TOKEN } }),
285+
stubStopEndpoint((url) =>
286+
url.endsWith(STOP_PATH)
287+
? new Response('{}', { status: 200, headers: { 'set-auth-token': ADMIN_TOKEN } })
288+
: new Response('{}'),
213289
);
214290
renderBanner();
215291

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const ar = {
77
banner: {
88
message: 'أنت تنتحل هوية {{user}} — يُسجَّل كل إجراء باسمه.',
99
startedBy: 'بدأها المسؤول {{admin}}.',
10+
startedByUnnamed: 'بدأها أحد المسؤولين.',
1011
stop: 'إنهاء انتحال الهوية',
1112
stopping: 'جارٍ الإنهاء…',
1213
stopFailed: 'تعذّر إنهاء انتحال الهوية: {{reason}}',

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const de = {
77
banner: {
88
message: 'Sie handeln als {{user}} — jede Aktion wird dieser Person zugeschrieben.',
99
startedBy: 'Gestartet von Administrator {{admin}}.',
10+
startedByUnnamed: 'Von einem Administrator gestartet.',
1011
stop: 'Identitätswechsel beenden',
1112
stopping: 'Wird beendet…',
1213
stopFailed: 'Identitätswechsel konnte nicht beendet werden: {{reason}}',

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const en = {
1010
banner: {
1111
message: 'You are impersonating {{user}} — every action is recorded as them.',
1212
startedBy: 'Started by administrator {{admin}}.',
13+
startedByUnnamed: 'Started by an administrator.',
1314
stop: 'Stop impersonating',
1415
stopping: 'Stopping…',
1516
stopFailed: 'Could not stop impersonating: {{reason}}',

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const es = {
77
banner: {
88
message: 'Está suplantando a {{user}}: todas las acciones se registran a su nombre.',
99
startedBy: 'Iniciado por el administrador {{admin}}.',
10+
startedByUnnamed: 'Iniciado por un administrador.',
1011
stop: 'Dejar de suplantar',
1112
stopping: 'Finalizando…',
1213
stopFailed: 'No se pudo dejar de suplantar: {{reason}}',

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const fr = {
77
banner: {
88
message: 'Vous incarnez {{user}} — chaque action est enregistrée en son nom.',
99
startedBy: 'Démarré par l’administrateur {{admin}}.',
10+
startedByUnnamed: 'Démarré par un administrateur.',
1011
stop: 'Arrêter l’usurpation',
1112
stopping: 'Arrêt en cours…',
1213
stopFailed: 'Impossible d’arrêter l’usurpation : {{reason}}',

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const ja = {
77
banner: {
88
message: '{{user}} になりすまして操作しています。すべての操作はこのユーザーとして記録されます。',
99
startedBy: '管理者 {{admin}} が開始しました。',
10+
startedByUnnamed: '管理者が開始しました。',
1011
stop: 'なりすましを終了',
1112
stopping: '終了しています…',
1213
stopFailed: 'なりすましを終了できませんでした: {{reason}}',

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const ko = {
77
banner: {
88
message: '{{user}} 계정을 대행하고 있습니다. 모든 작업이 해당 사용자로 기록됩니다.',
99
startedBy: '관리자 {{admin}}이(가) 시작했습니다.',
10+
startedByUnnamed: '관리자가 시작했습니다.',
1011
stop: '대행 종료',
1112
stopping: '종료하는 중…',
1213
stopFailed: '대행을 종료할 수 없습니다: {{reason}}',

0 commit comments

Comments
 (0)