Closed yk0n9 closed 3 months ago
windows 11 rustc 1.80.1 rust-i18n 3.1.1
this issue is casued by following path:
rust_i18n::set_locale(#default_locale);
during init _RUST_I18N_BACKEND.for a workaround, just call t!() before set_locale.
for bugfix, i think when init default_locale, should check if set_locale is already called.
my code:
zh-CN.yaml
en-US.yaml
first time second time
It can be found that even the first call will not be fully
i18n
The second or subsequent calls will never find the yaml content