website icon indicating copy to clipboard operation
website copied to clipboard

Localize social media per country

Open Ainali opened this issue 4 years ago • 1 comments

The feature

Make a query for each country to figure out which social networks are most common, and use them as the top five in the lists. (Could this perhaps even be dynamic?)

Why?

It was pointed out during CEE online meeting that it looked like our selection had a western point of view and that completely different social media might be more used in other countries.

Examples and inspiration

No response

Ainali avatar Nov 07 '21 17:11 Ainali

We could introduce a new option into the countries query where a comma-separated list of properties could make those "prioritized".

If for example VKontakte and TikTok would be very important networks in Greenland we could make those prioritized like so:

(wd:Q223 'Greenland' 'greenland' 'Current content only includes municipalities.', 'P3185,P7085')

One can then fall back to our default ones until one has populated five networks.

https://github.com/govdirectory/website/blob/fb2f7e6b5cf4cb7613582fe9969311204c6a1664/queries/countries.rq#L12-L15

The social-icons.html template would also then need to take the country not account but it should be rather straightforward.

https://github.com/govdirectory/website/blob/main/templates/components/social-icons.html

Abbe98 avatar Nov 12 '21 14:11 Abbe98