Adding bulgarian language.

This commit is contained in:
Dessalines 2021-04-02 10:14:33 -04:00
parent 6cec37322a
commit 5def7e6bc8
2 changed files with 6 additions and 0 deletions

View file

@ -32,6 +32,7 @@ import { da } from "./translations/da";
import { oc } from "./translations/oc"; import { oc } from "./translations/oc";
import { hr } from "./translations/hr"; import { hr } from "./translations/hr";
import { th } from "./translations/th"; import { th } from "./translations/th";
import { bg } from "./translations/bg";
// https://github.com/nimbusec-oss/inferno-i18next/blob/master/tests/T.test.js#L66 // https://github.com/nimbusec-oss/inferno-i18next/blob/master/tests/T.test.js#L66
const resources = { const resources = {
@ -67,6 +68,7 @@ const resources = {
oc, oc,
hr, hr,
th, th,
bg,
}; };
function format(value: any, format: any): any { function format(value: any, format: any): any {

View file

@ -28,6 +28,7 @@ import "moment/locale/sr";
import "moment/locale/ko"; import "moment/locale/ko";
import "moment/locale/da"; import "moment/locale/da";
import "moment/locale/hr"; import "moment/locale/hr";
import "moment/locale/bg";
import { import {
UserOperation, UserOperation,
@ -124,6 +125,7 @@ export const languages = [
{ code: "ru" }, { code: "ru" },
{ code: "nl" }, { code: "nl" },
{ code: "it" }, { code: "it" },
{ code: "bg" },
]; ];
export const themes = [ export const themes = [
@ -451,6 +453,8 @@ export function getMomentLanguage(): string {
lang = "hr"; lang = "hr";
} else if (lang.startsWith("th")) { } else if (lang.startsWith("th")) {
lang = "th"; lang = "th";
} else if (lang.startsWith("bg")) {
lang = "bg";
} else { } else {
lang = "en"; lang = "en";
} }