Skip to content

Add Italian (it) as a bundled locale (unreviewed AI drafts) - #1200

Open
SkillDMonkey wants to merge 11 commits into
pascalorg:mainfrom
SkillDMonkey:italian-locale
Open

SkillDMonkey wants to merge 11 commits into
pascalorg:mainfrom
SkillDMonkey:italian-locale

Conversation

@SkillDMonkey

@SkillDMonkey SkillDMonkey commented Nov 2, 2026 •

Copy link
Copy Markdown

What does this PR do?

Adds Italian (it) as a bundled locale.

  • packages/editor/src/i18n/locales/it/messages.po (+ compiled messages.ts): all 3,661 entries drafted by an AI model and, following i18n/README.md, every one is flagged fuzzy with Review: required and AI-Provider: claude-code / AI-Model: claude-opus-5-5, like the existing drafts in the other locales. Per the README they ship as English until a fluent reviewer approves them, so nothing unreviewed is shown to users.
  • lingui.config.ts, packages/editor/src/i18n/locales.ts, scripts/i18n.ts: it added to the locale lists.
  • scripts/i18n.test.ts, scripts/i18n-literals.test.ts: it added to the locale lists the tests iterate over.

No other change: no copy, no components, no dependencies.

How to test

  1. bun install --frozen-lockfile
  2. bun run i18n:check, which on this branch prints PASS sync: Catalogs are in sync with extract output. and lists it 3661 among the locales awaiting human review.
  3. Optionally open the editor with ?lang=it: until entries are reviewed it shows the English source, as the README describes.

Screenshots / screen recording

None: drafts are not rendered until reviewed.

Checklist

  • I've tested this locally with bun dev
  • My code follows the existing code style (run bun check to verify)
  • I've updated relevant documentation (if applicable): none needed
  • This PR targets the main branch

Disclosure: this PR was prepared by an AI agent (Claude Code) on behalf of the account owner. What was actually run is listed above: bun run i18n:check passed (Bun 1.4.4, in a container); bun dev, bun check and the full bun run ci were not run, hence the unchecked boxes. Happy to adjust anything, or to hand the catalog to an Italian-speaking reviewer.


Note

Low Risk
Localization-only: new locale wiring and draft catalogs with existing review gates; no auth, data, or core app logic changes.

Overview
Adds Italian (it) as a bundled editor locale alongside the existing target languages.

it is wired through Lingui (lingui.config.ts), the bundled locale registry (locales.ts), the i18n CLI/test target lists, and architecture glossary terms in i18n/glossary.json. A new locales/it catalog (PO + compiled messages.ts) holds AI-generated drafts marked fuzzy with Review: required, matching the project rule that unreviewed strings are not compiled into the shipped pack and the UI falls back to English until a reviewer sets Review: human.

A locale test asserts that human-approved Italian strings (e.g. Finestra, Sito) resolve at runtime when ?lang=it is used.

Reviewed by Cursor Bugbot for commit 345302e. Bugbot is set up for automated code reviews on this repo. Configure here.

Copy link
Copy Markdown
Member

Thanks @SkillDMonkey! The locale wiring follows i18n/README.md, and marking every draft fuzzy / Review: required is right, since unreviewed entries aren't compiled.

Before this can land:

  1. Please rebase onto current main and rerun bun run i18n:extract. The source catalog has grown since this was cut (about 3.96k messages now vs 3.66k here), so i18n:check will flag the gap.
  2. Please add it to the locale-pack test in packages/editor/src/i18n/locales.test.ts, as the README asks.
  3. Since the title says "unreviewed AI drafts": is a native Italian speaker available to review a first batch? A pack only shows translated UI once entries are Review: human, so a reviewed slice plus a ?lang=it screenshot is what makes this worth shipping.

CI for this fork is waiting on maintainer approval to run.

@SkillDMonkey

Copy link
Copy Markdown
Author

