Repository navigation
feat(i18n): add Italian translation - #543
Merged
Merged
Conversation
Adds an it-IT locale covering every message in en-US, registers it in SUPPORTED_LANGUAGES so Accept-Language, the lang cookie, the system locale and `cook build web --lang it` all resolve to it, and adds an Italiano button to the language picker in preferences. Co-Authored-By: Claude Opus 5.5 <[email protected]>
LeMyst
marked this pull request as ready for review
September 26, 2026 09:02
LeMyst
added a commit
to LeMyst/cookcli
that referenced
this pull request
Sep 27, 2026
Resolve the edit_page conflict with cooklang#550: keep its recipe_file() lookup, which already rules out a missing file path, and pass the viewer through to the error page. Add the sign-in strings to the Italian locale that arrived with cooklang#543. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Sep 28, 2026
Closed
LeMyst
added a commit
that referenced
this pull request
Sep 28, 2026
- error-title and error-back-home in de-DE, es-ES, eu-ES, fr-FR and nl-NL, missing since dec59f1 added the error page. - shopping-include-in-list in de-DE, es-ES, eu-ES, fr-FR, nl-NL and sv-SE, missing since #318. - The 18 editor-toolbar-* messages #540 added to every locale but it-IT, which was merged (#543) while #540 was open. Fluent falls back to en-US for a missing message, so nothing failed and the pages came out half in English. tests/locales_test.rs now fails when a locale lacks a message en-US has, naming the locale, file and ids. Closes #566. Co-authored-by: Claude Opus 5.5 <[email protected]>
This was referenced Sep 29, 2026
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.
Summary
Adds Italian (
it-IT) to the web UI languages.locales/it-IT/*.ftl— every message inen-UStranslated (same ids in all five files, plurals via[one]/*[other]).src/web/language.rs—IT_ITadded toSUPPORTED_LANGUAGES, soAccept-Language: it, thelangcookie, anit_IT.UTF-8system locale andcook build web --lang itall resolve to Italian. New test for the POSIX locale case.templates/preferences.html— 🇮🇹 Italiano button in the language picker.src/build/mod.rs,docs/build.md,docs/server.md—it-ITlisted among the supported languages.A few wording choices, open to native-speaker review:
Aggiungi,Salva,Elimina), as most Italian software does.reparti, pantry isdispensa, cookware isutensili.Data di modifica/Data di creazioneso "Modified" doesn't collide with theModifica(Edit) action.pref-version-textkeeps the "in food we trust" tagline in English, like the other locales.Note: #540 adds 20 editor-toolbar messages to every locale. Whichever of the two lands second, the Italian toolbar strings will need adding (they fall back to English until then).
Test plan
cargo fmt --check,cargo clippy --all-targets(no warnings),cargo test(all green, incl.test_system_locale_italian)it-ITmatchen-USfile by filecook build web --base-path ./seed --lang itrenders<html lang="it-IT">with Italian labels🤖 Generated with Claude Code