-
Notifications
You must be signed in to change notification settings - Fork 13.2k
fix: adding validation when adding link to message composer #37573
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
988f600
3e0de47
001ac86
e0f2346
a7c32b9
6136d24
389070f
10a7826
c675fe3
1436b2a
230c732
8027fc3
439ab5a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4405,6 +4405,7 @@ | |
| "Test_Connection": "परीक्षण कनेक्शन", | ||
| "Test_Desktop_Notifications": "डेस्कटॉप सूचनाओं का परीक्षण करें", | ||
| "Test_LDAP_Search": "एलडीएपी खोज का परीक्षण करें", | ||
| "Text": "टेक्स्ट", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do not add keys to non-English locale files (i18n workflow). Per this repo’s i18n process, new keys should be added only to packages/i18n/src/locales/en.i18n.json; other locales are populated via the external translation pipeline and/or fall back to English. Please revert this addition in hi-IN and keep the source key in en only. Based on learnings Apply: remove "Text" from hi-IN and rely on fallback until it lands via the translation pipeline. 🤖 Prompt for AI Agents |
||
| "Texts": "ग्रंथों", | ||
| "Thank_You_For_Choosing_RocketChat": "रॉकेट.चैट चुनने के लिए धन्यवाद!", | ||
| "Thank_you_exclamation_mark": "धन्यवाद!", | ||
|
|
@@ -4594,6 +4595,8 @@ | |
| "UI_Use_Real_Name": "वास्तविक नाम का प्रयोग करें", | ||
| "URL": "यूआरएल", | ||
| "URLs": "यूआरएल", | ||
| "URL_is_required": "यूआरएल आवश्यक है", | ||
| "URL_must_start_with_'http://'_or_'https://'": "यूआरएल की शुरुआत 'http://' या 'https://' से होनी चाहिए।", | ||
|
Comment on lines
+4598
to
+4599
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chainURL validation strings should not be added in hi-IN; keep only in en and let the pipeline translate.
To verify duplication and key placement across locales, run: 🏁 Script executed: #!/bin/bash
# Check where the new keys appear
rg -nP --glob 'packages/i18n/src/locales/*.json' \
-e '"URL_is_required"\s*:' \
-e '"URL_must_start_with_\\'http://\\'_or_\\'https://\\'"\s*:' \
-e '"Text"\s*:'
# Ensure only en.i18n.json contains the new URL validation keys
rg -nP --glob 'packages/i18n/src/locales/*.json' '"URL_is_required"\s*:' | grep -v '/en.i18n.json' && echo "Found outside en (should be moved)" || echo "OK: only in en"
rg -nP --glob 'packages/i18n/src/locales/*.json' '"URL_must_start_with_\\'http://\\'_or_\\'https://\\'"\s*:' | grep -v '/en.i18n.json' && echo "Found outside en (should be moved)" || echo "OK: only in en"Length of output: 1051 Remove URL validation keys from hi-IN; keep only in en.i18n.json and let the translation pipeline handle other locales. Per the i18n workflow, new translation keys should only be added to packages/i18n/src/locales/en.i18n.json. The verification confirms 🤖 Prompt for AI Agents |
||
| "UTC_Timezone": "यूटीसी समय क्षेत्र", | ||
| "UTF8_Channel_Names_Validation": "UTF8 चैनल नाम सत्यापन", | ||
| "UTF8_Channel_Names_Validation_Description": "रेगएक्सपी जिसका उपयोग चैनल नामों को मान्य करने के लिए किया जाएगा", | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -5154,6 +5154,8 @@ | |||||
| "UI_Use_Real_Name": "Usar o nome verdadeiro", | ||||||
| "URL": "URL", | ||||||
| "URLs": "URLs", | ||||||
| "URL_is_required": "URL é obrigatório", | ||||||
| "URL_must_start_with_'http://'_or_'https://'": "A URL deve começar com 'http://' ou 'https://'", | ||||||
|
Comment on lines
+5157
to
+5158
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do not add new keys to non-English locales; revert these pt-BR insertions. In this repo, new i18n keys must be introduced only in packages/i18n/src/locales/en.i18n.json. Other locales are populated via the external translation pipeline and fall back to English meanwhile. Please remove these additions from pt-BR and keep the keys only in en.i18n.json. Based on learnings Apply this removal here: - "URL_is_required": "URL é obrigatório",
- "URL_must_start_with_'http://'_or_'https://'": "A URL deve começar com 'http://' ou 'https://'",📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| "UTC_Timezone": "Fuso horário UTC", | ||||||
| "UTF8_Channel_Names_Validation": "Validação de nomes de canal UTF8", | ||||||
| "UTF8_Channel_Names_Validation_Description": "RegExp que será usado para validar nomes de canais", | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
Add new i18n keys only in English and avoid special characters in key names
Apply this removal in es.i18n.json (translations will come via the pipeline):
And in en.i18n.json, define stable keys such as:
Can you confirm the translation pipeline is active for this branch so Spanish (and other locales) will sync automatically after adding the keys to en.i18n.json?
🏁 Script executed:
Length of output: 0
🏁 Script executed:
Length of output: 0
🏁 Script executed:
Length of output: 95
🏁 Script executed:
Length of output: 18522
Remove Spanish translations—keys already exist in English and will sync via translation pipeline
The keys
URL_is_requiredandURL_must_start_with_'http://'_or_'https://'already exist in packages/i18n/src/locales/en.i18n.json. Per the repo's i18n workflow, new translations should only be added to the English locale file; other locales are populated via the external translation pipeline. Remove these entries from es.i18n.json:The Spanish translations will be generated automatically once you confirm these keys are finalized in en.i18n.json.
📝 Committable suggestion
🤖 Prompt for AI Agents