mirror of
https://github.com/wukko/cobalt.git
synced 2025-04-29 22:14:26 +02:00

- new localization system: fast, dynamic, way more organized - localization strings are WAY more descriptive - it's now easier to add support for other languages (just one loc file instead of five) - localization now falls back to english if localized string isnt available - got rid of all static language selectors (probably) - slightly updated english and russian strings - miscellaneous settings items have been bundled together and moved to the bottom, cause they're used the least - bottom links should no longer touch the popup border on overflow - rearranged popup order in the rendered page - bumped version up to 2.2.5 if you see strings that are like this: !!EXAMPLE!! or withoutspace please file an issue on github
11 lines
343 B
JavaScript
11 lines
343 B
JavaScript
import loc from "../../localization/manager.js";
|
|
|
|
export function internalError(res) {
|
|
res.status(501).json({ status: "error", text: "Internal Server Error" });
|
|
}
|
|
export function errorUnsupported(lang) {
|
|
return loc(lang, 'ErrorUnsupported');
|
|
}
|
|
export function genericError(lang, host) {
|
|
return loc(lang, 'ErrorBrokenLink', host);
|
|
} |