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

[Enhancement] Add short names for "countries" #52

Open
cejaekl opened this issue Dec 6, 2023 · 0 comments
Open

[Enhancement] Add short names for "countries" #52

cejaekl opened this issue Dec 6, 2023 · 0 comments

Comments

@cejaekl
Copy link
Contributor

cejaekl commented Dec 6, 2023

[...] we're making a revised country selector [...] It has a search, and we're proposing including a few common acronyms - e.g. UK would find United Kingdom, US or USA would find United States, NZ would find New Zealand, UAE = United Arab Emirates.
Question: is there a way we could get a list of common country acronyms for our supported languages? E.g. in French RDC = la république démocratique du Congo = DRC in English.

The above use case is something that we could address with Region.short_name. Currently, that only does something useful for "provinces" of certain countries, e.g.

$ Worldwide.region(code: "CA-ON").short_name
=> "ON"

... and it just returns the same value as .full_name elsewhere. Hooking up some behaviour to return useful short names would be a nice enhancement.

I think a good way to come up with a list would be to look at the various Wikipedia pages for each country in each target language. E.g. that'll come up with 米国 , アメリカ and 米 for US in Japanese. It also points to ROK for KR in 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