From e8a988f6d34d26e23dbbcec49596b607dec034ce Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 7 Mar 2025 10:47:59 -0800 Subject: [PATCH] os: i18n unsupported on windows --- src/os/i18n.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/os/i18n.zig b/src/os/i18n.zig index 8a4efdc73..4c136db4f 100644 --- a/src/os/i18n.zig +++ b/src/os/i18n.zig @@ -1,4 +1,5 @@ const std = @import("std"); +const builtin = @import("builtin"); const build_config = @import("../build_config.zig"); const log = std.log.scoped(.i18n); @@ -47,6 +48,9 @@ pub const InitError = error{ /// want to set the domain for the entire application since this is also /// used by libghostty. pub fn init(resources_dir: []const u8) InitError!void { + // i18n is unsupported on Windows + if (builtin.os.tag == .windows) return; + // Our resources dir is always nested below the share dir that // is standard for translations. const share_dir = std.fs.path.dirname(resources_dir) orelse