mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-06 13:22:57 +03:00
refactor: use language code with country for messages
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
const currentLocale = getLocale();
|
||||
|
||||
const locales = {
|
||||
en: 'English',
|
||||
nl: 'Nederlands'
|
||||
'en-US': 'English',
|
||||
'nl-NL': 'Nederlands'
|
||||
};
|
||||
|
||||
function updateLocale(locale: Locale) {
|
||||
|
||||
Reference in New Issue
Block a user