MCPcopy Create free account
hub / github.com/IceClusters/icmysql / ParseLocalisations

Function ParseLocalisations

src/language/localisation.js:7–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5const defaultLanguage = "en";
6
7function ParseLocalisations() {
8 if (!LanguageSpecified()) {
9 return ParseError("language_undefined");
10 }
11
12 if (!LanguageSupported()) {
13 return ParseError("language_unsupported", [supportedLanguages.join(", ")]);
14 }
15}
16
17function LanguageSpecified() {
18 return Config.Language && Config.Language != "";

Callers 1

index.jsFile · 0.85

Calls 3

LanguageSpecifiedFunction · 0.85
ParseErrorFunction · 0.85
LanguageSupportedFunction · 0.85

Tested by

no test coverage detected