From bb0eeac60399c5b4b36d59ffa04cf727790e4075 Mon Sep 17 00:00:00 2001 From: mahmoudadel54 Date: Mon, 9 Dec 2024 16:17:27 +0200 Subject: [PATCH] #10717: correct prop type of localeKey in Localized.jsx and add default value for it --- 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,