localization-l10n by mindrally/skills
npx skills add https://github.com/mindrally/skills --skill localization-l10n您是网页和移动应用程序本地化领域的专家。请应用以下指南,使国际化应用程序适应特定地区、语言和文化。
locales/
en-US/
common.json
legal.json
marketing.json
en-GB/
common.json
legal.json
marketing.json
es-ES/
common.json
legal.json
marketing.json
es-MX/
common.json
legal.json
marketing.json
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
// 根据语言环境格式化日期
const formatDate = (date: Date, locale: string) => {
return new Intl.DateTimeFormat(locale, {
year: 'numeric',
month: 'long',
day: 'numeric'
}).format(date);
};
// 美国: January 23, 2026
// 英国: 23 January 2026
// 德国: 23. Januar 2026
// 根据语言环境格式化数字
const formatNumber = (num: number, locale: string) => {
return new Intl.NumberFormat(locale).format(num);
};
// 美国: 1,234,567.89
// 德国: 1.234.567,89
// 法国: 1 234 567,89
// 根据语言环境格式化货币
const formatCurrency = (amount: number, locale: string, currency: string) => {
return new Intl.NumberFormat(locale, {
style: 'currency',
currency: currency
}).format(amount);
};
// 美国/USD: $1,234.56
// 德国/EUR: 1.234,56 EUR
// 日本/JPY: JPY 1,235
为阿拉伯语、希伯来语等实现完整的从右到左 (RTL) 支持
使用 CSS 逻辑属性进行方向性布局
适当镜像 UI 元素
处理双向文本(混合 LTR/RTL)
/* 使用逻辑属性支持 RTL */ .card { margin-inline-start: 1rem; padding-inline-end: 0.5rem; text-align: start; }
每周安装量
89
代码仓库
GitHub 星标数
43
首次出现时间
Jan 25, 2026
安全审计
安装于
gemini-cli74
opencode73
codex69
cursor69
claude-code68
github-copilot66
You are an expert in localization for web and mobile applications. Apply these guidelines to adapt internationalized applications for specific regions, languages, and cultures.
locales/
en-US/
common.json
legal.json
marketing.json
en-GB/
common.json
legal.json
marketing.json
es-ES/
common.json
legal.json
marketing.json
es-MX/
common.json
legal.json
marketing.json
// Format dates according to locale
const formatDate = (date: Date, locale: string) => {
return new Intl.DateTimeFormat(locale, {
year: 'numeric',
month: 'long',
day: 'numeric'
}).format(date);
};
// US: January 23, 2026
// UK: 23 January 2026
// Germany: 23. Januar 2026
// Format numbers according to locale
const formatNumber = (num: number, locale: string) => {
return new Intl.NumberFormat(locale).format(num);
};
// US: 1,234,567.89
// Germany: 1.234.567,89
// France: 1 234 567,89
// Format currency according to locale
const formatCurrency = (amount: number, locale: string, currency: string) => {
return new Intl.NumberFormat(locale, {
style: 'currency',
currency: currency
}).format(amount);
};
// US/USD: $1,234.56
// Germany/EUR: 1.234,56 EUR
// Japan/JPY: JPY 1,235
Implement full RTL (right-to-left) support for Arabic, Hebrew, etc.
Use CSS logical properties for directional layouts
Mirror UI elements appropriately
Handle bidirectional text (mixed LTR/RTL)
/* Use logical properties for RTL support */ .card { margin-inline-start: 1rem; padding-inline-end: 0.5rem; text-align: start; }
Weekly Installs
89
Repository
GitHub Stars
43
First Seen
Jan 25, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
gemini-cli74
opencode73
codex69
cursor69
claude-code68
github-copilot66
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
120,000 周安装
Ensembl 数据库查询与基因组分析指南 | 基因注释、序列检索、变异分析
178 周安装
头脑风暴助手 - 使用Gemini AI系统生成创意想法,支持SCAMPER、六顶思考帽等方法
176 周安装
EDOT Java 插桩指南:使用 Elastic OpenTelemetry Java 代理实现应用可观测性
181 周安装
应用商店优化 (ASO) 完整指南:关键词研究、元数据优化与竞品分析工具
175 周安装
ETE工具包:Python系统发育分析库,用于进化树操作、基因树分析与NCBI分类学集成
178 周安装
matchms Python质谱数据处理库:光谱导入、过滤、相似度计算与工作流构建
178 周安装