Skip to content

Commit

Permalink
chore: add default locale
Browse files Browse the repository at this point in the history
  • Loading branch information
bang9 committed Aug 14, 2024
1 parent 5e068ab commit 1cf2e75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/context/ConstantContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const ConstantStateProvider = (props: PropsWithChildren<ConstantContextPr
...initialState.messageInputControls,
...props.messageInputControls,
},
locale: props.locale,
locale: props.locale ?? navigator.language,
dateLocale: props.dateLocale ?? initialState.dateLocale,
// ----- Feature flag props ----- //
autoOpen: props.autoOpen,
Expand Down

0 comments on commit 1cf2e75

Please sign in to comment.