transifex / transifex-sync-zendesk

Allows you to sync sources to Transifex and translations to Zendesk.
https://www.zendesk.com/apps/transifex-sync/
Other
1 stars 3 forks source link

Local storage usage #99

Closed SofiaMargariti closed 7 years ago

SofiaMargariti commented 7 years ago

The previous behaviour of the parser is that upon loading a page it will fetch all 100% translated content and store it to local storage (this.store is a function of the zendesk framework that does exactly that). When we want to upload translations to zendesk we just pick them from local storage. This has the disadvantage that we occupy huge ammount of local storage, many times for no reason. With this PR the translations from transifex will be fetched on demand only for the resources that have been selected for syncing and they won't be stored to local storage.

Also I have simplified a bit the pagination.

@codegaze if you could take a look, pls! We can go over it together if you prefer.