mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-02 14:07:55 +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) {
|
if (!translatedMessage) {
|
||||||
translatedMessage = new IntlMessageFormat(
|
translatedMessage = new IntlMessageFormat(
|
||||||
translatedValue,
|
translatedValue.replace(/(\<.*\>)/g, "'$1'"),
|
||||||
language,
|
language,
|
||||||
formats
|
formats
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user