[Docs] Make the custom site i18n-ready (string catalog, locale routing, logical CSS)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- css, typescript
- Ambito
- documentation, internationalization
Direzione di ricerca
Start with docs/src/components/Header.astro, docs/astro.config.mjs, and docs/src/components/JourneyRoadmap.astro; also inspect ThemeToggle.astro for the hard-coded label cited in the issue. Read Astro’s existing i18n setup and map how UI strings, content collections, and page metadata are handled. Done means a stub Arabic locale builds and renders one page RTL, with UI strings and locale alternatives handled as described in the acceptance criteria.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
UI strings ('Support', 'GitHub', 'Toggle theme', 'On this page', stage names) are hard-coded in components and config. Starlight currently provides UI translations; the replacement should keep the door open for translations, including right-to-left scripts.
Location
docs/src/components/Header.astro:47-77docs/astro.config.mjs:24-59docs/src/components/JourneyRoadmap.astro
Evidence
Hard-coded strings: Header.astro ('Support', 'GitHub'), ThemeToggle.astro ('Toggle theme'), stage labels in astro.config.mjs. CSS uses physical properties (margin-left, pl-8, -left-[17px] in JourneyRoadmap).
Expected
Adding a locale requires only translation files and content, no component changes.
Proposed fix
Use Astro's built-in i18n routing (defaultLocale: 'en', prefixDefaultLocale: false); move UI strings to src/i18n/ui.ts with a typed t() helper; content collection keyed by locale with fallback to en; lang/dir on <html>; switch to logical CSS properties (ms-, ps-, inset-inline-start); hreflang alternates in the head.
Acceptance criteria
- No user-visible UI string literal in components (lint rule or test)
- A stub
arlocale builds and renders RTL correctly for one page
Repository audit, November 2026 · Phase 7 · Docs platform · evidence: found by code reading · ref platform-034
Generated by Claude Code
- Lingua principale
- C++
- Stelle
- 2
- Fork
- 1
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ibra-kdbra/Math-Problems
-
area: security-algorithms priority: P1 size: XS type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
ibra-kdbra/Math-Problems#417 ·
-
area: math-chaos priority: P3 size: S type: enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
ibra-kdbra/Math-Problems#397 ·
-
area: docs-site good first issue priority: P3 size: XS type: chore
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
ibra-kdbra/Math-Problems#379 ·
-
area: docs-site good first issue priority: P3 size: XS type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
ibra-kdbra/Math-Problems#378 ·
-
area: docs-site good first issue priority: P2 size: XS type: chore
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
ibra-kdbra/Math-Problems#367 ·
Tutte le issue di ibra-kdbra/Math-Problems
Issue simili
-
TransformInteract: a circle drag through the centre sets Scale to its minimum, which can't grow backApertadifficulty:easy prio:low type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
NatronGitHub/openfx-supportext#311 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
CachyOS/packageinstaller#211 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
OpenEmu-Silicon/OpenEmu-Silicon#920 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100