i18n: Onepager automatisch deutsch/englisch je nach Browser-Sprache #1
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ziel
Alle Onepager-Sites sollen je nach Browser-Sprache (
navigator.language) auf Deutsch oder Englisch angezeigt werden.Ansatz
lang-Attribut oderdata-langScope
Nicht
Shift 1 checkpoint (knuth)
Branch:
mai/knuth/i18n-pilot-develop(commitb9191b3)Done
Created
shared/i18n.js— reusable client-side i18n for all onepager sites:navigator.languagedetection, German default/fallbackdata-de/data-enattributes on translatable elementslocalStoragepreference persistencedata-i18n-toggle)<title>,<meta>, and regular elementswindow.onepagerI18nAPIPiloted on
ichbinotto.de— all visible text translated:Next steps
render.sh) for templated sitesi18n Rollout — Shift 1 Complete
Branch:
mai/knuth/i18n-rollout-apply-de-enPhase 1 — Template Infrastructure
render.sh: reads_enfields fromsite.yaml, emitsdata-de/data-enattributesbase.html: auto-includesi18n.js, title/description get i18n attrsPhase 2 — Custom Sites
data-de/data-eni18n.js+ language toggle + disclaimer in every siteNext