longbridge/rust-i18n
 Watch   
 Star   
 Fork   
2025-11-14 18:26:10
rust-i18n

v4.0.0-preview

What's Changed

New Contributors

Full Changelog: https://github.com/longbridge/rust-i18n/compare/v3.1.5...v4.0.0-preview1

2025-05-22 19:49:33
rust-i18n

v3.1.5

What's Changed

New Contributors

Full Changelog: https://github.com/longbridge/rust-i18n/compare/v3.1.4...v3.1.5

2025-04-01 21:54:49
rust-i18n
2025-02-20 11:00:53
rust-i18n

v3.1.3

What's Changed

New Contributors

Full Changelog: https://github.com/longbridge/rust-i18n/compare/v3.1.2...v3.1.3

2024-08-20 19:48:45
rust-i18n

v3.1.2

What's Changed

New Contributors

Full Changelog: https://github.com/longbridgeapp/rust-i18n/compare/v3.1.1...v3.1.2

2024-08-09 11:44:18
rust-i18n

v3.1.1

What's Changed

Full Changelog: https://github.com/longbridgeapp/rust-i18n/compare/v3.0.1...v3.1.1

2024-01-23 09:43:17
rust-i18n

v3.0.1

What's Changed

New Contributors

Full Changelog: https://github.com/longbridgeapp/rust-i18n/compare/v3.0.0...v3.0.1

2024-01-19 18:26:38
rust-i18n

v3.0.0

What's Changed

  • 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 RwLock from locale() and set_locale().
    • String patterns replacement, time reduce 10% ~ 80%.
    • Reduce memory copy on t!().

Performance improved

- 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]

Breaking Changes

  • rust_i18n::locale() -> String => rust_i18n::locale() -> Arc<String> .
  • t!() -> String => t!() -> Cow<str>.
2024-01-15 15:30:45
rust-i18n

v2.3.1

What's Changed

Fallback example:

  1. zh-CN or zh-HK or zh-SG
  2. zh

New Contributors

Full Changelog: https://github.com/longbridgeapp/rust-i18n/compare/v2.3.0...v2.3.1

2023-11-14 10:56:10
rust-i18n

v2.3.0

What's Changed

$ cargo install rust-i18n-cli

Full Changelog: https://github.com/longbridgeapp/rust-i18n/compare/v2.2.1...v2.3.0