Wire Persian into Telegram OSINT translate labels and locale docs.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
BigBodyCobain
2026-08-03 11:05:25 -06:00
co-authored by Cursor
parent cbd94f25c1
commit 4c461a2ccd
6 changed files with 15 additions and 3 deletions
@@ -83,6 +83,7 @@ function sourceLangLabel(post: TelegramOsintPost): string {
ru: 'Russian',
en: 'English',
ar: 'Arabic',
fa: 'Persian',
he: 'Hebrew',
'zh-cn': 'Chinese',
fr: 'French',
+6 -1
View File
@@ -24,7 +24,12 @@ const RTL_LOCALES: ReadonlySet<Locale> = new Set(['fa']);
* 2. Import it above and add to `translations` below
* 3. Add an entry here
* 4. Extend the `Locale` type
* 5. Read CONTRIBUTING.md — translations must be technically faithful
* 5. If the language is RTL, add its code to `RTL_LOCALES`
* 6. Map the locale in `backend/services/telegram_translate.py`
* (`_LOCALE_TO_GOOGLE` + `_SOURCE_LANG_LABELS`) and the fallback
* labels in `TelegramOsintPopup.tsx` so Telegram OSINT posts
* translate into the UI language
* 7. Read CONTRIBUTING.md — translations must be technically faithful
* to the English source. Politically loaded substitutions or
* framing aligned with state propaganda from ANY country will
* be rejected.
+1 -1
View File
@@ -1,6 +1,6 @@
{
"brand": {
"title": "S H A D O W B R O K E R",
"title": "S H A D O W B R O K E R",
"subtitle": "رهگیری تهدیدات جهانی",
"systemMetrics": "OPTIC VIS:113 SRC:180 DENS:1.42 0.8ms"
},