v4.0.0-preview
- Add error message when parsing fails by @Jasper-Bekkers in https://github.com/longbridge/rust-i18n/pull/116
- Add Cargo.lock by @orhun in https://github.com/longbridge/rust-i18n/pull/120
- Convert Backend's &str to Cow instead by @Jasper-Bekkers in https://github.com/longbridge/rust-i18n/pull/114
- Bump v4.0.0-preview0 by @huacnlee in https://github.com/longbridge/rust-i18n/pull/130
- chore: Remove
once_cell, usestd::sync::LazyLock. by @huacnlee in https://github.com/longbridge/rust-i18n/pull/131 - Add
try_load_localesmethod to rust-i18n-support. by @martin-kolarik in https://github.com/longbridge/rust-i18n/pull/127 - Add
messages_for_localemethod to get all message for locale to Backend. by @martin-kolarik in https://github.com/longbridge/rust-i18n/pull/126
- @Jasper-Bekkers made their first contribution in https://github.com/longbridge/rust-i18n/pull/116
- @orhun made their first contribution in https://github.com/longbridge/rust-i18n/pull/120
- @martin-kolarik made their first contribution in https://github.com/longbridge/rust-i18n/pull/127
Full Changelog: https://github.com/longbridge/rust-i18n/compare/v3.1.5...v4.0.0-preview1
v3.1.5
- Add parsing of workspace.metadata.i18n by @litcc in https://github.com/longbridge/rust-i18n/pull/93
- Fix load translations to avoid stack overflow. by @nduchaux in https://github.com/longbridge/rust-i18n/pull/112
- @litcc made their first contribution in https://github.com/longbridge/rust-i18n/pull/93
- @nduchaux made their first contribution in https://github.com/longbridge/rust-i18n/pull/112
Full Changelog: https://github.com/longbridge/rust-i18n/compare/v3.1.4...v3.1.5
v3.1.4
- chore: Switch to use serde_yaml. by @huacnlee in https://github.com/longbridge/rust-i18n/pull/108
By special reason https://github.com/rustsec/advisory-db/issues/2212
Full Changelog: https://github.com/longbridge/rust-i18n/compare/v3.1.3...v3.1.4
v3.1.3
- Replace
HashMapwithBTreeMapto remove non-determinism in build by @ilmanzo in https://github.com/longbridge/rust-i18n/pull/104
- @ilmanzo made their first contribution in https://github.com/longbridge/rust-i18n/pull/104
Full Changelog: https://github.com/longbridge/rust-i18n/compare/v3.1.2...v3.1.3
v3.1.2
- Reduce unnecessary memory copying by @yk0n9 in https://github.com/longbridgeapp/rust-i18n/pull/89
- Fix lazy init always "en" by @yk0n9, @KKRainbow in https://github.com/longbridgeapp/rust-i18n/pull/88
- @yk0n9, @KKRainbow made their first contribution in https://github.com/longbridgeapp/rust-i18n/pull/88
Full Changelog: https://github.com/longbridgeapp/rust-i18n/compare/v3.1.1...v3.1.2
v3.1.1
- Introduced the
minify_keyfeature fori18n!and added support for format specifiers int!by @varphone in https://github.com/longbridgeapp/rust-i18n/pull/73 - Update example for share I18n in entire workspace by @huacnlee in https://github.com/longbridgeapp/rust-i18n/pull/80
- Update doc for locale file version. by @huacnlee in https://github.com/longbridgeapp/rust-i18n/pull/82
- Update to use serde_yml (#86)
Full Changelog: https://github.com/longbridgeapp/rust-i18n/compare/v3.0.1...v3.1.1
v3.0.1
- Use
arc_swapto implementAtomicStrfor thread-safe. by @Kijewski in https://github.com/longbridgeapp/rust-i18n/pull/72
- @Kijewski made their first contribution in https://github.com/longbridgeapp/rust-i18n/pull/72
Full Changelog: https://github.com/longbridgeapp/rust-i18n/compare/v3.0.0...v3.0.1
v3.0.0
- Add more than one fallback with priority support, eg:
i18n!("locales", fallback = ["en", "es]);by @varphone https://github.com/longbridgeapp/rust-i18n/pull/69- Remove
RwLockfromlocale()andset_locale(). - String patterns replacement, time reduce 10% ~ 80%.
- Reduce memory copy on
t!().
- Remove
- t time: [100.91 ns 101.06 ns 101.24 ns]
- t_with_args time: [495.56 ns 497.88 ns 500.64 ns]
+ t time: [58.274 ns 60.222 ns 62.390 ns]
+ t_with_args time: [167.46 ns 170.94 ns 175.64 ns]
rust_i18n::locale() -> String=>rust_i18n::locale() -> Arc<String>.t!() -> String=>t!() -> Cow<str>.
v2.3.1
- Add lookup fallback (RFC 464) to t! by @varphone in https://github.com/longbridgeapp/rust-i18n/pull/68
Fallback example:
zh-CNorzh-HKorzh-SGzh
- @varphone made their first contribution in https://github.com/longbridgeapp/rust-i18n/pull/68
Full Changelog: https://github.com/longbridgeapp/rust-i18n/compare/v2.3.0...v2.3.1
v2.3.0
- Split
cargo i18nto separate crate by @urkle in https://github.com/longbridgeapp/rust-i18n/pull/66
$ cargo install rust-i18n-cli
Full Changelog: https://github.com/longbridgeapp/rust-i18n/compare/v2.2.1...v2.3.0