explorer icon indicating copy to clipboard operation
explorer copied to clipboard

Ensure translation of country names and continents on OONI Explorer Countries page

Open agrabeli opened this issue 3 years ago • 3 comments

The various country names, continents (as listed above), and the "Search for countries" field are untranslated.

countries

Sarath mentioned that we could potentially use the standard translation of countries from the browser for the country names (instead of requiring Transifex translators to translate every single country name), while keeping an eye out for how that translates for places like Taiwan and Hong Kong.

We should probably add "Search for countries" to a string on Transifex though.

agrabeli avatar Mar 25 '22 18:03 agrabeli

I think we should update country-util to support pulling in the translated country names from unicode cldr: https://github.com/unicode-org/cldr-json/tree/main/cldr-json/cldr-localenames-full/main

hellais avatar Apr 27 '22 17:04 hellais

I would like to work on this. Have a few questions.

  1. How to work with transfix translators?
  2. Is there any documentation for the same?

thara003 avatar May 10 '22 17:05 thara003

I think what should be done to implement this is the following:

  1. Add support for generating translated country names inside of country-util: https://github.com/ooni/country-util
  2. Depending on the selected language resolve the country name inside of country-util

While we are at it, we should update the country-util download script to fetch data from the new unicode repository (see: https://github.com/ooni/country-util/blob/master/scripts/download-data.py#L13).

I don't think any transifex interaction is necessary for this. Since all the country names are already translated by unicode, we shouldn't require our translators to duplicate all this work.

hellais avatar May 12 '22 09:05 hellais

This has been fixed: we're using Intl.DisplayNames from format.js which uses https://cldr.unicode.org/ as a source

majakomel avatar Jan 24 '24 19:01 majakomel