Skip to content

v0.4.0

Compare
Choose a tag to compare
@huacnlee huacnlee released this 09 Dec 07:37
· 195 commits to main since this release
  • Rename Command line tool as cargo i18n.
$ cargo i18n -h
cargo-i18n 0.4.0
---------------------------------------
Rust I18n command for help you simply to extract all untranslated texts from soruce code.

It will iter all Rust files in and extract all untranslated texts that used `t!` macro.
And then generate a YAML file and merge for existing texts.

https://github.com/longbridgeapp/rust-i18n

USAGE:
    cargo i18n [OPTIONS] [--] [source]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -l <locale>...        Source locale [default: en]
    -o <output>           Path for output locales YAML files. [default: ./locales]

ARGS:
    <source>    Path of your Rust crate root [default: ./]