feat(i18n): add i18n module for localization support

- Introduce functions to initialize and load locale files dynamically
- Add support for translation keys with placeholder replacements
- Default to English if locale files are missing or not found
- Determine system language using environment variables
This commit is contained in:
2025-05-28 18:09:04 +02:00
parent dfa92d8069
commit c9b4c8bd71
2 changed files with 75 additions and 0 deletions

1
src/i18n/mod.ts Normal file
View File

@@ -0,0 +1 @@
export { getCurrentLanguage, initI18n, loadLocale, t } from './i18n.ts';