Skip to content

v1.0.1

Compare
Choose a tag to compare
@huacnlee huacnlee released this 18 Nov 06:30
· 161 commits to main since this release

Break Change

  • Take language code from filename instead of .yml files by @Pure-Peace in #10

Upgrade Guides

$ cargo install rust-i18n --force

New version of rust-i18n has not need add language code in YAML file:

Before

locales/en.yml

en:
  hello: Hello world
  messages:
    hello: Hello, %{name}

After

locales/en.yml

hello: Hello world 
messages:
  hello: Hello, %{name}

You must remove change the exist locale files.

VS Code I18n Ally guide

I18n Ally is a VS Code extension for helping you translate your Rust project.

You can add i18n-ally-custom-framework.yml to your project .vscode directory, and then use I18n Ally can parse t! marco to show translate text in VS Code editor.

SCR-20221118-lzz

New Contributors