From 80664b6182a939ed07aa891646c0e6764acd1009 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 12 Feb 2022 23:49:34 +0100 Subject: [PATCH] feat: add Polish, Dutch and Portuguese translations --- src/i18n/index.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/i18n/index.js b/src/i18n/index.js index 2effc357..b201d6f8 100644 --- a/src/i18n/index.js +++ b/src/i18n/index.js @@ -1,4 +1,4 @@ -import { createI18n } from 'vue-i18n' +import {createI18n} from 'vue-i18n' import langEN from './lang/en.json' export const i18n = createI18n({ @@ -19,6 +19,9 @@ export const availableLanguages = { 'vi-VN': 'Tiếng Việt', 'it-IT': 'Italiano', 'cs-CZ': 'Čeština', + 'pl-PL': 'Polski', + 'nl-NL': 'Nederlands', + 'pt-PT': 'Português', } const loadedLanguages = ['en'] // our default language that is preloaded @@ -30,10 +33,10 @@ const setI18nLanguage = lang => { } export const loadLanguageAsync = lang => { - if(!lang) { - return + if (!lang) { + return } - + if ( // If the same language i18n.global.locale === lang ||