Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(i18n): cover every Turkish word in the English function-word list

Ozgur Ersoy407126b590e9
diff --git a/scripts/__tests__/i18n-find-english.test.mjs b/scripts/__tests__/i18n-find-english.test.mjs
index 6e129d39c8..7c46fe2aef 100644
--- a/scripts/__tests__/i18n-find-english.test.mjs
+++ b/scripts/__tests__/i18n-find-english.test.mjs
@@ -11,6 +11,8 @@ test('looksEnglish flags a value with two English-only function words', () => {
test('looksEnglish ignores English-list words that are ordinary Turkish words', () => {
assert.equal(looksEnglish('Not: can sıkıcı olabilir', 'tr'), false);
assert.equal(looksEnglish('Not: may ekleyin', 'tr'), false);
+ assert.equal(looksEnglish('Has üzüm must', 'tr'), false);
+ assert.equal(looksEnglish('Had aşıldı, don uyarısı', 'tr'), false);
});
test('looksEnglish still flags real English left in a Turkish value', () => {
diff --git a/scripts/i18n-find-english.ts b/scripts/i18n-find-english.ts
index 66c3ce8b5c..02af2cfd65 100644
--- a/scripts/i18n-find-english.ts
+++ b/scripts/i18n-find-english.ts
@@ -121,9 +121,11 @@ const ENGLISH_FN = new Set(
);
// Words in ENGLISH_FN that are also ordinary words in a specific locale, so they say nothing
-// about English there. Turkish: "can" (life/soul), "not" (note, as in "Not: …"), "may" (yeast).
+// about English there. Turkish (checked against the whole list): "can" (life/soul), "not"
+// (note, as in "Not: …"), "may" (yeast), "must" (grape must), "has" (pure), "had" (limit),
+// "don" (frost). "and" (oath) stays: it is archaic in UI copy and English's strongest signal.
const LOCALE_SHARED_WORDS: Readonly<Record<string, ReadonlySet<string>>> = {
- tr: new Set(["can", "not", "may"]),
+ tr: new Set(["can", "not", "may", "must", "has", "had", "don"]),
};
interface CliOptions {