Open flodaniel opened 5 years ago
I'm experiencing the same thing when using a -
within the key name.
The other plugin nativescript-i18n does not allow using a -
within keys at all, as the build fails on Android saying Error: '-' is not a valid resource name character
.
So I think it is generally a better idea to prevent using '-' within key names
So we store our localization strings in a javascript file, which looks like this:
In the strings.xml and Localizable.strings however the entries look like this:
Android:
iOS:
As we use firebase cloud messaging and want to generate localized push notifications with titleLocKey and bodyLocKey (see FCM Documentation for details) it is extremely annoying that "type-a-message" is converted to "_type_a_message_Z13yvex".
Is this a bug? Is this expected behaviour because we use "-" in the identifiers?
It is definitely strange that any identifier would change like this.