rename translations to match locale names

This commit is contained in:
Maxi Quoß
2025-03-31 20:59:43 +02:00
parent 12099d060f
commit bf51b389c2
14 changed files with 27 additions and 14 deletions

View File

@@ -139,8 +139,8 @@ UpSnap is available in the following languages so far:
- 🇳🇱 **Dutch** (nl-NL)
- 🇵🇱 **Polish** (pl-PL)
- 🇵🇹 **Portuguese** (pt-PT)
- 🇨🇳 **Chinese** (zh-CN)
- 🇹🇼 **Chinese (Taiwan)** (zh-TW)
- 🇨🇳 **Chinese** (zh-CN)
**If you want to contribute and help translating, check the wiki: [How to add languages](https://github.com/seriousm4x/UpSnap/wiki/How-to-add-languages)**

View File

@@ -1,7 +1,20 @@
{
"$schema": "https://inlang.com/schema/project-settings",
"baseLocale": "en",
"locales": ["de", "en", "es", "fr", "id", "it", "ja", "nl", "pl", "pt", "zh-TW", "zh"],
"baseLocale": "en-US",
"locales": [
"de-DE",
"en-US",
"es-ES",
"fr-FR",
"id-ID",
"it-IT",
"ja-JP",
"nl-NL",
"pl-PL",
"pt-PT",
"zh-TW",
"zh-CN"
],
"modules": [
"https://cdn.jsdelivr.net/npm/@inlang/plugin-message-format@4/dist/index.js",
"https://cdn.jsdelivr.net/npm/@inlang/plugin-m-function-matcher@2/dist/index.js"

View File

@@ -16,18 +16,18 @@
// locales
const languageEmojis = {
en: '🇺🇸',
de: '🇩🇪',
es: '🇪🇸',
fr: '🇫🇷',
id: '🇮🇩',
it: '🇮🇹',
ja: '🇯🇵',
nl: '🇳🇱',
pl: '🇵🇱',
pt: '🇵🇹',
'de-DE': '🇩🇪',
'en-US': '🇺🇸',
'es-ES': '🇪🇸',
'fr-FR': '🇫🇷',
'id-ID': '🇮🇩',
'it-IT': '🇮🇹',
'ja-JP': '🇯🇵',
'nl-NL': '🇳🇱',
'pl-PL': '🇵🇱',
'pt-PT': '🇵🇹',
'zh-TW': '🇹🇼',
zh: '🇨🇳'
'zh-CN': '🇨🇳'
};
// password change