Fixes issues with translation strings containing < >

This commit is contained in:
Ludeeus 2020-08-05 21:25:04 +00:00
parent 2fb9a56e0b
commit 74e5bdddd8

View File

@ -64,7 +64,7 @@ export const computeLocalize = (
if (!translatedMessage) {
translatedMessage = new IntlMessageFormat(
translatedValue,
translatedValue.replace(/(\<.*\>)/g, "'$1'"),
language,
formats
);