mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-24 18:59:17 +00:00
Guard translation methods with typescript to protect against invalid usage (#26021)
This commit is contained in:
committed by
GitHub
parent
86c563cd29
commit
469d11ffcb
+1
-2
@@ -199,8 +199,7 @@ async function start(): Promise<void> {
|
||||
// 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.",
|
||||
"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"),
|
||||
|
||||
Reference in New Issue
Block a user