From 3c5029068e8d90d792097e6a9c7fabc162435b93 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Wed, 19 Nov 2025 08:13:43 +0100 Subject: [PATCH] feat: add bulgarian --- frontend/src/components/settings/Languages.vue | 13 +++++++------ frontend/src/i18n/index.ts | 9 +++++++-- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/frontend/src/components/settings/Languages.vue b/frontend/src/components/settings/Languages.vue index f4e4090e..72968511 100644 --- a/frontend/src/components/settings/Languages.vue +++ b/frontend/src/components/settings/Languages.vue @@ -15,10 +15,8 @@ export default { data() { const dataObj = {}; const locales = { - he: "עברית", - hr: "Hrvatski", - hu: "Magyar", ar: "العربية", + bg: "български език", ca: "Català", cs: "Čeština", de: "Deutsch", @@ -26,15 +24,18 @@ export default { en: "English", es: "Español", fr: "Français", + he: "עברית", + hr: "Hrvatski", + hu: "Magyar", is: "Icelandic", it: "Italiano", ja: "日本語", ko: "한국어", - "nl-be": "Dutch (Belgium)", no: "Norsk", + "nl-be": "Dutch (Belgium)", pl: "Polski", - "pt-br": "Português", - pt: "Português (Brasil)", + "pt-br": "Português (Brasil)", + pt: "Português (Portugal)", ro: "Romanian", ru: "Русский", sk: "Slovenčina", diff --git a/frontend/src/i18n/index.ts b/frontend/src/i18n/index.ts index a276ee9d..d576d183 100644 --- a/frontend/src/i18n/index.ts +++ b/frontend/src/i18n/index.ts @@ -2,6 +2,8 @@ import dayjs from "dayjs"; import { createI18n } from "vue-i18n"; import("dayjs/locale/ar"); +import("dayjs/locale/bg"); +import("dayjs/locale/cs"); import("dayjs/locale/de"); import("dayjs/locale/el"); import("dayjs/locale/en"); @@ -14,6 +16,7 @@ import("dayjs/locale/is"); import("dayjs/locale/it"); import("dayjs/locale/ja"); import("dayjs/locale/ko"); +import("dayjs/locale/nb"); import("dayjs/locale/nl-be"); import("dayjs/locale/pl"); import("dayjs/locale/pt-br"); @@ -27,8 +30,6 @@ import("dayjs/locale/uk"); import("dayjs/locale/vi"); import("dayjs/locale/zh-cn"); import("dayjs/locale/zh-tw"); -import("dayjs/locale/cs"); -import("dayjs/locale/nb"); // All i18n resources specified in the plugin `include` option can be loaded // at once using the import syntax @@ -109,6 +110,7 @@ export function detectLocale() { case /^uk\b/.test(locale): locale = "uk"; break; + case /^vi\b/.test(locale): locale = "vi"; break; @@ -123,6 +125,9 @@ export function detectLocale() { case /^no\b/.test(locale): locale = "no"; break; + case /^bg\b/.test(locale): + locale = "bg"; + break; default: locale = "en"; }