Migrate translations to keys and switch to Localazy (#26106)

This commit is contained in:
Michael Telatynski 2023-09-05 17:17:25 +01:00 committed by GitHub
parent 00803950bf
commit c525b633bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
98 changed files with 2327 additions and 1922 deletions

View file

@ -197,16 +197,14 @@ async function start(): Promise<void> {
// Now that we've loaded the theme (CSS), display the config syntax error if needed.
if (error instanceof SyntaxError) {
// This uses the default brand since the app config is unavailable.
return showError(_t("Your Element is misconfigured"), [
_t(
"Your Element configuration contains invalid JSON. Please correct the problem and reload the page.",
),
_t("The message from the parser is: %(message)s", {
message: error.message || _t("Invalid JSON"),
return showError(_t("error|misconfigured"), [
_t("error|invalid_json"),
_t("error|invalid_json_detail", {
message: error.message || _t("error|invalid_json_generic"),
}),
]);
}
return showError(_t("Unable to load config file: please refresh the page to try again."));
return showError(_t("error|cannot_load_config"));
}
// ##################################
@ -230,8 +228,8 @@ async function start(): Promise<void> {
logger.error(err);
// Like the compatibility page, AWOOOOOGA at the user
// This uses the default brand since the app config is unavailable.
await showError(_t("Your Element is misconfigured"), [
extractErrorMessageFromError(err, _t("Unexpected error preparing the app. See console for details.")),
await showError(_t("error|misconfigured"), [
extractErrorMessageFromError(err, _t("error|app_launch_unexpected_error")),
]);
}
}