wojtekmaj / get-user-locale

A function that returns user's locale as an IETF language tag, based on all available sources.
MIT License
58 stars 9 forks source link

Options argument #18

Closed hijodigital closed 2 years ago

hijodigital commented 2 years ago
import { getUserLocale } from 'get-user-locale'

// ...

const userLocale = getUserLocale({
  fallbackLocale: 'de',
  useFallbackLocale: true
})

My IDE complains: TS2554: Expected 0 arguments, but got 1.

wojtekmaj commented 2 years ago

Fixed in #19