Skip to content

Commit

Permalink
#10717: correct prop type of localeKey in Localized.jsx and add defau…
Browse files Browse the repository at this point in the history
…lt value for it (#10723)
  • Loading branch information
mahmoudadel54 authored Dec 9, 2024
1 parent 9e07128 commit 42f70d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/client/components/I18N/Localized.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 42f70d0

Please sign in to comment.