Repository navigation
feat(i18n): infrastruttura dei testi in più lingue + area campione (L2) - #256
Merged
Merged
Conversation
…arra, menu, Esporta) it.json fonte unica, en.json caricato a richiesta (?lang=en), pseudo-lingua (?lang=xx), t()/td(), marcatori ⟦chiave⟧ nell'HTML risolti dal build, test/i18n.test.mjs in CI, cricchetto informativo. Nessun cambiamento per l'utente italiano (shell identica tolti i data-t). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Af3zn6gR4B8218SQ3pU5B7
…Esporta, snap e Chiudi/Annulla dal catalogo - i18nApplica non ricrea un attributo che il JS ha tolto e rispetta un valore riscritto dopo di noi (test + 9 mutazioni rosse) - esporta.annulla separata da barra.annulla (Undo): stessa parola, due significati; l'estrattore non riusa più chiavi fra aree - snapOpzioni (Libero / Solo oggetti) e i testi Chiudi/Annulla del pannello Esporta passano da t() Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Af3zn6gR4B8218SQ3pU5B7
…ece del testo scritto nel codice Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Af3zn6gR4B8218SQ3pU5B7
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Af3zn6gR4B8218SQ3pU5B7
Owner
Author
|
Esiti sull'ultimo commit
|
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.
I18N L2 — infrastruttura dei testi in più lingue + area campione
Nessun cambiamento per l'utente italiano. Rilettura Opus prima del merge (tocca build, service worker e CI).
Cosa c'è
i18n/it.json= fonte unica dell'italiano;i18n/en.jsonpubblicato così com'è, caricato a richiesta;i18n/lingue.json(lingue e se sono «complete»);i18n/cricchetto.json.src/i18n.js:t()(interfaccia),td()(documento, seguedocLingua()), plurali_one/_otherconIntl.PluralRules, segnaposto{n}, pseudo-lingua (?lang=xx: testi +35 %, accenti),?lang=en. Nessuna libreria. In italiano non succede niente all'avvio.⟦chiave⟧al posto del testo (anche intitle/aria-label/placeholder/alt);build.mjsmette l'italiano di it.json e segna l'elemento (data-t…). Dentroapp.jsfiniscono solo le chiavi usate da JS.scripts/i18n-build.mjs(libreria),scripts/i18n-estrai.mjs(estrae i testi di un intervallo di righe in chiavi, byte per byte reversibile: da riusare in L3).sw.js:/i18n/en.jsonnel precache e rete-prima come la shell.pages.yml:i18n/nella cartella pubblica (esclusi it/lingue/cricchetto). Nuovo passo «Test dei testi dell'interfaccia» inpages.ymlepr-controlli.yml.test/i18n.test.mjs(17 test, 9 mutazioni rosse): chiavi usate esistono, nessuna orfana, segnaposto e plurali coerenti, lingue complete, runtime in un vm, build (errori chiari), cricchetto.Come provarlo
?lang=en(inglese),?lang=xx(pseudo-lingua) su/app/. Nessun selettore visibile (L4).Controlli (sull'ultimo commit)
Vedi commento sotto con gli esiti veri. Shell italiana identica a
origin/mainbyte per byte tolti idata-t; DOM a runtime identico a main in Chromium (desktop e 390 px).Da decidere (segnato [DA CONFERMARE])
blocca:false(solo informativo: html 1271 / js 5510). Conblocca:trueun testo italiano nuovo fuori dal catalogo fa fallire il test: lo accende la regia quando le altre sessioni sono avvisate.en.jsonper tutti (4,8 KB gz): da L4 solo la lingua dell'utente.td()definito e testato ma non ancora usato dai PDF (L3).🤖 Generated with Claude Code
https://claude.ai/code/session_01Af3zn6gR4B8218SQ3pU5B7