From 4873eb1f6ea77c0cf5b0d6a098e7db72666b418f Mon Sep 17 00:00:00 2001 From: dragongoose Date: Sat, 1 Jun 2024 23:10:07 -0400 Subject: [PATCH] Update and add new translations --- src/i18n.ts | 11 ++++++++++- src/locales | 2 +- src/settingsManager.ts | 12 ++++++++++-- 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/src/i18n.ts b/src/i18n.ts index 48b6b09..b9d4353 100644 --- a/src/i18n.ts +++ b/src/i18n.ts @@ -14,6 +14,11 @@ import fr from '@/locales/fr.json' import uk from '@/locales/uk.json' import de from '@/locales/de.json' import zh_Hans from '@/locales/zh_Hans.json' +import ca from '@/locales/ca.json' +import fi from '@/locales/fi.json' +import tr from '@/locales/tr.json' +import vi from '@/locales/vi.json' + export default createI18n({ legacy: false, @@ -36,6 +41,10 @@ export default createI18n({ 'fr-FR': fr, 'uk-UA': uk, 'de-DE': de, - 'zh-Hans': zh_Hans + 'zh-Hans': zh_Hans, + 'ca-ES': ca, + 'fi-FI': fi, + 'tr-TR': tr, + 'vi-VN': vi } }) diff --git a/src/locales b/src/locales index ab2f0a5..c17ad6f 160000 --- a/src/locales +++ b/src/locales @@ -1 +1 @@ -Subproject commit ab2f0a559435802d2b4d548f159b3dea78586ac5 +Subproject commit c17ad6f535b37faa658909999dc850d8c7bfe029 diff --git a/src/settingsManager.ts b/src/settingsManager.ts index 9d40001..57ab6e2 100644 --- a/src/settingsManager.ts +++ b/src/settingsManager.ts @@ -13,7 +13,11 @@ const locales = [ 'fr-FR', 'uk-UA', 'de-DE', - 'zh-Hans' + 'zh-Hans', + 'ca-ES', + 'fi-FI', + 'tr-TR', + 'vi-VN' ] const languages = [ 'English', @@ -30,7 +34,11 @@ const languages = [ 'Français', 'Українська', 'Deutsch', - '中文(简体)' + '中文(简体)', + 'Català', + 'Suomi', + 'Türkçe', + 'Tiếng Việt' ] export interface SettingsCheckbox {