Hello,
I'm currently facing some issues with localization for the Safari extension on iOS:
Issues with Language Tags:
- Folder names like pt-BR (Brazilian Portuguese) and pt-PT (European Portuguese) placed in the Resources/_locales/ directory are not displaying the respective languages correctly; instead, the default English is shown.
- Similarly, using folder names like zh-CN (Simplified Chinese) and zh-TW (Traditional Chinese) also results in default English display instead of the intended Chinese language.
- Conversely, when changing the folder names to pt (Portuguese general) and zh (Chinese general), the languages display correctly.
Could you please provide any recommendations or tips regarding language tag settings and how to ensure they are properly recognized according to RFC 5646?
Thanks for your help!
Best,
Safari Web Extensions use zh_CN
for Simplified Chinese and zh_TW
for Traditional Chinese.
You will want to put the messages.json
file in a zh_CN
or zh_TW
folder in _locales
.
If you are still seeing issues, make sure the JSON file is valid, as that might be causing it to skip that locale. You also might want to check that your region is correct, China mainland
or Brazil
, since region is separate from the preferred languages list.
Please file feedback with a test extension if the issue persists with details on your system language settings.