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

Open
#384 0 comments 0 reactions 0 assignees View on GitHub

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

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

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

Dominant language
C++
Stars
2
Forks
1
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ibra-kdbra/Math-Problems

All issues in ibra-kdbra/Math-Problems

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.