-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
t! return previous value in the file #46
Comments
Show me your file struct please |
I use cargo workspace and i18n is in A crate in workspace. I usually run B crate. When I modified |
From my observations, if you modify only localization files in crate A, Cargo will not trigger a rebuild when crate B, which depends on A, is compiled. This results in B using an outdated version of A's localization files. |
One solution I got hinted at in the Rust GameDev discord is to add fn main() {
println!("cargo:rerun-if-changed=locales");
} Note that this will rebuild the whole crate |
Thank you for your investigation! |
Does it can detect file changed and compile newer version of locale files? It seems not work.
I just modified the value with the same key locale file
en.toml
and it just showed me previous value of it.How to tell
rust-i18n
to file is changed?The text was updated successfully, but these errors were encountered: