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

Important Improvements #515

Open
imeDevelopers opened this issue Jan 20, 2024 · 2 comments
Open

Important Improvements #515

imeDevelopers opened this issue Jan 20, 2024 · 2 comments

Comments

@imeDevelopers
Copy link

imeDevelopers commented Jan 20, 2024

1: for the "translations" json Key, you have to support the "United Nations Officialy Supported Languages" , which contains the Arabic ("ara") language...

2: I think "demonyms" json key name should be "nationality"! and the "region" json key should be "continent" and "subregion" should be "region".

3: this json file:
https://raw.githubusercontent.com/mledoze/countries/master/countries.json
is about 1.21 MB in sized, you have to provide a compressed version of the files, that should be inline-json, and make it's name countries-compressed.json for example, like this example of data:
[{"name":{"common":"Aruba","official":"Aruba","native":{"nld":{"official":"Aruba","common":"Aruba"},"pap":{"official":"Aruba","common":"Aruba"}}},"tld":[".aw"],"cca2":"AW","ccn3":"533","cca3":"ABW","cioc":"ARU","independent":false,"status":"officially-assigned","unMember":false,"currencies":{"AWG":{"name":"Aruban florin","symbol":"\u0192"}},"idd":{"root":"+2","suffixes":["97"]},"capital":["Oranjestad"],"altSpellings":["AW"],"region":"Americas","subregion":"Caribbean","languages":{"nld":"Dutch","pap":"Papiamento"},"translations":{"ces":{"official":"Aruba","common":"Aruba"},"deu":{"official":"Aruba","common":"Aruba"},"est":{"official":"Aruba","common":"Aruba"},"fin":{"official":"Aruba","common":"Aruba"},"fra":{"official":"Aruba","common":"Aruba"},"hrv":{"official":"Aruba","common":"Aruba"},"hun":{"official":"Aruba","common":"Aruba"},"ita":{"official":"Aruba","common":"Aruba"},"jpn":{"official":"\u30a2\u30eb\u30d0","common":"\u30a2\u30eb\u30d0"},"kor":{"official":"\uc544\ub8e8\ubc14","common":"\uc544\ub8e8\ubc14"},"nld":{"official":"Aruba","common":"Aruba"},"per":{"official":"\u0622\u0631\u0648\u0628\u0627","common":"\u0622\u0631\u0648\u0628\u0627"},"pol":{"official":"Aruba","common":"Aruba"},"por":{"official":"Aruba","common":"Aruba"},"rus":{"official":"\u0410\u0440\u0443\u0431\u0430","common":"\u0410\u0440\u0443\u0431\u0430"},"slk":{"official":"Aruba","common":"Aruba"},"spa":{"official":"Aruba","common":"Aruba"},"swe":{"official":"Aruba","common":"Aruba"},"urd":{"official":"\u0627\u0631\u0648\u0628\u0627","common":"\u0627\u0631\u0648\u0628\u0627"},"zho":{"official":"\u963f\u9c81\u5df4","common":"\u963f\u9c81\u5df4"}},"latlng":[12.5, -69.96666666],"landlocked":false,"borders":[],"area":180,"flag":"\ud83c\udde6\ud83c\uddfc","demonyms":{"eng":{"f":"Aruban","m":"Aruban"},"fra":{"f":"Arubaise","m":"Arubais"}}}, etc ...]

when I inline this json file I got 669 KB json file and this is much better for websites and apps who is going to use these data ..

thx

@imeDevelopers
Copy link
Author

@imeDevelopers
Copy link
Author

about the "languages" json key, can we add "isRTL": true | false to determine if this language is from Right to left or not?

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