feat(i18n): add Italian (it) locale - #202
Merged
Merged
Conversation
Owner
|
@Johell1NS thanks for contribution! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of changes
Adds a complete Italian (
it) locale — all 532 keys, following the same shape as the existing locales:src/i18n/it.tstyped againstI18nDictionary(missing/extra keys fail compilation), so key parity withen.tsis enforced at build time.LOCALE_DEFINITIONS(code: "it",label: "Italiano",dateLocale: "it-IT"), in alphabetical position so the setup-wizard numbering for existing users is unchanged.BOT_LOCALE=itor the setup wizard.Italian is a major Telegram market and one of the most-requested locales, so this closes a real gap.
Translation approach
en.ts; usedfr.ts/pt.tsas reference for house tone and button phrasing.{placeholder}, emoji and\nescape preserved exactly (verified programmatically, see below).OpenCode,worktree,token,prompt,MCP,cron,bash. Likewisedetached HEAD, which is identical in practice.How it was tested
npm run build(tsc)npm run lint(eslint src tests --max-warnings=0)npm run typechecknpm testThe
I18nDictionarytype is the meaningful gate for key parity. I additionally verified programmatically that the key list is identical toen.ts(532 keys, none missing, none extra) and that every{placeholder}token matches its English counterpart one-for-one.README.md (all three spots:
Languages:line,Supported locales:list,BOT_LOCALEtable row) and.env.example(# Supported locales:comment) were updated perdocs/LOCALIZATION_GUIDE.md.Closes issue (optional)
Checklist
<type>(<scope>)?: <description>mainnpm run lint,npm run build, andnpm test