1 parent 81b5fe5 commit b49edc6Copy full SHA for b49edc6
1 file changed
src/i18n.rs
@@ -36,10 +36,12 @@ impl LanguagePreference {
36
}
37
38
39
+#[cfg(any(target_os = "macos", target_os = "windows"))]
40
pub struct Texts {
41
lang: Language,
42
43
44
45
impl Texts {
46
pub const fn new(lang: Language) -> Self {
47
Self { lang }
@@ -380,6 +382,7 @@ fn detect_system_language_macos() -> Language {
380
382
crate::macos::locale::detect_system_language()
381
383
384
385
+#[cfg(target_os = "macos")]
386
pub fn first_quoted(s: &str) -> Option<&str> {
387
let mut in_quote = false;
388
let mut start = 0usize;
0 commit comments