Closed JanMisker closed 4 years ago
I'm having the same issue with the cordova-camera-plugin and the same string, when building on Android it throws this error:
xml: Error: ' ' is not a valid resource name character
I created a pull request with a (hacky?) fix.
It would be great to be able to specify different keys for iOS and Android, in the "app" section of the json, not just in the config.
Reason for this is that iOS makes it very easy to not use proper keys, but just the entire string as key-to-be-localized, for example in phonegap-plugin-barcodescanner, they just use NSLocalizedString around a full sentence in English. https://github.com/phonegap/phonegap-plugin-barcodescanner/issues/732#issuecomment-433970310
I can get that to work in iOS with this plugin, but now my Android strings.xml files contain invalid characters.