mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-08-02 10:18:41 -04:00
Add Hungarian language option (#2247)
This commit is contained in:
committed by
Leendert de Borst
parent
0ef0a20a54
commit
7732016ef2
@@ -13,6 +13,7 @@ import fiTranslations from './locales/fi.json';
|
||||
import frTranslations from './locales/fr.json';
|
||||
import gaTranslations from './locales/ga.json';
|
||||
import heTranslations from './locales/he.json';
|
||||
import huTranslations from './locales/hu.json';
|
||||
import itTranslations from './locales/it.json';
|
||||
import nlTranslations from './locales/nl.json';
|
||||
import plTranslations from './locales/pl.json';
|
||||
@@ -52,6 +53,9 @@ export const LANGUAGE_RESOURCES = {
|
||||
he: {
|
||||
translation: heTranslations
|
||||
},
|
||||
hu: {
|
||||
translation: huTranslations
|
||||
},
|
||||
it: {
|
||||
translation: itTranslations
|
||||
},
|
||||
|
||||
@@ -30,7 +30,8 @@ var LANGUAGES = [
|
||||
{ code: "uk", flag: "\u{1F1FA}\u{1F1E6}", label: "\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430", alternativeCodes: ["uk-UA"] },
|
||||
{ code: "zh", flag: "\u{1F1E8}\u{1F1F3}", label: "\u7B80\u4F53\u4E2D\u6587", alternativeCodes: ["zh-CN", "zh-SG", "zh-Hans", "zh-TW", "zh-HK", "zh-MO", "zh-Hant"] },
|
||||
{ code: "ur", flag: "\u{1F1F5}\u{1F1F0}", label: "\u0627\u0631\u062F\u0648", alternativeCodes: ["ur-PK", "ur-IN"] },
|
||||
{ code: "fa", flag: "\u{1F1EE}\u{1F1F7}", label: "\u0641\u0627\u0631\u0633\u06CC", alternativeCodes: ["fa-IR", "fa-AF"] }
|
||||
{ code: "fa", flag: "\u{1F1EE}\u{1F1F7}", label: "\u0641\u0627\u0631\u0633\u06CC", alternativeCodes: ["fa-IR", "fa-AF"] },
|
||||
{ code: "hu", flag: "\u{1F1ED}\u{1F1FA}", label: "Magyar", alternativeCodes: ["hu-HU"] },
|
||||
{ code: "ga", flag: "\u{1F1EE}\u{1F1EA}", label: "Gaeilge", alternativeCodes: ["ga-IE"] }
|
||||
];
|
||||
function normalizeLanguageCode(code) {
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
<locale android:name="fr" />
|
||||
<locale android:name="ga" />
|
||||
<locale android:name="he" />
|
||||
<locale android:name="hu" />
|
||||
<locale android:name="it" />
|
||||
<locale android:name="nl" />
|
||||
<locale android:name="pl" />
|
||||
|
||||
@@ -10,6 +10,7 @@ import fi from './locales/fi.json';
|
||||
import fr from './locales/fr.json';
|
||||
import ga from './locales/ga.json';
|
||||
import he from './locales/he.json';
|
||||
import hu from './locales/hu.json';
|
||||
import it from './locales/it.json';
|
||||
import nl from './locales/nl.json';
|
||||
import pl from './locales/pl.json';
|
||||
@@ -29,6 +30,7 @@ const resources = {
|
||||
fr: { translation: fr },
|
||||
ga: { translation: ga },
|
||||
he: { translation: he },
|
||||
hu: { translation: hu },
|
||||
nl: { translation: nl },
|
||||
it: { translation: it },
|
||||
pl: { translation: pl },
|
||||
|
||||
@@ -996,6 +996,7 @@
|
||||
fa,
|
||||
ur,
|
||||
bg,
|
||||
hu,
|
||||
ga,
|
||||
);
|
||||
mainGroup = 83CBB9F61A601CBA00E9B192;
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
<string>fr</string>
|
||||
<string>ga</string>
|
||||
<string>he</string>
|
||||
<string>hu</string>
|
||||
<string>it</string>
|
||||
<string>nl</string>
|
||||
<string>pl</string>
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
<string>fr</string>
|
||||
<string>ga</string>
|
||||
<string>he</string>
|
||||
<string>hu</string>
|
||||
<string>it</string>
|
||||
<string>nl</string>
|
||||
<string>pl</string>
|
||||
|
||||
@@ -30,7 +30,8 @@ var LANGUAGES = [
|
||||
{ code: "uk", flag: "\u{1F1FA}\u{1F1E6}", label: "\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430", alternativeCodes: ["uk-UA"] },
|
||||
{ code: "zh", flag: "\u{1F1E8}\u{1F1F3}", label: "\u7B80\u4F53\u4E2D\u6587", alternativeCodes: ["zh-CN", "zh-SG", "zh-Hans", "zh-TW", "zh-HK", "zh-MO", "zh-Hant"] },
|
||||
{ code: "ur", flag: "\u{1F1F5}\u{1F1F0}", label: "\u0627\u0631\u062F\u0648", alternativeCodes: ["ur-PK", "ur-IN"] },
|
||||
{ code: "fa", flag: "\u{1F1EE}\u{1F1F7}", label: "\u0641\u0627\u0631\u0633\u06CC", alternativeCodes: ["fa-IR", "fa-AF"] }
|
||||
{ code: "fa", flag: "\u{1F1EE}\u{1F1F7}", label: "\u0641\u0627\u0631\u0633\u06CC", alternativeCodes: ["fa-IR", "fa-AF"] },
|
||||
{ code: "hu", flag: "\u{1F1ED}\u{1F1FA}", label: "Magyar", alternativeCodes: ["hu-HU"] },
|
||||
{ code: "ga", flag: "\u{1F1EE}\u{1F1EA}", label: "Gaeilge", alternativeCodes: ["ga-IE"] }
|
||||
];
|
||||
function normalizeLanguageCode(code) {
|
||||
|
||||
@@ -42,6 +42,7 @@ public static class Languages
|
||||
("zh", "🇨🇳", "简体中文", ["zh-CN", "zh-SG", "zh-Hans", "zh-TW", "zh-HK", "zh-MO", "zh-Hant"]),
|
||||
("ur", "🇵🇰", "اردو", ["ur-PK", "ur-IN"]),
|
||||
("fa", "🇮🇷", "فارسی", ["fa-IR", "fa-AF"]),
|
||||
("hu", "🇭🇺", "Magyar", ["hu-HU"]),
|
||||
("ga", "🇮🇪", "Gaeilge", ["ga-IE"]),
|
||||
];
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ public class LanguageService(
|
||||
/// </summary>
|
||||
private static readonly List<string> SupportedLanguageCodes = new()
|
||||
{
|
||||
"da", "de", "en", "es", "fi", "fr", "ga", "he", "it", "nl", "pl", "pt", "ro", "ru", "sv", "uk", "zh",
|
||||
"da", "de", "en", "es", "fi", "fr", "ga", "he", "hu", "it", "nl", "pl", "pt", "ro", "ru", "sv", "uk", "zh",
|
||||
};
|
||||
|
||||
private readonly ILocalStorageService _localStorage = localStorage;
|
||||
|
||||
@@ -43,6 +43,7 @@ export const LANGUAGES: ILanguageInfo[] = [
|
||||
{ code: 'zh', flag: '🇨🇳', label: '简体中文', alternativeCodes: ['zh-CN', 'zh-SG', 'zh-Hans', 'zh-TW', 'zh-HK', 'zh-MO', 'zh-Hant'] },
|
||||
{ code: 'ur', flag: '🇵🇰', label: 'اردو', alternativeCodes: ['ur-PK', 'ur-IN'] },
|
||||
{ code: 'fa', flag: '🇮🇷', label: 'فارسی', alternativeCodes: ['fa-IR', 'fa-AF'] },
|
||||
{ code: 'hu', flag: '🇭🇺', label: 'Magyar', alternativeCodes: ['hu-HU'] },
|
||||
{ code: 'ga', flag: '🇮🇪', label: 'Gaeilge', alternativeCodes: ['ga-IE'] },
|
||||
];
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@ languages:
|
||||
- zh
|
||||
- ja
|
||||
- ko
|
||||
- hu
|
||||
- ga
|
||||
base_path: ./
|
||||
preserve_hierarchy: 1
|
||||
|
||||
@@ -16,6 +16,7 @@ AliasVault is currently available in the following languages. See how complete e
|
||||
- 🇫🇷 French
|
||||
- 🇩🇪 German
|
||||
- 🇮🇱 Hebrew
|
||||
- 🇭🇺 Hungarian
|
||||
- 🇮🇪 Irish
|
||||
- 🇮🇹 Italian
|
||||
- 🇵🇱 Polish
|
||||
|
||||
Reference in New Issue
Block a user