Best practices for localization?

Dear all, I'm interested in writing the one or other small cli application. But I wonder how to internationalize/localize the application. I know there are some crates for gettext or fluent but I'm a bit lost in as to how I can put this into practice. I would also prefer that everything can be done with cargo, so without having to rely on other tools like meson. And I'm a bit surprised that this topic is not even mentioned in the Command Line Book. I would be pleased to receive relevant links to tutorials or best practices.

Thanks a lot
Martin

hi,

i have used fluent with some wrapper crate for my first "working" app in the past for a simple windows UI to switch between few languages.

Not sure how up-to-date or clean it is in regard to best practices, but you may see it on fairly short/simple app in my repo... GitHub - RustyJoeM/docx-template-filler

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.