Skip to content

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

@wznmickey

Description

@wznmickey

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions