Skip to content

armgit / Filee

Public Imported from GitHub
0

Free, open-source file converter. Convert 263 formats offline by drag & drop — images, PDF, Word, Excel, PowerPoint, HWP/HWPX, video, audio, e-books and archives. No upload, no Office needed.

test(i18n): preserve filename tokens independently of regional quotation marks

BlackSpirits85a8cb60a9c2
diff --git a/tests/Filee.App.Tests/PortugueseLocalizationTests.cs b/tests/Filee.App.Tests/PortugueseLocalizationTests.cs
index 3a683894..04cab03e 100644
--- a/tests/Filee.App.Tests/PortugueseLocalizationTests.cs
+++ b/tests/Filee.App.Tests/PortugueseLocalizationTests.cs
@@ -187,8 +187,8 @@ public class PortugueseLocalizationTests
}
}
// These are real folder names/CLI arguments, not translatable labels.
- Assert.Contains("\"originals\"", translated["watch.originals_move"]);
- Assert.Contains("\"converted\"", translated["watch.output_placeholder"]);
+ Assert.Matches(@"\boriginals\b", translated["watch.originals_move"]);
+ Assert.Matches(@"\bconverted\b", translated["watch.output_placeholder"]);
Assert.Contains("filee watch <folder> --to <format>", translated["watch.cli_hint"]);
Assert.Contains(@"IMG_(\d+)", translated["watch.rename_find"]);
Assert.Contains("$1", translated["watch.rename_replace"]);