Skip to content

Commit

Permalink
Fix build on macOS
Browse files Browse the repository at this point in the history
init_translations!() is not available there. Amends 2ed26a3
  • Loading branch information
tronical committed Mar 21, 2024
1 parent e616ac3 commit 020eaa4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/gallery/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ pub fn main() {
#[cfg(all(debug_assertions, target_arch = "wasm32"))]
console_error_panic_hook::set_once();

// Disable gettext on macOS due to https://github.com/Koka/gettext-rs/issues/114
#[cfg(not(target_os = "macos"))]
slint::init_translations!(concat!(env!("CARGO_MANIFEST_DIR"), "/lang/"));

let app = App::new().unwrap();
Expand Down

0 comments on commit 020eaa4

Please sign in to comment.