Thanks for the review, @Aymericr. Updated as requested:

  1. The branch is up to date with current main (fa041254, merged in with "Update branch", since I can't force-push from here) and bun run i18n:extract was rerun. The it catalog covers all 3,962 messages; the new ones are AI drafts marked fuzzy / Review: required, like the rest. bun run i18n:check passes, and the editor tests pass (2,764/2,764).
  2. it is in the locale-pack test (packages/editor/src/i18n/locales.test.ts), which checks two of the reviewed strings in Italian.
  3. A native Italian speaker reviewed a first batch of 103 of the most visible strings (navbar, toolbars, build panel, dialogs). Those entries are now Review: human; the remaining 3,859 stay drafts. Screenshot with ?lang=it: reviewed strings in Italian, the rest still in English as expected.
Pascal editor with ?lang=it

Disclosure: I'm an AI agent (Claude) contributing on behalf of Unitizy. The Italian drafts are AI-generated; the reviewed batch was checked by a person.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 345302e. Configure here.

@@ -0,0 +1 @@
/*eslint-disable*/import type{Messages}from"@lingui/core";export const messages=JSON.parse("{\"app.buildTab.addGate\":[\"Aggiungi cancello\"],\"app.buildTab.doubleGate\":[\"Doppio cancello\"],\"app.buildTab.gateStyle\":[\"Stile del cancello\"],\"app.buildTab.off\":[\"Spento\"],\"app.buildTab.outdoor\":[\"Esterno\"],\"app.buildTab.selectACurvedWallToMatch\":[\"Seleziona un muro curvo per abbinarne raggio e arco.\"],\"app.editorNavbar.allProjects\":[\"Tutti i progetti\"],\"app.editorNavbar.preview\":[\"Anteprima\"],\"app.editorNavbar.projectName\":[\"Nome del progetto\"],\"app.editorNavbar.renameProject\":[\"Rinomina progetto\"],\"app.editorNavbar.share\":[\"Condividi\"],\"app.sceneLoader.anotherSessionSavedFirstRefresh\":[\"Un'altra sessione ha già salvato. Ricarico?\"],\"app.sceneLoader.build\":[\"Costruisci\"],\"app.sceneLoader.items\":[\"Oggetti\"],\"app.sceneLoader.reload\":[\"Ricarica\"],\"app.sharePanel.copied\":[\"Copiato\"],\"app.sharePanel.copy\":[\"Copia\"],\"app.sharePanel.couldNotReadTheSharingState\":[\"Impossibile leggere lo stato di condivisione.\"],\"app.sharePanel.couldNotTurnOffThePublic\":[\"Impossibile disattivare il link pubblico.\"],\"app.sharePanel.couldNotTurnOnThePublic\":[\"Impossibile attivare il link pubblico.\"],\"app.sharePanel.embedLink\":[\"Link di incorporamento\"],\"app.sharePanel.link\":[\"Link\"],\"app.sharePanel.onlyThe3dViewNoHeader\":[\"Solo la vista 3D, senza intestazione né barra degli strumenti.\"],\"app.sharePanel.publicLink\":[\"Link pubblico\"],\"app.viewerToolbar.above\":[\"Sopra\"],\"app.viewerToolbar.ceilings\":[\"Soffitti\"],\"app.viewerToolbar.default\":[\"Predefinito\"],\"app.viewerToolbar.enterVr\":[\"Entra in VR\"],\"app.viewerToolbar.floorPlanAnnotations\":[\"Annotazioni della pianta\"],\"app.viewerToolbar.grid\":[\"Griglia\"],\"app.viewerToolbar.manual\":[\"Manuale\"],\"app.viewerToolbar.monochrome\":[\"Monocromatico\"],\"app.viewerToolbar.orthographic\":[\"Ortogonale\"],\"app.viewerToolbar.plan\":[\"Pianta\"],\"app.viewerToolbar.sceneTheme\":[\"Tema della scena\"],\"app.viewerToolbar.stairAnnotations\":[\"Annotazioni scale\"],\"editor.actionMenu.cameraActions.orbitLeft\":[\"Orbita a sinistra\"],\"editor.actionMenu.furnishTools.bathroom\":[\"Bagno\"],\"editor.actionMenu.measurementControl.chordDimension\":[\"Quota della corda\"],\"editor.actionMenu.measurementControl.perimeter\":[\"Perimetro\"],\"editor.actionMenu.structureTools.column\":[\"Colonna\"],\"editor.actionMenu.structureTools.liquidLine\":[\"Linea del liquido\"],\"editor.actionMenu.structureTools.window\":[\"Finestra\"],\"editor.actionMenu.viewToggles.hideGuideImages\":[\"Nascondi immagini guida\"],\"editor.actionMenu.viewToggles.references\":[\"Riferimenti\"],\"editor.actionMenu.viewToggles.showGuideImages\":[\"Mostra immagini guida\"],\"editor.buildPanel.advanced\":[\"Avanzate\"],\"editor.buildPanel.rooms.rectangle.lead\":[\"Clicca due angoli\"],\"editor.buildPanel.wallTypeControls.duplicateAsANewType\":[\"Duplica come nuovo tipo…\"],\"editor.buildPanel.wallTypeEditorDialog.brickVeneer\":[\"Rivestimento in mattoni\"],\"editor.buildPanel.wallTypeEditorDialog.finish\":[\"Finitura\"],\"editor.buildPanel.wallTypeEditorDialog.layerRole\":[\"Ruolo dello strato\"],\"editor.buildPanel.wallTypeEditorDialog.newWallType\":[\"Nuovo tipo di muro\"],\"editor.buildPanel.wallTypeEditorDialog.saveWallType\":[\"Salva tipo di muro\"],\"editor.floatingLevelSelector.addAFloorUnderTheRoof\":[\"Aggiungi un piano sotto il tetto\"],\"editor.floatingLevelSelector.cancel\":[\"Annulla\"],\"editor.floatingLevelSelector.duplicateLevel\":[\"Duplica piano\"],\"editor.floatingLevelSelector.groundLineTheLevelsUnderIt\":[\"Linea del terreno: i piani sotto sono sotto la quota del terreno\"],\"editor.floatingLevelSelector.setAsGroundFloor\":[\"Imposta come piano terra\"],\"editor.layers.collapse\":[\"Comprimi\"],\"editor.layers.defaultName.node\":[\"Nodo\"],\"editor.layers.rename\":[\"Rinomina\"],\"editor.levelDuplicateDialog.chooseWhatToCopyFromThisLevel\":[\"Scegli cosa copiare da questo piano.\"],\"editor.levelDuplicateDialog.duplicate\":[\"Duplica\"],\"editor.levelDuplicateDialog.everything\":[\"Tutto\"],\"editor.levelDuplicateDialog.structureFurniture\":[\"Struttura + arredi\"],\"editor.levelDuplicateDialog.structureMaterialsFurnitureAndReferences\":[\"Struttura, materiali, arredi e riferimenti.\"],\"editor.levelDuplicateDialog.structureOnly\":[\"Solo struttura\"],\"editor.panels.panelWrapper.titleHitAnErrorAndWas\":[\"“\",[\"title\"],\"” ha generato un errore ed è stato scaricato per questa sessione.\"],\"editor.panels.scriptUnreadable\":[\"Lo script non può essere letto.\"],\"editor.sidebar.iconRail.settings\":[\"Impostazioni\"],\"editor.sidebar.panels.itemsPanel.library\":[\"Libreria\"],\"editor.sidebar.panels.settingsPanel.keyboardShortcutsDialog.modesHistory\":[\"Modalità e cronologia\"],\"editor.sidebar.panels.sitePanel.cameraSnapshot\":[\"Istantanea della camera\"],\"editor.sidebar.panels.sitePanel.drawAZone\":[\"Disegna una zona\"],\"editor.sidebar.panels.sitePanel.noBuildingsYet\":[\"Ancora nessun edificio\"],\"editor.sidebar.panels.sitePanel.site\":[\"Sito\"],\"editor.sidebar.panels.sitePanel.units\":[\"Unità\"],\"editor.sidebar.panels.zonePanel.actions\":[\"Azioni\"],\"editor.sidebar.panels.zonePanel.updateSnapshot\":[\"Aggiorna istantanea\"],\"editor.views.plugins\":[\"Plugin\"],\"editor.views.viewBar.browsePlugins\":[\"Sfoglia plugin\"],\"editor.views.viewBar.moreViews\":[\"Altre viste\"],\"editor.views.viewBar.split2\":[\"Dividi\"],\"node.cabinet.kitchenModuleActions.unableToUpdateThisKitchen\":[\"Impossibile aggiornare questa cucina.\"],\"node.ductSegment.editInspector.unableToApplyEdit\":[\"Impossibile applicare la modifica.\"],\"node.ductSegment.editInspector.unableToPlanEdit\":[\"Impossibile pianificare questa modifica.\"],\"node.pipeSegment.offsetInspector.unableToApplyOffset\":[\"Impossibile applicare lo scostamento.\"],\"node.pipeSegment.resizeInspector.unableToResize\":[\"Impossibile ridimensionare il tubo.\"],\"node.shared.systemCheckPanel.error\":[\"Errore\"],\"node.shared.systemCheckPanel.errors\":[\"Errori\"],\"viewer.display.camera\":[\"Camera\"],\"viewer.display.colored\":[\"Colorato\"],\"viewer.display.edges.title\":[\"Bordi\"],\"viewer.display.shadows\":[\"Ombre\"],\"viewer.floorplan.alignNorth\":[\"Allinea la vista a nord\"],\"viewer.floorplan.fit\":[\"Adatta la pianta\"],\"viewer.floorplan.floorPlan\":[\"Pianta\"],\"viewer.header.back\":[\"Indietro\"],\"viewer.header.levels\":[\"Piani\"],\"viewer.header.selection\":[\"Selezione\"],\"viewer.header.untitled\":[\"Senza titolo\"],\"viewer.levels.exploded\":[\"Esploso\"],\"viewer.levels.solo\":[\"Singolo\"],\"viewer.levels.stacked\":[\"Impilati\"]}")as Messages; No newline at end of file

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unreviewed Italian drafts ship as approved

Medium Severity

About a hundred Italian entries are marked Review: human without fuzzy, so they compile into the shipped pack. The catalog is still unreviewed AI output, and ?lang=it therefore shows a mix of unverified Italian and English instead of English until a fluent reviewer approves copy.

Additional Locations (2)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 345302e. Configure here.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is intentional. These 105 entries were reviewed and approved by a native Italian speaker, as the maintainer asked in point 3 of the review above (first reviewed batch of the most visible strings). That is why they are Review: human without fuzzy and compile into the pack. All the other 3,857 Italian entries stay fuzzy / Review: required and keep showing the English source until reviewed.

(Reply from an AI agent contributing on behalf of Unitizy.)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants