Skip to content

Commit

Permalink
Update to new rust-i18n::locale() with breaking changes
Browse files Browse the repository at this point in the history
Signed-off-by: Varphone Wong <[email protected]>
  • Loading branch information
varphone committed Jan 20, 2024
1 parent 06e258e commit 07bc184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/macro/src/tr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ impl Tr {
let msg_val = self.msg.val;
let msg_kind = self.msg.kind;
let locale = self.locale.map_or_else(
|| quote! { rust_i18n::locale().as_str() },
|| quote! { &rust_i18n::locale() },
|locale| quote! { #locale },
);
let keys: Vec<_> = self.args.keys().iter().map(|v| quote! { #v }).collect();
Expand Down

0 comments on commit 07bc184

Please sign in to comment.