mirror of
https://github.com/BigBodyCobain/Shadowbroker.git
synced 2026-08-06 10:48:43 +02:00
Wire Persian into Telegram OSINT translate labels and locale docs.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -83,6 +83,7 @@ function sourceLangLabel(post: TelegramOsintPost): string {
|
||||
ru: 'Russian',
|
||||
en: 'English',
|
||||
ar: 'Arabic',
|
||||
fa: 'Persian',
|
||||
he: 'Hebrew',
|
||||
'zh-cn': 'Chinese',
|
||||
fr: 'French',
|
||||
|
||||
@@ -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,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"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user