[Docs] Make the custom site i18n-ready (string catalog, locale routing, logical CSS)
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- css, typescript
- Domain
- documentation, internationalization
Research direction
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.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- C++
- Stars
- 2
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ibra-kdbra/Math-Problems
-
area: security-algorithms priority: P1 size: XS type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
ibra-kdbra/Math-Problems#417 ·
-
area: math-chaos priority: P3 size: S type: enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ibra-kdbra/Math-Problems#397 ·
-
area: docs-site good first issue priority: P3 size: XS type: chore
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
ibra-kdbra/Math-Problems#379 ·
-
area: docs-site good first issue priority: P3 size: XS type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
ibra-kdbra/Math-Problems#378 ·
-
area: docs-site good first issue priority: P2 size: XS type: chore
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ibra-kdbra/Math-Problems#367 ·
All issues in ibra-kdbra/Math-Problems
Similar issues
-
c++ easy first-contributor first-contributors good first issue help wanted up-for-grabs
Difficulty 1/5 1-3 hours Newbie friendliness 94/100
fork-commit-merge/fork-commit-merge#8709 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
-
Type: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
bug data-types
Difficulty 2/5 1-3 hours Newbie friendliness 71/100
ClickHouse/clickhouse-odbc#680 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
ionut-mihalache/aqua#31 · 1 comment ·