Internationalization for egui #1751
Unanswered
John-Nagle
asked this question in
Q&A
Replies: 2 comments
-
I'm a bit late to the party, but was this crate one you tried https://github.com/fewensa/egui-i18n ? if so did you encounter any issues? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I wrote my own, years ago: https://github.com/John-Nagle/ui-mock/blob/main/src/basicintl.rs |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Anyone have a good internationalization solution for egui? Something where UI functions that take a string argument get something like
t!("menu.open",lang)
and "menu.open" is looked up in a file of translations?
The problem is that it has to be really fast after the first lookup, because this runs on every frame. I've tried a few crates, but either the lookup is at run time (fluent) or the tricks to do it at compile time don't really work right (internationalization). Suggestions?
Beta Was this translation helpful? Give feedback.
All reactions