i18n extraction, merging and translation #3562
Replies: 3 comments
-
This is a pretty nice setup! Definitively sharing code is interesting, but maybe a bit of overall documentation on how to use it with a Fyne application would be great. |
Beta Was this translation helpful? Give feedback.
-
The code is not ready yet. Its messy still and a prototype at : https://github.com/gedw99/sc-gio/tree/main/i18n it’s NOT finished. there is sone scrappy docs. i raised this because I wanted to see who is into the idea. please feel free to comment |
Beta Was this translation helpful? Give feedback.
-
I also need to add the code in the Shared folder it has the golang code that connects to google sheets , parses the json and generates the golang code. will hopefully get it in today |
Beta Was this translation helpful? Give feedback.
-
Checklist
Is your feature request related to a problem?
https://github.com/nicksnyder/go-i18n is the main way we can do i18n extraction and merging.
I have written some golang code that uploads the json to google sheets where the google sheet automatically translates it to all languages. Then you can download the translations and then use them in your Fyne and GIo app.
The Google sheet allows doing overrides too, so that is you find Google Translation got it wrong then you can override it.
I plan to also add province, which is from the GUI, you can see exactly the JSON file and the Google sheet row where the translation came from. This makes it easy to quickly make adjustment, run the sheet-pull command and see the GUI text chang.
If anyone is interested in all of this please shout and i will put the code into github.
google sheets:
https://docs.google.com/spreadsheets/d/1H1hVvCdglCFdkk55Z88xAnIck5g2x2IKeJYkzb7tFAc/edit?usp=sharing
Is it possible to construct a solution with the existing API?
see above.
Describe the solution you'd like to see.
see above..
Beta Was this translation helpful? Give feedback.
All reactions