im a buffoon
this is a blind commit this might as well break everything
This commit is contained in:
parent
abe936e695
commit
78176be045
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ import { supportedLanguages, appName } from "../config.js";
|
||||||
import loadJson from "./load-json.js";
|
import loadJson from "./load-json.js";
|
||||||
|
|
||||||
export default function(lang, cat, string, replacement) {
|
export default function(lang, cat, string, replacement) {
|
||||||
if (!lang in supportedLanguages) {
|
if (!supportedLanguages.includes(lang)) {
|
||||||
lang = 'en'
|
lang = 'en'
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
@ -19,4 +19,4 @@ export default function(lang, cat, string, replacement) {
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return string
|
return string
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue