-
Notifications
You must be signed in to change notification settings - Fork 60k
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
Use i18n for DISCOVERY #5920
Use i18n for DISCOVERY #5920
Changes from all commits
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 |
---|---|---|
|
@@ -485,7 +485,7 @@ const tw = { | |
}, | ||
}, | ||
SearchChat: { | ||
Name: "搜尋", | ||
Name: "搜尋聊天記錄", | ||
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. 💡 Codebase verification Translations need to be updated for consistency across language files Only Traditional Chinese (tw) and Simplified Chinese (cn) use the more descriptive "Search Chat Records" translation, while other languages use a simpler "Search" translation. For consistency in user experience:
🔗 Analysis chainLGTM! The translation update improves clarity. The change from "搜尋" to "搜尋聊天記錄" makes the functionality clearer by explicitly stating that the search is for chat records. Let's verify the consistency of this translation across other language files: 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check if the SearchChat.Name translation is consistent across language files
# Expected: All language files should have similarly descriptive translations
# Search for SearchChat.Name in all locale files
rg -A 1 "SearchChat: \{" app/locales/
Length of output: 1450 |
||
Page: { | ||
Title: "搜尋聊天記錄", | ||
Search: "輸入搜尋關鍵詞", | ||
|
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.
🛠️ Refactor suggestion
Maintain i18n consistency across all DISCOVERY items
The "Stable Diffusion" string is hardcoded while other entries use localization. This inconsistency could cause issues when supporting multiple languages.
Consider using i18n for all strings: