S
S
Sly_tom_cat .2018-01-15 12:30:03
css
Sly_tom_cat ., 2018-01-15 12:30:03

How to localize GUI messages in Go?

There is a small project: https://github.com/slytomcat/yd-go
I want to tie a couple of languages ​​​​to the GUI.
I rummaged through everything and found something like: https://godoc.org/golang.org/x/text/message
But gotext extract pulled out only messages from Springtf (those with formatting), but not simple messages from Sprint. Yes, and what to do next with them - I don’t really understand either ....
On the one hand, there are messages there - the cat cried, you can do it with your hands .... but after using Poedit complete with gettext in Python, I can’t force yourself to do localization by the method of bicycle construction.
I tried to find examples - but most projects implement localization at the front-end level in JS, but I want to do it in Go ...
Tell me or poke your nose - how are localization issues resolved in GO?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Shchuchkin, 2019-11-01
@HelenaS

5dbc26fd5cecb502968606.jpeg
https://jsfiddle.net/stc4ozjn/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question