docs: add full Norwegian Bokmål (nb) locale support#357
Merged
Conversation
Deploying archgate-cli with
|
| Latest commit: |
f09d8d6
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://f5db856f.archgate-cli.pages.dev |
| Branch Preview URL: | https://claude-laughing-rubin-038275.archgate-cli.pages.dev |
Add Norwegian Bokmål as a third locale alongside English and pt-BR, covering all 56 documentation pages with translated content. Infrastructure changes: - Register nb locale in astro.config.mjs with sidebar group translations - Refactor HeadSEO.astro hreflang logic from hardcoded en/pt-BR to config-driven multi-locale array - Update generate-llms-full.ts to exclude nb/ from English-only output - Add og:locale:alternate for nb_NO and update JSON-LD inLanguage Governance updates: - Add "nb" to LOCALES in GEN-002-docs-i18n.rules.ts - Update GEN-002 ADR with Norwegian locale entry and Bokmål-specific translation guidelines Content: 56 new .mdx files under docs/src/content/docs/nb/ mirroring the full English site structure (getting-started, concepts, guides, reference, examples, studies). Signed-off-by: Rhuan Barreto <rhuan@barreto.work>
6d86af3 to
f09d8d6
Compare
Contributor
Code Coverage
Full HTML report available in workflow artifacts. Per-directory breakdown
|
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
Changes
Infrastructure (5 files modified)
docs/astro.config.mjs— Registernblocale, add sidebar group translations for all 7 sections (both pt-BR and nb), addog:locale:alternatefornb_NO, update JSON-LDinLanguageto include"nb"docs/src/components/HeadSEO.astro— Refactor hardcoded en/pt-BR hreflang logic to a config-driven multi-locale array, making future locale additions trivialdocs/scripts/generate-llms-full.ts— Excludenb/directory from English-onlyllms-full.txtoutput using path separator-aware filtering.archgate/adrs/GEN-002-docs-i18n.rules.ts— Add"nb"toLOCALESconstant for automated i18n parity checks.archgate/adrs/GEN-002-docs-i18n.md— Add Norwegian Bokmål to the configured locales table, add Bokmål-specific translation Do's, update consequences for 3-locale contextContent (56 new files)
All pages under
docs/src/content/docs/nb/mirroring the English site:Translation conventions
nb.jsonUI translations used (no custom i18n file needed)Test plan
bun run buildindocs/— 169 pages built, 0 errorsbun run validate— lint, typecheck, format, tests all pass; 27/27 ADR rules passen,pt-BR,nb,x-defaultall present/nb/pagesllms-full.txtcontains no Norwegian contentinLanguageincludes"nb",og:locale:alternateincludesnb_NOno-locale-prefix-in-linksrule passes)i18n-page-parityrule passes)