Page MenuHomePhabricator

Use only specific locales in app manifest
Closed, ResolvedPublic

Description

Problem

The locales key in the application manifest provides app information (name, subtitle, description) shown in the app store. For the application entry to show in the right language in the store, the locales have to be specific (language - region) and match the list available in the device. For instance, if the phone is configured to fr-CA, the fr entry in the manifest won't be picked up as a fallback.

Solution

Generate the locales with the union of supported locales from KaiOS and Jio for which we have translations available. Make sure that all keys have the language-region format. Some translations may be the same. For instance, KaiOS supports both fr-FR and fr-CA but we only have fr translations. In this case, both fr-FR and fr-CA keys would be generated with translations coming from the fr.json file.

Event Timeline

SBisson added a subscriber: Jpita.

@Jpita this is ready for testing.

I have merged the code and uploaded the app bundle generated by CI to the store. I've added your nokia as a test devices. You can check the app info in various languages (by changing your phone language) in the store in the "books/references" category. You may need to reboot to see it.

Note that it doesn't include translations for ALL supported languages. Check i18n/*.json to see which languages are supposed to be there.