feat: add Ukrainian translation / update Russian translation (#1753)

This commit is contained in:
Anton Grouchtchak
2022-01-07 13:29:57 +02:00
committed by GitHub
parent 8d87e0d5f9
commit 665e45889c
23 changed files with 314 additions and 10 deletions

View File

@@ -17,6 +17,7 @@ import ptBR from "./pt-br.json";
import ro from "./ro.json";
import ru from "./ru.json";
import sk from "./sk.json";
import ua from "./ua.json";
import svSE from "./sv-se.json";
import zhCN from "./zh-cn.json";
import zhTW from "./zh-tw.json";
@@ -74,6 +75,9 @@ export function detectLocale() {
case /^sk.*/i.test(locale):
locale = "sk";
break;
case /^ua.*/i.test(locale):
locale = "ua";
break;
default:
locale = "en";
}
@@ -113,6 +117,7 @@ const i18n = new VueI18n({
ro: removeEmpty(ro),
sk: removeEmpty(sk),
"sv-se": removeEmpty(svSE),
ua: removeEmpty(ua),
"zh-cn": removeEmpty(zhCN),
"zh-tw": removeEmpty(zhTW),
},