Fix <i18nMessage> not localizing the message.
--- Problem (#4173) --- Messages under <i18nMessage> weren't localized although the translation is available. However, the tokens for these messages are localized, causing a mixed-language final string. --- Fix --- It appears that the original message (instead of the localized) was used in the token-substitution process.
This commit is contained in:
parent
f1a62160b4
commit
23848dd37a
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ export default function I18nMessage(props: Props) {
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
|
|
||||||
const messageSubstrings = props.children.split(regexp),
|
const messageSubstrings = message.split(regexp),
|
||||||
tokens = props.tokens;
|
tokens = props.tokens;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in a new issue