You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update README with current architecture and i18n info
- Update snippet count badge from 107 to 112
- Add translations and i18n section to architecture
- Fix generator description (JBang script, not fat JAR)
- Add link to i18n spec
- List all 9 supported languages
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@@ -42,14 +42,19 @@ Each comparison includes an explanation of *why* the modern approach is better,
42
42
43
43
## Architecture
44
44
45
-
This site uses a **JSON-first** build pipeline:
45
+
This site uses a **JSON/YAML-first** build pipeline:
46
46
47
-
-**Source of truth**: Individual `content/category/slug.json` files (107 across 11 category folders)
48
-
-**Templates**: `templates/` — shared HTML templates with `{{placeholder}}` tokens
49
-
-**Generator**: `html-generators/generate.jar` — pre-built fat JAR that produces all HTML detail pages and `data/snippets.json`
47
+
-**Source of truth**: Individual `content/category/slug.json` files (112 patterns across 11 category folders)
48
+
-**Templates**: `templates/` — shared HTML templates with `{{placeholder}}` tokens for content and UI strings
49
+
-**Generator**: `html-generators/generate.java` — JBang script that produces all HTML pages, localized variants, and `data/snippets.json`
50
+
-**Translations**: `translations/strings/{locale}.yaml` for UI strings, `translations/content/{locale}/` for pattern content (YAML)
50
51
-**Deploy**: GitHub Actions runs the generator and deploys to GitHub Pages
51
52
52
-
Generated files (`site/category/*.html` and `site/data/snippets.json`) are in `.gitignore` — never edit them directly.
53
+
Generated files (`site/category/*.html`, `site/{locale}/`, and `site/data/snippets.json`) are in `.gitignore` — never edit them directly.
54
+
55
+
### Internationalization
56
+
57
+
The site supports 9 languages: English, Deutsch, Español, Português (Brasil), 中文 (简体), العربية, Français, 日本語, and 한국어. See [`specs/i18n/i18n-spec.md`](specs/i18n/i18n-spec.md) for the full specification.
0 commit comments