From 31ac56004ad7c7b52dbf7126da5d8d7f67b78b36 Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Thu, 20 Mar 2025 20:15:26 +0100 Subject: [PATCH] refactor: use language code with country for messages --- crowdin.yml | 2 +- frontend/messages/{en.json => en-US.json} | 0 frontend/messages/{nl.json => nl-NL.json} | 0 frontend/project.inlang/settings.json | 4 ++-- frontend/src/routes/settings/account/locale-picker.svelte | 4 ++-- 5 files changed, 5 insertions(+), 5 deletions(-) rename frontend/messages/{en.json => en-US.json} (100%) rename frontend/messages/{nl.json => nl-NL.json} (100%) diff --git a/crowdin.yml b/crowdin.yml index 2ad7eb35..2473bf6b 100644 --- a/crowdin.yml +++ b/crowdin.yml @@ -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' diff --git a/frontend/messages/en.json b/frontend/messages/en-US.json similarity index 100% rename from frontend/messages/en.json rename to frontend/messages/en-US.json diff --git a/frontend/messages/nl.json b/frontend/messages/nl-NL.json similarity index 100% rename from frontend/messages/nl.json rename to frontend/messages/nl-NL.json diff --git a/frontend/project.inlang/settings.json b/frontend/project.inlang/settings.json index bf60cc91..e9026661 100644 --- a/frontend/project.inlang/settings.json +++ b/frontend/project.inlang/settings.json @@ -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", diff --git a/frontend/src/routes/settings/account/locale-picker.svelte b/frontend/src/routes/settings/account/locale-picker.svelte index 6cc46452..eea9285e 100644 --- a/frontend/src/routes/settings/account/locale-picker.svelte +++ b/frontend/src/routes/settings/account/locale-picker.svelte @@ -8,8 +8,8 @@ const currentLocale = getLocale(); const locales = { - en: 'English', - nl: 'Nederlands' + 'en-US': 'English', + 'nl-NL': 'Nederlands' }; function updateLocale(locale: Locale) {