How to embed and use .po files with gotext #90
tslocum
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This functionality seems to be undocumented currently. The following code demonstrates how translations may be embedded, parsed and loaded.
LoadLocale
should be called once at the very start of the application. A language may optionally be provided asforceLanguage
, which skips device locale detection. Note that you will need replace any references to theboxcars
domain with the domain used by your application. You may also need to modify the path to the .po files.For a more complete example, see boxcars.
Beta Was this translation helpful? Give feedback.
All reactions