[Docs] Make the custom site i18n-ready (string catalog, locale routing, logical CSS)

Aperta
#384 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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

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

area: docs-site priority: P3 size: M type: enhancement

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-77
  • docs/astro.config.mjs:24-59
  • docs/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 ar locale 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

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ibra-kdbra/Math-Problems

Tutte le issue di ibra-kdbra/Math-Problems

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.