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:
- source: /frontend/messages/en.json
- source: /frontend/messages/en-US.json
translation: /%original_path%/%locale%.json
pull_request_title: 'chore(translations): update translations via Crowdin'

View File

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

View File

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