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:
|
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'
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user