build: disable fuzzy matching for msgmerge (#7866)

This commit is contained in:
Leah Amelia Chen
2025-07-09 15:15:21 +08:00
committed by GitHub

View File

@ -156,7 +156,7 @@ fn createUpdateStep(b: *std.Build) !*std.Build.Step {
);
inline for (internal_os.i18n.locales) |locale| {
const msgmerge = b.addSystemCommand(&.{ "msgmerge", "-q" });
const msgmerge = b.addSystemCommand(&.{ "msgmerge", "--quiet", "--no-fuzzy-matching" });
msgmerge.addFileArg(b.path("po/" ++ locale ++ ".po"));
msgmerge.addFileArg(xgettext.captureStdOut());
usf.addCopyFileToSource(msgmerge.captureStdOut(), "po/" ++ locale ++ ".po");