feat(macos): add locale info

This commit is contained in:
utox39
2025-03-18 10:27:56 +01:00
parent 72a272cf3e
commit 6ec1a50908

View File

@@ -76,6 +76,11 @@ pub fn getHostname(allocator: std.mem.Allocator) ![]u8 {
return hostname;
}
pub fn getLocale(allocator: std.mem.Allocator) ![]u8 {
const locale = try std.process.getEnvVarOwned(allocator, "LANG");
return locale;
}
/// Returns the system uptime.
///
/// Uses `sysctl` to fetch the system boot time and calculates the elapsed time.