mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-02 05:57:54 +00:00
Fixes issues with translation strings containing < >
This commit is contained in:
parent
2fb9a56e0b
commit
74e5bdddd8
@ -64,7 +64,7 @@ export const computeLocalize = (
|
||||
|
||||
if (!translatedMessage) {
|
||||
translatedMessage = new IntlMessageFormat(
|
||||
translatedValue,
|
||||
translatedValue.replace(/(\<.*\>)/g, "'$1'"),
|
||||
language,
|
||||
formats
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user