EddyVerbruggen / nativescript-localize

Internationalization plugin for NativeScript using native capabilities of each platform
MIT License
79 stars 31 forks source link

gradle produces errors for release builds #40

Closed Tukkan closed 6 years ago

Tukkan commented 6 years ago

When testing the app using tns run android everything works fine, including translations.

When doing tns build android --release [...], gradle produces errors:

/Users/me.user/Projects/my-project/platforms/android/app/src/main/res/values/strings.xml:26: Error: "_documentType_types_notCreatedLabel_jWbNP" is not translated in "en" (English) [MissingTranslation
  <string name="_documentType_types_notCreatedLabel_jWbNP">"Not created"</string>

[...]

/Users/me.user/Projects/my-project/platforms/android/app/src/main/res/values-en/strings.xml:22: Error: "_reasonTypes_type_notCreatedLabel_19oJ4j" is translated here but not found in default locale [ExtraTranslation]
  <string name="_reasonTypes_type_notCreatedLabel_19oJ4j">"Not created"</string>
 "tns-android": {
      "version": "4.1.3"
    }

tns --version //4.1.2

lfabreges commented 6 years ago

I thought I fixed that, which version of the plugin are you using ?

Tukkan commented 6 years ago

I'm using 3.0.4

lfabreges commented 6 years ago

I'm able to successfully build the demo project for android --release, it contains one translation found in fr.json and not found in en.default.js, and a lot of translations not found in fr.json and found in en.default.json.

Can you create a repo for me to reproduce the issue ?

lfabreges commented 6 years ago

I'm closing this as I can't reproduce the issue.