Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Add danish language to all apps (#1677)

Leendert de Borst5589ca66e616
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 @@
<?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" />
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 @@
<string>6.0</string>
<key>CFBundleLocalizations</key>
<array>
+ <string>da</string>
<string>de</string>
<string>en</string>
<string>es</string>
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 @@
<dict>
<key>CFBundleLocalizations</key>
<array>
+ <string>da</string>
<string>de</string>
<string>en</string>
<string>es</string>
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(
/// </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", "๐Ÿ‡ช๐Ÿ‡ธ"),
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
---