Clear and concise description of the problem
the getCookieLocal, getQueryLocale, getHeaderLocale always throw if no local found
i want to make a logic that check firstly for the query and then the cookies or the header
how can i achieve that without a long chain of tryandcatch
Suggested solution
provide an other functions like tryQueryLocale, tryHeaderLocale
that returns null or undefined and don't throw anything
make an option to the current functions to make it throw or not an error
Alternative
No response
Additional context
No response
Validations