Search code examples
localizationfirefox-addonfirefox-addon-sdk

Firefox addon localization


I have problem with localization my addon. I followed this tutorial on Using Localized Strings in Preferences but I can't compile my addon because I use polish characters ć and others.

I've made locale folder and put there pl-PL.properties file with this content:

my_tag_title = Co robić?

and I got error:

Following locale file is not a valid UTF-8 file: C:\path\pl-PL.properties
'utf8' codec can't decode byte 0xe6 in position 22: invalid continuation byte"

Is there way to put special characters directly inside package.json?

How to solve this problem?


Solution

  • Make sure that the locale file is saved in UTF-8 format.