cargo-i18n icon indicating copy to clipboard operation
cargo-i18n copied to clipboard

Fix rust analyzer error when translation file change

Open wiiznokes opened this issue 4 months ago • 3 comments

fix https://github.com/kellpossible/cargo-i18n/issues/147

Tho, i'm not sure this is the best solution. I think a better one would be to use the build.rs file. cargo-i18n could provide an helper for this

wiiznokes avatar Aug 18 '25 21:08 wiiznokes

Using a build.rs in i18n-embed-fl would probably work, but there is the problem of retreiving the Manifest dir. We can't use the MANIFEST_DIR env variable, and using a custom env variable will probably not work when multiple crate are using i18n-embed-fl

wiiznokes avatar Aug 19 '25 11:08 wiiznokes

technicallty, we could use a custom env variable as a list of path. This might be the more elegant solution

wiiznokes avatar Aug 19 '25 14:08 wiiznokes

@wiiznokes thanks for contribution! Currently a bit snowed under with other life things but I'll review as soon as I get the chance

kellpossible avatar Aug 25 '25 03:08 kellpossible