Internationalization for egui #1751
Replies: 3 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.
-
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.
-
FWIW I use i18n-embed-fl in some localized apps I work on with egui, and it works great. See the "convenience macro" at the bottom of the readme. It's just |
Beta Was this translation helpful? Give feedback.
-
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