Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get all locales of a language in that language #3

Open
Fenntasy opened this issue Jul 18, 2018 · 0 comments
Open

Get all locales of a language in that language #3

Fenntasy opened this issue Jul 18, 2018 · 0 comments

Comments

@Fenntasy
Copy link
Contributor

Looking for one language should return all locales names of that language in a convenient map.

get_locale_names("en")
> %{
  "en-AU" => "Australian English",
  "en-CA" => "Canadian English",
  "en-GB" => "British English",
  "en-GB-alt-short" => "UK English",
  "en-US" => "American English",
  "en-US-alt-short" => "US English"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant