You've already forked filebrowser
mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-11-26 14:25:26 +08:00
feat: add Ukrainian translation / update Russian translation (#1753)
This commit is contained in:
committed by
GitHub
parent
8d87e0d5f9
commit
665e45889c
@@ -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),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user