nstack-io / nstack-ios-sdk

MIT License
5 stars 10 forks source link

fix: Localization updating - dev query parameter dynamic setting #112

Closed BucekJiri closed 5 months ago

BucekJiri commented 5 months ago

NStack has a Publish feature for localizations - localization changes need to be published in order to be visible in production.

Setting the dev flag to true in the localize/resources endpoint to the NStack API fetches the localization changes even if they are not published.

This was hardcoded to true and triggered unnecessary requests in the production. The dev query parameter should be set to true only while developing locally.