locale-images
它能做什么
这项技能检查图片和图标中可能在不同文化中有不同含义的内容,例如手势或颜色。适用于为国际受众搭建网站的设计师和开发者。
适用场景
- ✓当你在全球发布前,请智能体检查插图或图标文化含义的时候。
- ✓当网站将在多个国家展示,而部分图片可能需要本地版本的时候。
- ✓当你在搭建渲染图片的组件,并希望有中性的默认图片加上地区选项的时候。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/locale-images/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我检查网站上的图标,看看有没有在其他国家可能引起冒犯的内容。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会检查图片和图标资源中的手势、颜色符号、动物或宗教图像。它会建议中性的替代图片,以及一个简单的查找机制:除非某地区有专用图片,否则使用默认图片。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Use locale-neutral images and provide cultural overrides when needed
Images that feel natural in one culture can be confusing or offensive in another — a thumbs-up is a vulgar gesture in parts of the Middle East and West Africa, and a checkmark means "wrong" in Japan. Choosing neutral visuals by default and providing targeted overrides avoids unintentional offence and keeps the image management surface small.
Quick Reference
- Hand gestures, colors, and common symbols carry different meanings across cultures
- Prefer abstract or universally understood icons as the default
- When locale-specific images are required use a lookup map with a neutral fallback
- Never embed text inside images — it cannot be translated or resized
Check
Identify image assets, SVG icons, and illustration components that use hand gestures, color symbolism, animals, or religious imagery that may carry different meanings across cultures or locales.
Fix
Replace culturally specific images with locale-neutral alternatives where possible, and implement a locale-aware image lookup with a neutral fallback for images that must vary by region.
Explain
Explain why culturally specific imagery causes problems for international audiences and how a locale-image lookup pattern provides targeted overrides without requiring a separate asset for every locale.
Code Review
Review React components and asset pipelines for hardcoded image paths, hand gesture icons, flag icons used to represent languages, and any image that contains embedded text. Flag each as a potential localization concern.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/i18n/locale-images
常见问题
为什么要避免在图片中放文字?
图片中的文字无法翻译或调整大小,因此这项技能建议把文字保留在页面本身中。
每个国家都需要单独的图片吗?
不需要。这项技能描述的是带有中性备用方案的查找机制,只有确实需要更改的图片才会有地区版本。
哪些图片会被标记?
手势、颜色、常见符号、动物以及可能含有不同意义的宗教图像。
详情
作者的原始描述
Use when reviewing image assets, icon libraries, or components that render illustrations to identify culture-specific content that may need locale overrides or replacement with neutral alternatives.
热度
- GitHub 星标
- 75k
- 排名
- #2930
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。