Skip to content

🌐 Add Italian (it-IT) translation / 新增意大利语翻译 - #1861

Merged
CodFrm merged 1 commit into
scriptscat:mainfrom
Hanamichi27:i18n-it-IT
Nov 17, 2026
Merged

CodFrm merged 1 commit into
scriptscat:mainfrom
Hanamichi27:i18n-it-IT

Conversation

@Hanamichi27

@Hanamichi27 Hanamichi27 commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor
  • src/locales/it-IT/: 12 namespace files translated from en-US
  • Register it-IT in src/locales/locales.ts
  • Monaco editor prompts: src/pkg/utils/monaco-editor/langs/it-IT.ts + index.ts entry
  • chrome.i18n store metadata: src/assets/_locales/it/messages.json
  • docs/references/terminology-it-IT.md and row in docs/translation.md
  • relative-date: map "it"

Claude-Session: https://claude.ai/code/session_015DokMJRjQXvb16RBANMJpP

Checklist / 检查清单

  • Fixes mentioned issues / 修复已提及的问题
  • Code reviewed by human / 代码通过人工检查
  • Changes tested / 已完成测试

Description / 描述

Summary

Adds a full Italian (it-IT) translation of the ScriptCat UI.

The translation was produced with Claude (Anthropic) reviewed and submitted by an Italian speaker. Feedback from other Italian speakers is welcome.

Changes

  • src/locales/it-IT/: all 12 namespace files translated from en-US (1,506 strings), plus index.ts
  • src/locales/locales.ts: register it-IT ("Italiano")
  • src/pkg/utils/monaco-editor/langs/it-IT.ts + index.ts: Monaco editor hover prompts (97 keys)
  • src/assets/_locales/it/messages.json: chrome.i18n store metadata
  • docs/references/terminology-it-IT.md: Italian terminology guide, following the structure of the existing guides
  • docs/translation.md: add the it-IT row to the per-locale table
  • src/locales/relative-date.ts: map it

Verification

  • pnpm run check:i18n passes: key sets match en-US / en, locale is registered, terminology file and editorLangs entry are present
  • An automated comparison confirmed that every i18next placeholder ({{...}}, ${...}, $0, {0}), HTML/React tag (<Link>, <a>) and metadata identifier (@match, @connect, …) matches the English source
  • Prettier and tsc pass on the changed files; the it-IT editor language pack has the same type shape as en-US
  • The full pnpm lint:ci could not be run locally, so I'm relying on CI for that

Terminology choices

Documented in [terminology-it-IT.md](http://terminology-it-it.md/). The main ones:

  • Subscription → Sottoscrizione (not "Abbonamento", which implies payment in Italian)
  • Background / Scheduled / User Script → Script in background / Script pianificato / Script utente
  • Trash → Cestino; Skill, Prompt, MCP, OPFS, CSP, Storage API kept as-is
  • Imperative for buttons (Salva, Elimina), informal "tu", sentence case
  • Blacklist → Lista di blocco / Pagine bloccate, in line with the other terminology guides
  • Where the English source is imprecise (e.g. "crontab scripts", "quit Chrome", "tap"), the Italian follows the terminology guide's intent ("script pianificati", "il browser", "fai clic") rather than the literal wording

Note: CONTRIBUTING.md is incomplete for new languages

The "Add a new language" section of [CONTRIBUTING.md](http://contributing.md/) only mentions the src/locales/<locale>/ files and the registration in locales.ts. Following just those steps, pnpm run check:i18n (part of lint:ci) fails with:

❌ src/assets/_locales has no directory for locale "it-IT"
❌ docs/references/[terminology-it-IT.md](http://terminology-it-it.md/) is missing
❌ src/pkg/utils/monaco-editor/langs/index.ts: editorLangs has no "it-IT" entry

The full requirements are only listed in docs/[translation.md](http://translation.md/). It might help future contributors if [CONTRIBUTING.md](http://contributing.md/) listed these steps too, or linked to docs/[translation.md](http://translation.md/).

🤖 Generated with Claude Code

https://claude.ai/code/session_015DokMJRjQXvb16RBANMJpP

Screenshots / 截图

- src/locales/it-IT/: 12 namespace files translated from en-US
- Register it-IT in src/locales/locales.ts
- Monaco editor prompts: src/pkg/utils/monaco-editor/langs/it-IT.ts + index.ts entry
- chrome.i18n store metadata: src/assets/_locales/it/messages.json
- docs/references/terminology-it-IT.md and row in docs/translation.md
- relative-date: map "it"

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015DokMJRjQXvb16RBANMJpP
@CodFrm

CodFrm commented Nov 17, 2026

Copy link
Copy Markdown
Member

Thanks for the PR. It has been merged.

@CodFrm
CodFrm merged commit b4148ec into scriptscat:main Nov 17, 2026
11 checks passed
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