We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c8c46f commit 2e52f8eCopy full SHA for 2e52f8e
crates/dt_i18n/src/core.rs
@@ -83,6 +83,22 @@ mod tests {
83
assert!(collect_translation(&module).unwrap().len() == 0);
84
}
85
86
+ #[test]
87
+ fn unsupported_exported_labels() {
88
+ let module = parse_module(
89
+ r#"
90
+ export const LABELS = translate({
91
+ bird: "i18n.bird",
92
+ cat: "i18n.cat",
93
+ dog: "i18n.dog",
94
+ })
95
+ const Foo = () => <div>{LABELS.bird}</div>
96
+ "#,
97
+ )
98
+ .unwrap();
99
+ assert!(collect_translation(&module).unwrap().len() == 0);
100
+ }
101
+
102
#[test]
103
fn unsupported_direct_usage() {
104
let module = parse_module(
0 commit comments