From 42f70d0a5d006c2efb084a02fba9a2fef0dd40c0 Mon Sep 17 00:00:00 2001 From: mahmoud adel <58145645+mahmoudadel54@users.noreply.github.com> Date: Mon, 9 Dec 2024 16:35:31 +0200 Subject: [PATCH] #10717: correct prop type of localeKey in Localized.jsx and add default value for it (#10723) --- web/client/components/I18N/Localized.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/client/components/I18N/Localized.jsx b/web/client/components/I18N/Localized.jsx index a810e72155..18e5209d1c 100644 --- a/web/client/components/I18N/Localized.jsx +++ b/web/client/components/I18N/Localized.jsx @@ -22,9 +22,11 @@ class Localized extends React.Component { static childContextTypes = { locale: PropTypes.string, messages: PropTypes.object, + localeKey: PropTypes.bool + }; + static defaultProps = { localeKey: true }; - getChildContext() { return { locale: this.props.locale,