Is your feature request related to a problem? Please describe.
I encountered an Internal error: TypeError: locales[locale] is not a function during the initial setup, which got me a bit stuck. The cause was a trivial mistake of having a wrong key for the locale object.
Describe the solution you'd like
I personally think it would be helpful if an error informs us when an unknown locale key is passed. Something along the lines of "An unknown locale string has been passed."
Additional context
I do have the desire to create a PR if I find the time. By the way, this is a great library, thank you!
Is your feature request related to a problem? Please describe. I encountered an Internal error: TypeError: locales[locale] is not a function during the initial setup, which got me a bit stuck. The cause was a trivial mistake of having a wrong key for the locale object.
Describe the solution you'd like I personally think it would be helpful if an error informs us when an unknown locale key is passed. Something along the lines of "An unknown locale string has been passed."
Additional context I do have the desire to create a PR if I find the time. By the way, this is a great library, thank you!