EddyVerbruggen / nativescript-localize

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

Localized strings are always one change behind #68

Closed CoreyKaylor closed 5 years ago

CoreyKaylor commented 5 years ago

I'm using vuejs for this project, it may or may not be specific to using vuejs I'm not really sure. My workflow is generally following these steps.

  1. Setup text binding using the vue filter
  2. Add string to json file(s)
  3. App is setup for live reload either fails to compile, or successfully compiles
  4. App strings will show the key passed to the filter.
  5. Can fix 1 of 2 ways
    1. Add a fake key value pair forcing a re-sync to the localization files and recompile
    2. Delete localization files under App_Resources/platform folders and recompile

Any thoughts on how this could get fixed?

CoreyKaylor commented 5 years ago

I went through an update of NS 5.4 and cleaned up some of our project that was originally setup with the vue cli / web plugin. I'm thinking the behavior I described was from using the webpack setup from vue cli and not the typical tns create approach. Since the update I have not experienced the problems I described above.