first commit

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
michilis
2026-08-20 22:41:25 +02:00
co-authored by Cursor
commit aa1771ea20
136 changed files with 27069 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
/**
* The locale codes, as plain JavaScript.
*
* `config.ts` is the real table and everything the site renders reads from it. This
* exists because two things run before TypeScript does: `astro.config.mjs`, which needs
* the codes to build the i18n config, and the build-time checker. Keeping it to the
* bare codes means the duplication is two short arrays that cannot drift far, and
* `scripts/check-i18n.mjs` compares the two on every build so they cannot drift at all.
*
* Adding a language: add the code here and the full entry in `config.ts`.
*/
export const DEFAULT_LOCALE = 'en';
export const LOCALE_CODES = ['en', 'es', 'nl'];