From 5589ca66e616ef833d5c1fd38f33f69c0f9e4e39 Mon Sep 17 00:00:00 2001 From: Leendert de Borst Date: Wed, 11 Feb 2026 21:51:52 +0100 Subject: [PATCH] Add danish language to all apps (#1677) --- apps/browser-extension/src/i18n/config.ts | 10 ++++++++++ .../android/app/src/main/res/xml/locales_config.xml | 1 + apps/mobile-app/i18n/index.ts | 2 ++ .../ios/AliasVault.xcodeproj/project.pbxproj | 1 + apps/mobile-app/ios/AliasVault/Info.plist | 1 + apps/mobile-app/ios/Autofill/Info.plist | 1 + .../AliasVault.Client/Services/LanguageService.cs | 1 + docs/contributing/ui-translations.md | 2 ++ 8 files changed, 19 insertions(+) diff --git a/apps/browser-extension/src/i18n/config.ts b/apps/browser-extension/src/i18n/config.ts index 3299a63d9..831a80135 100644 --- a/apps/browser-extension/src/i18n/config.ts +++ b/apps/browser-extension/src/i18n/config.ts @@ -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', diff --git a/apps/mobile-app/android/app/src/main/res/xml/locales_config.xml b/apps/mobile-app/android/app/src/main/res/xml/locales_config.xml index c0e7d398e..bf5ed5ddf 100644 --- a/apps/mobile-app/android/app/src/main/res/xml/locales_config.xml +++ b/apps/mobile-app/android/app/src/main/res/xml/locales_config.xml @@ -1,5 +1,6 @@ + diff --git a/apps/mobile-app/i18n/index.ts b/apps/mobile-app/i18n/index.ts index 82e587154..fbfec50f2 100644 --- a/apps/mobile-app/i18n/index.ts +++ b/apps/mobile-app/i18n/index.ts @@ -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 }, diff --git a/apps/mobile-app/ios/AliasVault.xcodeproj/project.pbxproj b/apps/mobile-app/ios/AliasVault.xcodeproj/project.pbxproj index 78ec8025a..91454e60d 100644 --- a/apps/mobile-app/ios/AliasVault.xcodeproj/project.pbxproj +++ b/apps/mobile-app/ios/AliasVault.xcodeproj/project.pbxproj @@ -904,6 +904,7 @@ hasScannedForEncodings = 0; knownRegions = ( Base, + da, de, en, fi, diff --git a/apps/mobile-app/ios/AliasVault/Info.plist b/apps/mobile-app/ios/AliasVault/Info.plist index bff41fbf2..f505da15a 100644 --- a/apps/mobile-app/ios/AliasVault/Info.plist +++ b/apps/mobile-app/ios/AliasVault/Info.plist @@ -21,6 +21,7 @@ 6.0 CFBundleLocalizations + da de en es diff --git a/apps/mobile-app/ios/Autofill/Info.plist b/apps/mobile-app/ios/Autofill/Info.plist index 2918d620e..138cd0a3a 100644 --- a/apps/mobile-app/ios/Autofill/Info.plist +++ b/apps/mobile-app/ios/Autofill/Info.plist @@ -4,6 +4,7 @@ CFBundleLocalizations + da de en es diff --git a/apps/server/AliasVault.Client/Services/LanguageService.cs b/apps/server/AliasVault.Client/Services/LanguageService.cs index 75d56d770..6da95bba8 100644 --- a/apps/server/AliasVault.Client/Services/LanguageService.cs +++ b/apps/server/AliasVault.Client/Services/LanguageService.cs @@ -28,6 +28,7 @@ public class LanguageService( /// private static readonly List SupportedLanguages = new() { + new LanguageConfig("da", "Dansk", "🇩🇰"), new LanguageConfig("de", "Deutsch", "🇩🇪"), new LanguageConfig("en", "English", "🇺🇸"), new LanguageConfig("es", "Español", "🇪🇸"), diff --git a/docs/contributing/ui-translations.md b/docs/contributing/ui-translations.md index cafb6af39..623b2fbc6 100644 --- a/docs/contributing/ui-translations.md +++ b/docs/contributing/ui-translations.md @@ -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 ---