You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Great package but not all the methods are entriely useable.
Using locale.where("local", inputValue) results in TypeError: Cannot read properties of null (reading 'toLowerCase') for many cases.
At first I thought it was due to different charcter sets, but no. Using local names "Brezhoneg", "Español", "العربية", "English"
and more all result in errors.
Oddly enough the local name "Afaraf" returns correctly (I imagine there are more, but did not find any).
The text was updated successfully, but these errors were encountered:
> locale.where('location', 'us').name;
Uncaught TypeError: Cannot read properties of null (reading 'toLowerCase')
at /Users/me/example/node_modules/locale-codes/index.js:51:42
at Array.find (<anonymous>)
at Object.where (/Users/me/example/node_modules/locale-codes/index.js:51:13)
Great package but not all the methods are entriely useable.
Using
locale.where("local", inputValue)
results inTypeError: Cannot read properties of null (reading 'toLowerCase')
for many cases.At first I thought it was due to different charcter sets, but no. Using local names "Brezhoneg", "Español", "العربية", "English"
and more all result in errors.
Oddly enough the local name "Afaraf" returns correctly (I imagine there are more, but did not find any).
The text was updated successfully, but these errors were encountered: