mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-05-09 15:56:11 -04:00
Add danish language to all apps (#1677)
This commit is contained in:
committed by
Leendert de Borst
parent
62bd49b250
commit
5589ca66e6
@@ -3,6 +3,7 @@
|
||||
* Add new languages here to make them available throughout the application
|
||||
*/
|
||||
|
||||
import daTranslations from './locales/da.json';
|
||||
import deTranslations from './locales/de.json';
|
||||
import enTranslations from './locales/en.json';
|
||||
import esTranslations from './locales/es.json';
|
||||
@@ -24,6 +25,9 @@ import zhTranslations from './locales/zh.json';
|
||||
* When adding a new language, add the translation JSON file to the locales folder and add the language to the map here.
|
||||
*/
|
||||
export const LANGUAGE_RESOURCES = {
|
||||
da: {
|
||||
translation: daTranslations
|
||||
},
|
||||
de: {
|
||||
translation: deTranslations
|
||||
},
|
||||
@@ -76,6 +80,12 @@ export const LANGUAGE_RESOURCES = {
|
||||
* When adding a new language, add the language to the map here.
|
||||
*/
|
||||
export const AVAILABLE_LANGUAGES: ILanguageConfig[] = [
|
||||
{
|
||||
code: 'da',
|
||||
name: 'Danish',
|
||||
nativeName: 'Dansk',
|
||||
flag: '🇩🇰'
|
||||
},
|
||||
{
|
||||
code: 'de',
|
||||
name: 'German',
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<locale-config xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<locale android:name="da" />
|
||||
<locale android:name="de" />
|
||||
<locale android:name="en" />
|
||||
<locale android:name="es" />
|
||||
|
||||
@@ -2,6 +2,7 @@ import { getLocales } from 'expo-localization';
|
||||
import i18n from 'i18next';
|
||||
import { initReactI18next } from 'react-i18next';
|
||||
|
||||
import da from './locales/da.json';
|
||||
import de from './locales/de.json';
|
||||
import en from './locales/en.json';
|
||||
import es from './locales/es.json';
|
||||
@@ -19,6 +20,7 @@ import uk from './locales/uk.json';
|
||||
import zh from './locales/zh.json';
|
||||
|
||||
const resources = {
|
||||
da: { translation: da },
|
||||
de: { translation: de },
|
||||
en: { translation: en },
|
||||
es: { translation: es },
|
||||
|
||||
@@ -904,6 +904,7 @@
|
||||
hasScannedForEncodings = 0;
|
||||
knownRegions = (
|
||||
Base,
|
||||
da,
|
||||
de,
|
||||
en,
|
||||
fi,
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
<string>6.0</string>
|
||||
<key>CFBundleLocalizations</key>
|
||||
<array>
|
||||
<string>da</string>
|
||||
<string>de</string>
|
||||
<string>en</string>
|
||||
<string>es</string>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
<dict>
|
||||
<key>CFBundleLocalizations</key>
|
||||
<array>
|
||||
<string>da</string>
|
||||
<string>de</string>
|
||||
<string>en</string>
|
||||
<string>es</string>
|
||||
|
||||
@@ -28,6 +28,7 @@ public class LanguageService(
|
||||
/// </summary>
|
||||
private static readonly List<LanguageConfig> SupportedLanguages = new()
|
||||
{
|
||||
new LanguageConfig("da", "Dansk", "🇩🇰"),
|
||||
new LanguageConfig("de", "Deutsch", "🇩🇪"),
|
||||
new LanguageConfig("en", "English", "🇺🇸"),
|
||||
new LanguageConfig("es", "Español", "🇪🇸"),
|
||||
|
||||
@@ -12,6 +12,7 @@ Help make AliasVault accessible to users worldwide by translating the user inter
|
||||
AliasVault is currently available in the following languages. See how complete each language is on the [Crowdin project page](https://crowdin.com/project/aliasvault). **Don't see your language?** Contact us and we'll add it so you can get started translating.
|
||||
|
||||
- 🇨🇳 Chinese (Simplified)
|
||||
- 🇩🇰 Danish
|
||||
- 🇳🇱 Dutch
|
||||
- 🇬🇧 English
|
||||
- 🇫🇮 Finnish
|
||||
@@ -24,6 +25,7 @@ AliasVault is currently available in the following languages. See how complete e
|
||||
- 🇷🇴 Romanian
|
||||
- 🇷🇺 Russian
|
||||
- 🇪🇸 Spanish
|
||||
- 🇸🇪 Swedish
|
||||
- 🇺🇦 Ukrainian
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user