scelis / twine

Twine is a command line tool for managing your strings and their translations.
Other
840 stars 151 forks source link

Feature Request: Generate localization output from multiple twine input files #238

Closed aaronbrethorst closed 6 years ago

aaronbrethorst commented 6 years ago

Apologies if this is already in the tool, but I didn't see any mention of it. The twine localization input file I'm using is about 4000 lines long, and it's getting difficult to manage and find items in it. I'd love to be able to split it into different files that can simultaneously be fed into twine to generate a single output file.

scelis commented 6 years ago

Thank you for the feature request! However, I think that this may be outside of the scope of Twine.

It should be relatively easy, however, to do this outside of Twine in whatever script you have that invokes it. For example, instead of invoking twine all by itself, you could do the following:

cat twine1.txt twine2.txt twine3.txt > mega_twine.txt
twine generate-localization-file mega_twine.txt --lang en --format android en.xml

I hope that helps!

aaronbrethorst commented 6 years ago

Good idea, thanks!