remove unnecessary navigator check
This commit is contained in:
parent
4f46f061d2
commit
b6204e0b65
@ -20,10 +20,6 @@ const getMessages = (locale: string) => {
|
||||
|
||||
export const IntlProvider = ({ children }: { children: ReactNode }) => {
|
||||
const getLocale = () => {
|
||||
if (typeof navigator === 'undefined') {
|
||||
return DEFAULT_LOCALE
|
||||
}
|
||||
|
||||
return (
|
||||
(navigator.languages && navigator.languages[0]) ||
|
||||
navigator.language ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user