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

Add ability to specify alternate path to i18n.toml

Open TechnoPorg opened this issue 5 months ago • 2 comments

I'm working on a fairly large project right now that uses i18n-embed, among other tools, and I prefer not to fill up the root directory with individual configuration files. It would be nice to have the option to specify a path to an alternate location for i18n.toml via a field in the Cargo manifest, like so:

[package]
name = "example"
# ... more standard cargo options

[package.metadata]
i18n-config-path = "conf/i18n.toml"

I would be happy to contribute the implementation if this is a change you're willing to accept. Thanks for your work on this project!

TechnoPorg avatar Jul 28 '25 02:07 TechnoPorg

Hi @TechnoPorg nice suggestion! Perhaps we could put it in package.metadata.cargo-i18n.config-path, leaving a spot for other values in the future should they be required? Definitely open to contributions

kellpossible avatar Jul 28 '25 03:07 kellpossible

That's a good idea. I'll try that shortly and then open a PR!

TechnoPorg avatar Jul 29 '25 01:07 TechnoPorg