translation-strings
Use when reviewing a codebase for internationalisation readiness, setting up an i18n library, or preparing strings for a new locale.
DeepseekModel
官方收录技能
质量 优秀 · 90
v1.0.0
获取
https://deepseekmodel.com/api/download.php?id=thedaviddias-front-end-checklist-skills-translation-strings-skill-md&format=skill
下载 .skill
标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用
.skill 文件中 system_prompt 字段的实际内容。
name translation-strings description Use when reviewing a codebase for internationalisation readiness, setting up an i18n library, or preparing strings for a new locale. metadata {"category":"javascript","priority":"medium","difficulty":"intermediate","estimatedTime":"30","source":"frontendchecklist.io","url":"https://frontendchecklist.io/en/rules/javascript/translation-strings"} Write internationalisation-friendly translation strings Naive string concatenation produces untranslatable sentences because word order varies dramatically across languages. A pattern like "Found " + count + " results" cannot be translated correctly into languages where the number appears in a different position or where the noun form changes depending on the count. Bad i18n strings force translators to work around developer mistakes — or simply leave content untranslated. Quick Reference Never concatenate translated strings with variables — use named placeholders Use ICU MessageFormat for pluralisation, gender, and select patterns Keep translation keys descriptive and scoped to their feature context Extract all user-visible strings — do not hardcode any copy in components Check Check whether translation strings use proper message formatting with placeholders rather than string concatenation. Fix Replace concatenated translation strings with ICU message format patterns and ensure pluralisation is handled via the library, not conditionals. Explain Explain why string concatenation breaks translations and how ICU MessageFormat handles variable word order, pluralisation, and gender. Code Review Review components and utility functions for hardcoded user-visible strings, string concatenation involving translated text, and missing plural forms. For full implementation details, code examples, and framework-specific guidance, see references/rule.md . Rule page: https://frontendchecklist.io/en/rules/javascript/translation-strings
Agent 识别该技能的关键词,点击任意一个即可复制。
该技能未提供触发词。
下载的 .skill 包内含以下字段。
| 字段 | 说明 |
|---|---|
| format | 格式标识(skill/v1) |
| skill_id | 技能唯一 ID |
| name | 技能名称 |
| version | 版本号 |
| description | 技能描述 |
| category | 所属分类(数组) |
| trigger_words | 触发词列表 |
| tags | 标签列表 |
| source | 来源标识 |
| source_url | 来源链接(本页地址) |
| exported_at | 导出时间(每次下载生成) |
| system_prompt | 系统提示词正文 |
| model_config | 模型参数:provider / model / temperature / max_tokens / top_p |
| examples | 示例 |
| install_guide | 各平台导入说明(Coze / Dify / Claude / 自定义框架) |