test: catch the informal "passe an" in german strings

This commit is contained in:
Linus Rath
2026-10-31 18:13:53 +01:00
parent 3c0d7ad505
commit 2e90f43181
+1 -1
View File
@@ -22,7 +22,7 @@ function strings(obj: Record<string, unknown>, prefix = '', out: Array<[string,
return out;
}
const INFORMAL = /\b(du|dich|dir|dein|deine|deinen|deinem|deiner|deines)\b|(?:^|[.!?]\s+)(Öffne|Tippe|Wähle|Prüfe|Übertrage)\s/i;
const INFORMAL = /\b(du|dich|dir|dein|deine|deinen|deinem|deiner|deines)\b|(?:^|[.!?]\s+)(Öffne|Tippe|Wähle|Prüfe|Übertrage|Passe)\s/i;
describe('German phone strings', () => {
it('say "Sie", not "du"', () => {