PocketByte / LocoLaser

Localization tool to import localized strings from external source to your project.
Apache License 2.0
31 stars 1 forks source link

CSV document as a source #20

Open avently opened 3 years ago

avently commented 3 years ago

Currently I can't update my app because I can't get LocoLaser to work, see #19. This probably happened because of Google API change, I don't know actually. But this is really bad since the building process removes old build files and now the build process fails everytime. In order to prevent this in the future I propose to create a local sheet source from file. So instead of pointing to google sheet doc a user may specify local file (that he downloaded from google sheets). This makes possible to use LocoLaser even when API is broken.

So in the source with type "googlesheet" just one line can be added:

fallback_location: "doc.csv"

And if something goes wrong Locolaser prints "Using fallback file because of error: $error"