mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-01-03 12:02:36 +00:00
build: comment locale trim
This commit is contained in:
@@ -22,6 +22,9 @@ pub fn init(b: *std.Build, cfg: *const Config) !GhosttyI18n {
|
||||
defer steps.deinit();
|
||||
|
||||
inline for (internal_os.i18n.locales) |locale| {
|
||||
// There is no encoding suffix in the LC_MESSAGES path on FreeBSD,
|
||||
// so we need to remove it from `locale` to have a correct destination string.
|
||||
// (/usr/local/share/locale/en_AU/LC_MESSAGES)
|
||||
const target_locale = comptime if (builtin.target.os.tag == .freebsd)
|
||||
std.mem.trimRight(u8, locale, ".UTF-8")
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user