Almanac.httparchive.org: Get a source of country flags

Created on 28 Nov 2019  路  9Comments  路  Source: HTTPArchive/almanac.httparchive.org

What's the source of the country flag pngs? Or were they created from scratch?

For example: https://github.com/HTTPArchive/almanac.httparchive.org/blob/master/src/static/images/es.png

Need a French one and am sure that won't be the last!

good first issue translation

Most helpful comment

Here's a whole set of flags downloaded from Wikipedia and checked to be in
Public Domain or otherwise exempt from Copyright: https://github.com/google/region-flags

Can it help?

All 9 comments

I got the Spanish flag from https://assets.adobe.com/public/44a4899f-53d1-4340-4f28-2eb282e2dc85 but seems like it won't be enough to add flags for all the languages.

When needed for the website, a solution would be maybe to rely on getting/downloading the flags from an open-source repo like https://restcountries.eu/ which also provides the flags in an SVG format? (e.g. https://restcountries.eu/data/col.svg).

Let's try to find a new source for the flags. IIRC the one the designer used required attribution and the images are extremely unoptimized. Would be nice to find a service that is permissive and doesn't require optimizing.

Here's a whole set of flags downloaded from Wikipedia and checked to be in
Public Domain or otherwise exempt from Copyright: https://github.com/google/region-flags

Can it help?

Nice find! I think they鈥檒l do nicely.

Now just need to check how they integrate into the design (the current examples are circular I think so may need some CSS to fit in) and then check in the ones we need.

Hi!
Adding Countries flags is not coherent since we are not targeting specific regions. All the contents on Web Almanac are targeting language only and not language-country.

@AymenLoukil Interesting take. Maybe we could only display the language code in a future iteration.

An interesting thought though not sure I agree 100%. It鈥檚 definitely American English for example. So it鈥檚 right to show the American flag rather than the UK or English flag.

I imagine the other translations will be similar and will be slanted towards one county鈥檚 use of that language (probably set by the first translator for that language who will likely set the standard for the translations for that language).

They are set up in the code (somewhat) as language-region rather than just language though it would need more work to make that really work as other parts treat them as just language.

On their other hand I also agree with you somewhat, since we鈥檙e unlikely to have an en-UK version to go along with the en-US version for example (unless someone with a lot of time on their hands gets really annoyed with the Americanisms!), though that may not be as true for other languages.

Let's just remove the flags from the UI and rely on the translated name of the language per Best practice for presenting languages.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rviscomi picture rviscomi  路  6Comments

ibnesayeed picture ibnesayeed  路  5Comments

MSakamaki picture MSakamaki  路  6Comments

AymenLoukil picture AymenLoukil  路  4Comments

bazzadp picture bazzadp  路  3Comments