Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rust-i18n-cli can not catch all untranslated string #101

Open
wznmickey opened this issue Jan 21, 2025 · 0 comments
Open

rust-i18n-cli can not catch all untranslated string #101

wznmickey opened this issue Jan 21, 2025 · 0 comments

Comments

@wznmickey
Copy link

When I use macro over macro on the string, the string would not be detected.
For example,

#[macro_export]
macro_rules! warn {
    ($($args:tt)*) => {
        log::log!(log::Level::Warn, "{}", rust_i18n::t!(format!($($args)*)));
    };
}
warn!(
                        "In getting {url} : {e} {retry}/10",
                        url = url,
                        e = e,
                        retry = retry
                    );

will not be detected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant