From 23848dd37a2e6fd216d2a82c11011be188b673f4 Mon Sep 17 00:00:00 2001 From: infiinte-persistence Date: Mon, 25 May 2020 06:15:58 +0800 Subject: [PATCH] Fix not localizing the message. --- Problem (#4173) --- Messages under 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. --- ui/component/i18nMessage/view.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/component/i18nMessage/view.jsx b/ui/component/i18nMessage/view.jsx index b3fbede42..c0df2bfb9 100644 --- a/ui/component/i18nMessage/view.jsx +++ b/ui/component/i18nMessage/view.jsx @@ -15,7 +15,7 @@ export default function I18nMessage(props: Props) { return message; } - const messageSubstrings = props.children.split(regexp), + const messageSubstrings = message.split(regexp), tokens = props.tokens; return (