cargo-i18n
cargo-i18n copied to clipboard
add support for xgettext
I'm building a GTK application where lots of translation strings exist inside Gnome Builder *.ui files.
This PR adds support for running xgettext over non-rust files.
My i18n.toml file now looks like this:
fallback_language = "en"
[gettext]
target_languages = ["nl"]
xtr = true
xgettext = [
"src/**/*.ui",
"data/*.xml.in",
"data/*.xml.in.in",
"data/*.desktop.in.in",
]
Thanks for the contribution! It needs a cargo fmt and I left one comment, then hopefully soon good to merge!