refactor: use language code with country for messages

This commit is contained in:
Elias Schneider
2025-03-20 20:15:26 +01:00
parent d59ec01b33
commit 31ac56004a
5 changed files with 5 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
files: files:
- source: /frontend/messages/en.json - source: /frontend/messages/en-US.json
translation: /%original_path%/%locale%.json translation: /%original_path%/%locale%.json
pull_request_title: 'chore(translations): update translations via Crowdin' pull_request_title: 'chore(translations): update translations via Crowdin'

View File

@@ -2,8 +2,8 @@
"$schema": "https://inlang.com/schema/project-settings", "$schema": "https://inlang.com/schema/project-settings",
"baseLocale": "en", "baseLocale": "en",
"locales": [ "locales": [
"en", "en-US",
"nl" "nl-NL"
], ],
"modules": [ "modules": [
"https://cdn.jsdelivr.net/npm/@inlang/plugin-message-format@4/dist/index.js", "https://cdn.jsdelivr.net/npm/@inlang/plugin-message-format@4/dist/index.js",

View File

@@ -8,8 +8,8 @@
const currentLocale = getLocale(); const currentLocale = getLocale();
const locales = { const locales = {
en: 'English', 'en-US': 'English',
nl: 'Nederlands' 'nl-NL': 'Nederlands'
}; };
function updateLocale(locale: Locale) { function updateLocale(locale: Locale) {