Skip to content

Commit d8d0791

Browse files
feat(plugin-chatbot): the chat draws a confirm card for a package removal (#32028)
<!-- claude-projects-attribution: {"github_login":"os-support-ai"} --> _Requested by **Yibo Wang** · [project thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBGKmJknJnqwh1BakWHY3yHx)_ Fixes #31025 Clause-②: yes (widening) Metadata-protocol: none ## 维护者速读 - 改了什么:AI 聊天里,助手发起「删除软件包」时,不再只显示通用的「批准 / 拒绝」和一段 JSON,而是一张确认卡:列出每个对象及其记录数(草稿对象写明尚无数据表,数不出来的写明无法获取,都不显示成 0)、其他元数据按类型计数、总记录数(有对象数不出来时注明总数偏少),并在删表时用红字写明表会被永久删除、不进回收站;保留数据时写明表和记录都保留。批准后卡片写明已删除或部分删除(几项未能移除)。 - 为什么改:这是 #31025 的第二半(第一半 Studio 删除对话框已在 #31193 合并)。cloud 的 `delete_package` 工具(cloud#3686)已经返回 `packageRemoval` 清单,聊天却画不出来,cloud#3656(p1)卡在这里。 - 风险与回滚:只改前端渲染和文案;批准 / 拒绝仍走原来的 `/api/v1/ai/pending-actions/:id/{approve,reject}`,卡片不回传任何东西。没有 `packageRemoval` 的结果完全不受影响。回滚即还原本 PR。 - 先看:`ui/packages/plugin-chatbot/src/mapMessages.ts`(`detectPackageRemoval`:`rows` 缺失保持缺失、不当 0)、`ui/packages/plugin-chatbot/src/ChatbotEnhanced.tsx`(`data-testid="package-removal"` 那一块,`data === 'dropped'` 才画永久删除行)、`ui/packages/app-shell/src/console/ai/AiChatPage.tsx`(标签接线和刷新后的复原)。 - 两分钟验证:`pnpm --dir ui exec vitest run packages/plugin-chatbot/src/__tests__/recordWrite-3565.test.ts packages/plugin-chatbot/src/__tests__/ChatbotEnhanced.recordWriteCard-3565.test.tsx`,预期 39 个用例全绿,其中「the package-removal card (objectstack#31025)」一组 10 个。 - 需要你做的:无,席位落地。 ## What changes The chat draws a confirm card for cloud's `delete_package` pending action, built on the shape the `repo:cloud` lane put on #31025 (comment 6754040588, read at cloud `d6288d27`; tool from cloud#3686) and nothing beyond it. - **Parser** (`ui/packages/plugin-chatbot/src/mapMessages.ts`): `PackageRemoval` / `PackageRemovalObject` and `detectPackageRemoval(result)`, beside `detectSampleDataCleanup` and built on `detectPendingApproval`. An envelope without `pendingActionId` or without a `packageRemoval` object is not a card, so a refusal (`success: false`) and the MCP door's `status: 'confirmation_required'` draw none. Counts are normalised to non-negative whole numbers; an object's `rows` that is absent (or not a usable number) stays absent, never `0`; `totalRows` falls back to the sum of counted rows. The live mapper carries it on the tool invocation like `sampleDataCleanup`, and `AiChatPage`'s hydration mapper lifts it too, so the card survives a reload. `detectPackageRemovedResult` reads the approved outcome (`PackageRemovedResult`: `removed` or `partial` with the `failed` count). - **Card** (`ChatbotEnhanced.tsx`, a `packageRemoval` block beside the `sampleDataCleanup` one, above the generic Approve / Deny strip, which stays the decision): the package label in the title; each object with its record count, a draft saying it has no table and an uncounted object saying its count is unavailable (neither draws a number); the other items by type from `items`; the total, plus a line when `uncountedObjects > 0` that the total leaves those objects out; when `data === 'dropped'` a destructive line that the tables are dropped permanently and do not go to the recycle bin, and when `data === 'kept'` a line that the tables and their records are kept. The raw pending payload stays hidden, as for the sample-data card. - **Outcome**: measured first. On an approved pending action the chat's generic decision strip says "Approved — action executed." whatever the result (`useHitlInChat` sets that text and keeps the result aside), so a partial removal would read as fully executed. The card now adds one line: removed, or partly removed with the number of items not removed. Nothing larger. - **Labels**: `packageRemoval*Label` props with English defaults, wired from `AiChatPage` to new `console.ai.packageRemoval*` keys in every `@object-ui/i18n` pack (zh-Hant through `gen:zh-hant`). Wording reuses Expected 1's studio strings where the fact is the same ("Record count unavailable", the permanent-drop sentence); type names come from the same `translateMetadataType` table the Studio Delete package dialog uses. No server, `packages/spec/**` or cloud change: the payload is a tool-result string the chat already parses. ## Tests Both in the existing cloud#3565 harness files, each as a new top-level `describe` (AGENTS.md: a new pin for a component that already has a shared harness goes into that file). - `recordWrite-3565.test.ts`: a full envelope maps (bare and persisted-wrapper shapes); an absent `rows` stays absent while a real `0` stays `0`; no `pendingActionId`, no `packageRemoval`, a refusal and `confirmation_required` each map to undefined; defensive normalisation; the live mapper lifts it beside the pending id; the outcome parser reads `removed` / `partial` and nothing else. - `ChatbotEnhanced.recordWriteCard-3565.test.tsx` (real mapper, real component): objects, counts, items and total render and the generic decision fires `onToolApprove('c1', true)`; a draft and an uncounted object draw no digit; the permanent line renders for `dropped` (CONTROL: `kept` draws the kept line and no permanent line); the short-total line renders only when `uncountedObjects > 0` (CONTROL: all counted, no line); a refusal draws no card; an approved removal says removed, a partial one names the failed count, a rejection draws no outcome. ## Acceptance notes - `Clause-②: yes (widening)`, measured on the diff: the published `@object-ui/i18n` catalogue gains the `console.ai.packageRemoval*` keys and changes none; `@object-ui/plugin-chatbot` gains exports and optional props. The claim wrote `Clause-②: yes` without an arm; the order named `(widening)`. - `@object-ui/app-shell` is private, so the changeset names `@object-ui/plugin-chatbot` and `@object-ui/i18n` only. - eslint over the touched source files: 0 errors; `index.tsx` carries one more `react-refresh/only-export-components` warning than on `main` (the new `detectPackageRemoval` re-export, the same rule its siblings already trip). - Neither `plugin-chatbot`'s README nor `content/docs/frontend/` documents the sibling chat cards (record write, sample-data cleanup), so no doc page gained a section here. - No browser leg: the agent runtime behind `/api/v1/ai/**` is not in this repository, so the card is pinned through the real mapper and component; the staging reading is cloud#3656's done-when. ## Verification Head: `8d83e7c7` (the fix `44a35169`, the changeset `226b1310`, `origin/main` `bf40cc1f` merged; nothing it brought touches these packages). Readings on the shared box under `scripts/pm/os-verify-lock.sh`, each exit taken from the lock's `VERDICT` line. <details><summary>Tests and type-check</summary> - `pnpm --dir ui exec vitest run packages/plugin-chatbot/src/__tests__/recordWrite-3565.test.ts packages/plugin-chatbot/src/__tests__/ChatbotEnhanced.recordWriteCard-3565.test.tsx`: Test Files 2 passed (2), Tests 39 passed (39), VERDICT command-exit 0 (after the `@object-ui/app-shell^...` closure build, VERDICT 0). - `pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-chatbot/ packages/i18n/`: Test Files 195 passed (195), Tests 2752 passed, 13 skipped, VERDICT 0. - Every app-shell test file that names `AiChatPage` (54 files): Test Files 54 passed (54), Tests 417 passed, VERDICT 0. - `pnpm --filter @object-ui/plugin-chatbot --filter @object-ui/i18n --filter @object-ui/app-shell run type-check` (each `tsc --noEmit` plus its `tsconfig.test.json`, which compiles the harness files): all three Done, VERDICT 0. - `ui` `check:i18n-keys`, `check:i18n-drift` (18 en keys added, 0 en values changed), `check:i18n-dead-keys` (no `packageRemoval` key listed), `check:new-line-citations` (0 new): exit 0. `node scripts/check-sdui-manifest.mjs`: exit 0. </details> <details><summary>Ablations (scripts/ablation-replace.mjs, each anchor hit once, each restored with git diff HEAD empty)</summary> - The permanent line ignores `data` (`tool.packageRemoval.data === 'dropped'` replaced by `true`): "CONTROL: kept data draws the kept line and no permanent line" red, 1 failed, 20 passed; restored, blob equals HEAD `c1b46b73`. - A missing `rows` read as `0` (the conditional spread replaced by `rows: rows ?? 0`): four tests red ("lifts the plan…", "keeps an absent row count absent, never 0", "normalises counts defensively…", and the card's "a draft object … neither draws a number"), 4 failed, 35 passed; restored, blob equals HEAD `f3e880ee`. - `ui` vitest resolves `plugin-chatbot` from source and the harness imports `../mapMessages` directly, so no dist preflight sits on these paths. </details> <details><summary>Derived gates</summary> `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` at `8d83e7c7`: 40 families, each run with its exit captured before any pipe, all 40 exit 0. `--ran`: "40 derived famil(ies) accounted for — 40 run, 0 NOT-MEASURED". CI families are read from this PR's check-runs, not re-run locally. </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01WGufzfqZRktLWvgfHqWsyA)_ --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: objectstack-fleet[bot] <332303061+objectstack-fleet[bot]@users.noreply.github.com>
1 parent fa4cb68 commit d8d0791

18 files changed

Lines changed: 802 additions & 4 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'@object-ui/plugin-chatbot': patch
3+
'@object-ui/i18n': patch
4+
---
5+
6+
feat(plugin-chatbot): the chat draws a confirm card for a package removal (`packageRemoval`)
7+
8+
Clause-②: yes (widening)
9+
Metadata-protocol: none
10+
11+
When the assistant proposes deleting a package, the pending action's result carries a `packageRemoval` plan, and the chat now lists what goes before you decide: each object with its record count (a draft object says it has no table, and an object whose records could not be counted says so rather than showing 0), the other items by type, the total, a line when the total leaves out uncounted objects, and either a line that the tables are dropped permanently and do not go to the recycle bin, or a line that the tables and their records are kept. Approve and Deny stay the decision; after approval the card says whether the package was removed or only partly removed. `@object-ui/plugin-chatbot` exports `detectPackageRemoval` and the `PackageRemoval` / `PackageRemovalObject` types, `ChatbotEnhanced` takes the card's label props (`packageRemoval*Label`), and `@object-ui/i18n` adds the `console.ai.packageRemoval*` strings in every language pack. Nothing existing changes.

‎ui/packages/app-shell/src/console/ai/AiChatPage.tsx‎

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import { useAdapter } from '../../providers/AdapterProvider.js';
2424
import { useMetadata } from '../../providers/MetadataProvider.js';
2525
import { formatPublishFailures, type PublishFailure } from '../../views/studio-design/metadataError.js';
2626
import { useMetadataClient } from '../../views/metadata-admin/useMetadata.js';
27+
import { translateMetadataType } from '../../views/metadata-admin/i18n.js';
2728
import { readEnvelopeFailureText } from '../../utils/apiErrorEnvelope.js';
2829
import { resolveKeyedI18nLabel } from '../../utils/index.js';
2930
import { resolvePublicShareBase } from '../organizations/resolveHomeUrl.js';
@@ -67,6 +68,7 @@ import {
6768
detectRecordWrite,
6869
detectAnswerSource,
6970
detectSampleDataCleanup,
71+
detectPackageRemoval,
7072
detectProposedChanges,
7173
detectReplayOutcome,
7274
detectAuthoringVerdict,
@@ -292,6 +294,7 @@ export function hydratedMessagesToChatMessages(messages: HydratedUIMessage[]): C
292294
// lifts it, so the block survives a reload or a cache restore.
293295
const answerSource = detectAnswerSource(result);
294296
const sampleDataCleanup = detectSampleDataCleanup(result);
297+
const packageRemoval = detectPackageRemoval(result);
295298
const proposedChanges = detectProposedChanges(result);
296299
// objectui#5695 — a confirm-replay result becomes a terminal state on
297300
// the original 确认修改 card; it must never rehydrate as an ordinary
@@ -342,6 +345,7 @@ export function hydratedMessagesToChatMessages(messages: HydratedUIMessage[]): C
342345
...(recordWrite ? { recordWrite } : {}),
343346
...(answerSource ? { answerSource } : {}),
344347
...(sampleDataCleanup ? { sampleDataCleanup } : {}),
348+
...(packageRemoval ? { packageRemoval } : {}),
345349
...(proposedChanges ? { proposedChanges } : {}),
346350
...(replayOutcome ? { replayOutcome } : {}),
347351
...(part.errorText ? { errorText: String(part.errorText) } : {}),
@@ -1764,7 +1768,7 @@ export function ChatPane({
17641768
showDebug,
17651769
onCanvasOpenChange,
17661770
}: ChatPaneProps) {
1767-
const { t } = useObjectTranslation();
1771+
const { t, language } = useObjectTranslation();
17681772
const navigate = useNavigate();
17691773
// The advisory seam for this pane's draft-card publish. `useMetadataClient`
17701774
// is the layer that hands the console's advisory toast renderer to the
@@ -2768,6 +2772,19 @@ export function ChatPane({
27682772
sampleDataCleanupIrreversibleLabel={t('console.ai.sampleDataCleanupIrreversible')}
27692773
sampleDataCleanupAbsentLabel={(count) => t('console.ai.sampleDataCleanupAbsent', { count })}
27702774
sampleDataCleanupEditedLabel={(count) => t('console.ai.sampleDataCleanupEdited', { count })}
2775+
// objectstack#31025 — the package-removal card; type names are the
2776+
// ones the Studio Delete package dialog shows.
2777+
packageRemovalTitleLabel={(packageLabel) => t('console.ai.packageRemovalTitle', { package: packageLabel })}
2778+
packageRemovalRowsLabel={(count) => t('console.ai.packageRemovalRows', { count })}
2779+
packageRemovalDraftLabel={t('console.ai.packageRemovalDraft')}
2780+
packageRemovalRowsUnknownLabel={t('console.ai.packageRemovalRowsUnknown')}
2781+
packageRemovalItemTypeLabel={(type) => translateMetadataType(type, language)}
2782+
packageRemovalTotalLabel={(count) => t('console.ai.packageRemovalTotal', { count })}
2783+
packageRemovalUncountedLabel={(count) => t('console.ai.packageRemovalUncounted', { count })}
2784+
packageRemovalPermanentLabel={t('console.ai.packageRemovalPermanent')}
2785+
packageRemovalKeptLabel={t('console.ai.packageRemovalKept')}
2786+
packageRemovalRemovedLabel={t('console.ai.packageRemovalRemoved')}
2787+
packageRemovalPartialLabel={(failed) => t('console.ai.packageRemovalPartial', { count: failed })}
27712788
surface="plain"
27722789
maxHeight="100%"
27732790
headerSlot={headerSlot}

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

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2268,6 +2268,40 @@ const ar = {
22682268
sampleDataCleanupEdited_few: "{{count}} صفوف معدّلة منذ التحميل ستبقى.",
22692269
sampleDataCleanupEdited_many: "{{count}} صفًا معدّلًا منذ التحميل ستبقى.",
22702270
sampleDataCleanupEdited_other: "{{count}} صف معدّل منذ التحميل سيبقى.",
2271+
packageRemovalTitle: "حذف الحزمة {{package}}",
2272+
packageRemovalRows: "{{count}} سجل",
2273+
packageRemovalRows_zero: "لا توجد سجلات ({{count}})",
2274+
packageRemovalRows_one: "سجل واحد ({{count}})",
2275+
packageRemovalRows_two: "سجلان ({{count}})",
2276+
packageRemovalRows_few: "{{count}} سجلات",
2277+
packageRemovalRows_many: "{{count}} سجلًا",
2278+
packageRemovalRows_other: "{{count}} سجل",
2279+
packageRemovalDraft: "مسودة، بلا جدول",
2280+
packageRemovalRowsUnknown: "عدد السجلات غير متاح",
2281+
packageRemovalTotal: "{{count}} سجل إجمالًا",
2282+
packageRemovalTotal_zero: "لا توجد سجلات إجمالًا ({{count}})",
2283+
packageRemovalTotal_one: "سجل واحد إجمالًا ({{count}})",
2284+
packageRemovalTotal_two: "سجلان إجمالًا ({{count}})",
2285+
packageRemovalTotal_few: "{{count}} سجلات إجمالًا",
2286+
packageRemovalTotal_many: "{{count}} سجلًا إجمالًا",
2287+
packageRemovalTotal_other: "{{count}} سجل إجمالًا",
2288+
packageRemovalUncounted: "لا يشمل الإجمالي {{count}} كائن تعذّر عدّ سجلاته.",
2289+
packageRemovalUncounted_zero: "لا يستثني الإجمالي أي كائن ({{count}}).",
2290+
packageRemovalUncounted_one: "لا يشمل الإجمالي كائنًا واحدًا ({{count}}) تعذّر عدّ سجلاته.",
2291+
packageRemovalUncounted_two: "لا يشمل الإجمالي كائنين ({{count}}) تعذّر عدّ سجلاتهما.",
2292+
packageRemovalUncounted_few: "لا يشمل الإجمالي {{count}} كائنات تعذّر عدّ سجلاتها.",
2293+
packageRemovalUncounted_many: "لا يشمل الإجمالي {{count}} كائنًا تعذّر عدّ سجلاتها.",
2294+
packageRemovalUncounted_other: "لا يشمل الإجمالي {{count}} كائن تعذّر عدّ سجلاتها.",
2295+
packageRemovalPermanent: "تُحذف الجداول نهائيًا مع كل السجلات التي فيها. لا تنتقل الجداول المحذوفة إلى سلة المحذوفات ولا يمكن استعادتها.",
2296+
packageRemovalKept: "تبقى جداول قاعدة البيانات وكل السجلات التي فيها؛ تُزال الحزمة فقط.",
2297+
packageRemovalRemoved: "حُذفت الحزمة.",
2298+
packageRemovalPartial: "حُذفت الحزمة جزئيًا: لم يُزل {{count}} عنصر.",
2299+
packageRemovalPartial_zero: "حُذفت الحزمة جزئيًا ({{count}}).",
2300+
packageRemovalPartial_one: "حُذفت الحزمة جزئيًا: لم يُزل عنصر واحد ({{count}}).",
2301+
packageRemovalPartial_two: "حُذفت الحزمة جزئيًا: لم يُزل عنصران ({{count}}).",
2302+
packageRemovalPartial_few: "حُذفت الحزمة جزئيًا: لم تُزل {{count}} عناصر.",
2303+
packageRemovalPartial_many: "حُذفت الحزمة جزئيًا: لم يُزل {{count}} عنصرًا.",
2304+
packageRemovalPartial_other: "حُذفت الحزمة جزئيًا: لم يُزل {{count}} عنصر.",
22712305
copy: "نسخ",
22722306
copied: "تم النسخ",
22732307
regenerate: "إعادة التوليد",

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2037,6 +2037,24 @@ const de = {
20372037
sampleDataCleanupEdited: "{{count}} seit dem Einspielen bearbeitete Zeilen bleiben erhalten.",
20382038
sampleDataCleanupEdited_one: "{{count}} seit dem Einspielen bearbeitete Zeile bleibt erhalten.",
20392039
sampleDataCleanupEdited_other: "{{count}} seit dem Einspielen bearbeitete Zeilen bleiben erhalten.",
2040+
packageRemovalTitle: "Das Paket {{package}} löschen",
2041+
packageRemovalRows: "{{count}} Datensätze",
2042+
packageRemovalRows_one: "{{count}} Datensatz",
2043+
packageRemovalRows_other: "{{count}} Datensätze",
2044+
packageRemovalDraft: "Entwurf, keine Tabelle",
2045+
packageRemovalRowsUnknown: "Anzahl der Datensätze nicht verfügbar",
2046+
packageRemovalTotal: "Insgesamt {{count}} Datensätze",
2047+
packageRemovalTotal_one: "Insgesamt {{count}} Datensatz",
2048+
packageRemovalTotal_other: "Insgesamt {{count}} Datensätze",
2049+
packageRemovalUncounted: "In der Summe fehlen {{count}} Objekte, deren Datensätze nicht gezählt werden konnten.",
2050+
packageRemovalUncounted_one: "In der Summe fehlt {{count}} Objekt, dessen Datensätze nicht gezählt werden konnten.",
2051+
packageRemovalUncounted_other: "In der Summe fehlen {{count}} Objekte, deren Datensätze nicht gezählt werden konnten.",
2052+
packageRemovalPermanent: "Die Tabellen werden mit allen Datensätzen darin endgültig gelöscht. Gelöschte Tabellen kommen nicht in den Papierkorb und können nicht wiederhergestellt werden.",
2053+
packageRemovalKept: "Die Datenbanktabellen und alle Datensätze darin bleiben erhalten; nur das Paket wird entfernt.",
2054+
packageRemovalRemoved: "Das Paket wurde gelöscht.",
2055+
packageRemovalPartial: "Das Paket wurde nur teilweise gelöscht: {{count}} Elemente wurden nicht entfernt.",
2056+
packageRemovalPartial_one: "Das Paket wurde nur teilweise gelöscht: {{count}} Element wurde nicht entfernt.",
2057+
packageRemovalPartial_other: "Das Paket wurde nur teilweise gelöscht: {{count}} Elemente wurden nicht entfernt.",
20402058
copy: "Kopieren",
20412059
copied: "Kopiert",
20422060
regenerate: "Neu generieren",

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2764,6 +2764,24 @@ const en = {
27642764
sampleDataCleanupEdited: '{{count}} rows edited since they were seeded stay.',
27652765
sampleDataCleanupEdited_one: '{{count}} row edited since it was seeded stays.',
27662766
sampleDataCleanupEdited_other: '{{count}} rows edited since they were seeded stay.',
2767+
packageRemovalTitle: 'Delete the package {{package}}',
2768+
packageRemovalRows: '{{count}} records',
2769+
packageRemovalRows_one: '{{count}} record',
2770+
packageRemovalRows_other: '{{count}} records',
2771+
packageRemovalDraft: 'Draft, no table',
2772+
packageRemovalRowsUnknown: 'Record count unavailable',
2773+
packageRemovalTotal: '{{count}} records in total',
2774+
packageRemovalTotal_one: '{{count}} record in total',
2775+
packageRemovalTotal_other: '{{count}} records in total',
2776+
packageRemovalUncounted: 'The total leaves out {{count}} objects whose records could not be counted.',
2777+
packageRemovalUncounted_one: 'The total leaves out {{count}} object whose records could not be counted.',
2778+
packageRemovalUncounted_other: 'The total leaves out {{count}} objects whose records could not be counted.',
2779+
packageRemovalPermanent: 'The tables are dropped permanently, with every record in them. Dropped tables do not go to the recycle bin and cannot be restored.',
2780+
packageRemovalKept: 'The database tables and every record in them are kept; only the package is removed.',
2781+
packageRemovalRemoved: 'The package was deleted.',
2782+
packageRemovalPartial: 'The package was partly deleted: {{count}} items were not removed.',
2783+
packageRemovalPartial_one: 'The package was partly deleted: {{count}} item was not removed.',
2784+
packageRemovalPartial_other: 'The package was partly deleted: {{count}} items were not removed.',
27672785
copy: 'Copy',
27682786
copied: 'Copied',
27692787
regenerate: 'Regenerate',

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2097,6 +2097,28 @@ const es = {
20972097
sampleDataCleanupEdited_one: "{{count}} fila editada desde su carga se conserva.",
20982098
sampleDataCleanupEdited_many: "{{count}} de filas editadas desde su carga se conservan.",
20992099
sampleDataCleanupEdited_other: "{{count}} filas editadas desde su carga se conservan.",
2100+
packageRemovalTitle: "Eliminar el paquete {{package}}",
2101+
packageRemovalRows: "{{count}} registros",
2102+
packageRemovalRows_one: "{{count}} registro",
2103+
packageRemovalRows_many: "{{count}} de registros",
2104+
packageRemovalRows_other: "{{count}} registros",
2105+
packageRemovalDraft: "Borrador, sin tabla",
2106+
packageRemovalRowsUnknown: "Número de registros no disponible",
2107+
packageRemovalTotal: "{{count}} registros en total",
2108+
packageRemovalTotal_one: "{{count}} registro en total",
2109+
packageRemovalTotal_many: "{{count}} de registros en total",
2110+
packageRemovalTotal_other: "{{count}} registros en total",
2111+
packageRemovalUncounted: "El total no incluye {{count}} objetos cuyos registros no se pudieron contar.",
2112+
packageRemovalUncounted_one: "El total no incluye {{count}} objeto cuyos registros no se pudieron contar.",
2113+
packageRemovalUncounted_many: "El total no incluye {{count}} de objetos cuyos registros no se pudieron contar.",
2114+
packageRemovalUncounted_other: "El total no incluye {{count}} objetos cuyos registros no se pudieron contar.",
2115+
packageRemovalPermanent: "Las tablas se eliminan de forma permanente, con todos sus registros. Las tablas eliminadas no van a la papelera de reciclaje y no se pueden restaurar.",
2116+
packageRemovalKept: "Las tablas de la base de datos y todos sus registros se conservan; solo se quita el paquete.",
2117+
packageRemovalRemoved: "El paquete se eliminó.",
2118+
packageRemovalPartial: "El paquete se eliminó solo en parte: {{count}} elementos no se quitaron.",
2119+
packageRemovalPartial_one: "El paquete se eliminó solo en parte: {{count}} elemento no se quitó.",
2120+
packageRemovalPartial_many: "El paquete se eliminó solo en parte: {{count}} de elementos no se quitaron.",
2121+
packageRemovalPartial_other: "El paquete se eliminó solo en parte: {{count}} elementos no se quitaron.",
21002122
copy: "Copiar",
21012123
copied: "Copiado",
21022124
regenerate: "Regenerar",

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2093,6 +2093,28 @@ const fr = {
20932093
sampleDataCleanupEdited_one: "{{count}} ligne modifiée depuis son chargement est conservée.",
20942094
sampleDataCleanupEdited_many: "{{count}} de lignes modifiées depuis leur chargement sont conservées.",
20952095
sampleDataCleanupEdited_other: "{{count}} lignes modifiées depuis leur chargement sont conservées.",
2096+
packageRemovalTitle: "Supprimer le package {{package}}",
2097+
packageRemovalRows: "{{count}} enregistrements",
2098+
packageRemovalRows_one: "{{count}} enregistrement",
2099+
packageRemovalRows_many: "{{count}} d’enregistrements",
2100+
packageRemovalRows_other: "{{count}} enregistrements",
2101+
packageRemovalDraft: "Brouillon, sans table",
2102+
packageRemovalRowsUnknown: "Nombre d’enregistrements indisponible",
2103+
packageRemovalTotal: "{{count}} enregistrements au total",
2104+
packageRemovalTotal_one: "{{count}} enregistrement au total",
2105+
packageRemovalTotal_many: "{{count}} d’enregistrements au total",
2106+
packageRemovalTotal_other: "{{count}} enregistrements au total",
2107+
packageRemovalUncounted: "Le total exclut {{count}} objets dont les enregistrements n’ont pas pu être comptés.",
2108+
packageRemovalUncounted_one: "Le total exclut {{count}} objet dont les enregistrements n’ont pas pu être comptés.",
2109+
packageRemovalUncounted_many: "Le total exclut {{count}} d’objets dont les enregistrements n’ont pas pu être comptés.",
2110+
packageRemovalUncounted_other: "Le total exclut {{count}} objets dont les enregistrements n’ont pas pu être comptés.",
2111+
packageRemovalPermanent: "Les tables sont supprimées définitivement, avec tous leurs enregistrements. Les tables supprimées ne vont pas dans la corbeille et ne peuvent pas être restaurées.",
2112+
packageRemovalKept: "Les tables de la base de données et tous leurs enregistrements sont conservés ; seul le package est retiré.",
2113+
packageRemovalRemoved: "Le package a été supprimé.",
2114+
packageRemovalPartial: "Le package n’a été supprimé qu’en partie : {{count}} éléments n’ont pas été retirés.",
2115+
packageRemovalPartial_one: "Le package n’a été supprimé qu’en partie : {{count}} élément n’a pas été retiré.",
2116+
packageRemovalPartial_many: "Le package n’a été supprimé qu’en partie : {{count}} d’éléments n’ont pas été retirés.",
2117+
packageRemovalPartial_other: "Le package n’a été supprimé qu’en partie : {{count}} éléments n’ont pas été retirés.",
20962118
copy: "Copier",
20972119
copied: "Copié",
20982120
regenerate: "Régénérer",

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2039,6 +2039,24 @@ const ja = {
20392039
sampleDataCleanupEdited: "投入後に編集された {{count}} 件は残します。",
20402040
sampleDataCleanupEdited_one: "投入後に編集された {{count}} 件は残します。",
20412041
sampleDataCleanupEdited_other: "投入後に編集された {{count}} 件は残します。",
2042+
packageRemovalTitle: "パッケージ {{package}} を削除する",
2043+
packageRemovalRows: "{{count}} 件のレコード",
2044+
packageRemovalRows_one: "{{count}} 件のレコード",
2045+
packageRemovalRows_other: "{{count}} 件のレコード",
2046+
packageRemovalDraft: "下書き(テーブルなし)",
2047+
packageRemovalRowsUnknown: "レコード数を取得できません",
2048+
packageRemovalTotal: "合計 {{count}} 件のレコード",
2049+
packageRemovalTotal_one: "合計 {{count}} 件のレコード",
2050+
packageRemovalTotal_other: "合計 {{count}} 件のレコード",
2051+
packageRemovalUncounted: "合計には、レコード数を数えられなかった {{count}} 件のオブジェクトが含まれていません。",
2052+
packageRemovalUncounted_one: "合計には、レコード数を数えられなかった {{count}} 件のオブジェクトが含まれていません。",
2053+
packageRemovalUncounted_other: "合計には、レコード数を数えられなかった {{count}} 件のオブジェクトが含まれていません。",
2054+
packageRemovalPermanent: "テーブルは中のすべてのレコードとともに完全に削除されます。削除したテーブルはごみ箱に入らず、復元できません。",
2055+
packageRemovalKept: "データベースのテーブルとその中のすべてのレコードは残ります。削除されるのはパッケージだけです。",
2056+
packageRemovalRemoved: "パッケージを削除しました。",
2057+
packageRemovalPartial: "パッケージは一部だけ削除されました:{{count}} 件の項目は削除されませんでした。",
2058+
packageRemovalPartial_one: "パッケージは一部だけ削除されました:{{count}} 件の項目は削除されませんでした。",
2059+
packageRemovalPartial_other: "パッケージは一部だけ削除されました:{{count}} 件の項目は削除されませんでした。",
20422060
copy: "コピー",
20432061
copied: "コピーしました",
20442062
regenerate: "再生成",

0 commit comments

Comments
 (0)