Closed bravo-kernel closed 1 year ago
It seems I can just add an exclamation mark to locale
to get rid of the type error.
if(["in", "hi-IN"].includes(locale!){
// do something
}
Feel free to close unless you think this should be handled by the module.
Unless useFallbackLocale
was specifically set to false
, indeed there's no possibility of getting null
back. I fixed that by adding function overloads :)
Ah, perfect. Much appreciated ❤️
Unsure if this is related to this module but I was expecting that defining a
fallbackLocale
would always return a string. I am trying to do this:However,
include
complains with below type error about possiblenull
so I am guessing it is not detected:Any pointers on how to solve this, if possible at all?