diff --git a/src/i18n.ts b/src/i18n.ts index dbd5c24..4fd0f1b 100644 --- a/src/i18n.ts +++ b/src/i18n.ts @@ -7,6 +7,11 @@ import fa from '@/locales/fa.json' import he from '@/locales/he.json' import ru from '@/locales/ru.json' import ko from '@/locales/ko.json' +import cs from '@/locales/cs.json' +import pl from '@/locales/pl.json' +import it from '@/locales/it.json' +import fr from '@/locales/fr.json' + export default createI18n({ legacy: false, @@ -21,6 +26,10 @@ export default createI18n({ 'fa-IR': fa, 'he-IL': he, 'ru-RU': ru, - 'ko-KR': ko + 'ko-KR': ko, + 'cd-CZ': cs, + 'pl-PL': pl, + 'it-IT': it, + 'fr-FR': fr, } }) diff --git a/src/settingsManager.ts b/src/settingsManager.ts index ace9e00..a9753d7 100644 --- a/src/settingsManager.ts +++ b/src/settingsManager.ts @@ -1,7 +1,7 @@ export const setLanguage = (selectedLanguage: string, i18n: any) => { // Locales and languages in arrays to match them - const locales = ['en-US', 'es-ES', 'nl-NL', 'pt-PT', 'fa-IR', 'he-IL', 'ru-RU', 'ko-KR'] - const languages = ['English', 'Español', 'Nederlands', 'Português', 'فارسی', 'עִבְרִית', 'Русский', '한국어'] + const locales = ['en-US', 'es-ES', 'nl-NL', 'pt-PT', 'fa-IR', 'he-IL', 'ru-RU', 'ko-KR', 'cs-CZ', 'pl-PL', 'it-IT', 'fr-FR'] + const languages = ['English', 'Español', 'Nederlands', 'Português', 'فارسی', 'עִבְרִית', 'Русский', '한국어', 'Česky', 'Polski', 'Italia', 'Français'] const locale = locales[languages.indexOf(selectedLanguage)] localStorage.setItem("language", locale) @@ -24,7 +24,7 @@ export function getDefaultSettings() { }, language: { name: 'language', - options: ['English', 'Español', 'Nederlands', 'Português', 'فارسی', 'עִבְרִית', 'Русский', '한국어'], + options: ['English', 'Español', 'Nederlands', 'Português', 'فارسی', 'עִבְרִית', 'Русский', '한국어', 'Česky', 'Polski', 'Italia', 'Français'], selected: 'English', type: 'option' }, diff --git a/src/views/SettingsView.vue b/src/views/SettingsView.vue index b9a87dc..11d7162 100644 --- a/src/views/SettingsView.vue +++ b/src/views/SettingsView.vue @@ -77,6 +77,13 @@ export default { +