koddr / tutorial-go-i18n

📖 Tutorial: An easy way to translate your Golang application
https://dev.to/koddr/an-easy-way-to-translate-your-golang-application-5ege
9 stars 0 forks source link

Automate the translations #4

Open gedw99 opened 10 months ago

gedw99 commented 10 months ago

https://github.com/bas24/googletranslatefree

This will use google translate to give us a machine translation.

need a cache for the hash of each toml translation line so it’s idempotent.

Not sure if nicks’s golang lib has a parser for the file format that we can use to make it dry ?

might be easiest to change to json since it’s less fragile than toml to tabs , spaces etc

Human checkers it if we want.

Make a GUI for end users using htmx to inspect the translations.

gedw99 commented 10 months ago

SSE or ws integration between htmx gui and storage layer so that changes to translations are evident in the gui.

Less refresh for users.

This works nicely for a real time system with code gen and web socket updates over htmx.

https://www.asyncapi.com/

https://github.com/lerenn/asyncapi-codegen

Pure golang . Embedded or global nats.

Api is also formalised to allow integration into larger systems.

Will allow pluggable integrations