Skip to content

v1.1.3

Compare
Choose a tag to compare
@huacnlee huacnlee released this 07 Mar 08:59
· 130 commits to main since this release

What's Changed

  • Improve t! macro to support argument end with a comma ,.
    t!("hello", locale = "en", count = 100);
    
    // And also support
    t!("hello", locale = "en", count = 100,);
  • Improve t! macro to support string var name.
    t!("messages.hello", name = "world");
    
    // Support use string var name
    t!("messages.hello", "name" => "Jason", "count" => 3 + 2);
    t!("messages.hello", locale = "zh-HK", "name" => "Jason", "count" => 3 + 2);