Use locale when no argument is provided #6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I expected that it will show my country based on locale.
My locale is:
pl_PL.utf8
The second value is the country, like in en_GB for UK (probably from Great Britain).
The list of countries from ISO 3166-1 can be found on Wikipedia.
PS: This tool is super cool. Thanks for creating it.
Using locale as a fallback when there is no internet connection or when it takes too long to make a network requset sounds like a concept we can explore
If your locale is different than your country, then the result will be inaccurate though
Are you suggesting displaying 2 flags? 1 for the locale 1 for the country (if they are different)
I'm suggesting to display locale flag when no argument provided, when argument is provided I expect to see the flag from argument.
Right now when there are no argument it throws:
Yeah this is odd, because what actually happens when no argument is supplied (or is supposed to) is that your location is determined from your public IP and that is fetched from an API
But yes, I will make it so that it uses the locale if we can't get the information about the country and there is some sort of error