Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问许可证需确认审计通过

multi-language-localization多语言本地化

Agent Skill

multi-language-localization 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

220

周安装

9

GitHub Stars

7

下载量

71
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:multi-language-localization(多语言本地化)
来源仓库:https://github.com/hack23/riksdagsmonitor
仓库路径:skills/multi-language-localization
安装命令:
npx skills add https://github.com/hack23/riksdagsmonitor --skill multi-language-localization
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/hack23/riksdagsmonitor --skill multi-language-localization

简介

处理 GitHub 仓库协作信息与代码变更事项。

  • 适用于 Issue、PR 及团队协作流程管理。
  • 可辅助跟踪仓库状态与代码审查进度。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • 需确认 token 权限与仓库访问范围后再使用。
  • multi-language-localization 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Multi-Language Localization Skill

Purpose

Implement proper internationalization (i18n) and localization (l10n) for static websites supporting multiple languages.

Core Principles

1. Language Declaration

<!-- ✅ Always declare language -->
<html lang="en">

<!-- For Swedish -->
<html lang="sv">

<!-- For Arabic (RTL) -->
<html lang="ar" dir="rtl">

2. File Structure

index.html       (en - English, default)
index_sv.html    (sv - Swedish)
index_da.html    (da - Danish)
index_no.html    (no - Norwegian)
index_fi.html    (fi - Finnish)
index_de.html    (de - German)
index_fr.html    (fr - French)
index_es.html    (es - Spanish)
index_nl.html    (nl - Dutch)
index_ar.html    (ar - Arabic, RTL)
index_he.html    (he - Hebrew, RTL)
index_ja.html    (ja - Japanese)
index_ko.html    (ko - Korean)
index_zh.html    (zh - Chinese)

3. Language Switcher

<nav aria-label="Language selection">
  <ul>
    <li><a href="index.html" hreflang="en">English</a></li>
    <li><a href="index_sv.html" hreflang="sv">Svenska</a></li>
    <li><a href="index_ar.html" hreflang="ar">العربية</a></li>
  </ul>
</nav>

4. RTL Support

/* RTL-specific styles */
[dir="rtl"] .element {
  text-align: right;
  direction: rtl;
}

/* Use logical properties */
.element {
  margin-inline-start: 1rem;  /* Not margin-left */
  padding-inline-end: 1rem;   /* Not padding-right */
}

5. Cultural Considerations

  • Date formats (US: MM/DD/YYYY, EU: DD/MM/YYYY)
  • Number formats (1,000.00 vs 1.000,00)
  • Currency symbols
  • Text direction (LTR vs RTL)
  • Color meanings (cultural significance)

SEO Best Practices

Hreflang Tags

<link rel="alternate" hreflang="en" href="https://example.com/index.html">
<link rel="alternate" hreflang="sv" href="https://example.com/index_sv.html">
<link rel="alternate" hreflang="x-default" href="https://example.com/index.html">

Sitemap

<url>
  <loc>https://example.com/index.html</loc>
  <xhtml:link rel="alternate" hreflang="sv" href="https://example.com/index_sv.html"/>
</url>

Testing

  • Native speaker review
  • RTL layout testing
  • Character encoding verification
  • Cultural appropriateness check
  • SEO validation (hreflang)

Remember

  • Native Speakers: Use professional translation
  • Cultural Context: Consider cultural differences
  • RTL Support: Test right-to-left languages
  • Consistent UX: Same experience across languages
  • SEO: Proper hreflang and sitemap

References


Number and Date Formatting (Production Data)

This section provides validated formatting from actual translated news articles (Feb 2026).

Number Formatting by Language

Thousands Separator and Decimal Point:

LanguageThousandsDecimalExampleUsage
English (en)comma (,)period (.)1,000.50International standard
Swedish (sv)space ()comma (,)1 000,50Official Swedish standard
German (de)space () or period (.)comma (,)1 000,50 or 1.000,50Space preferred
French (fr)space ()comma (,)1 000,50Official French standard
Spanish (es)space () or period (.)comma (,)1 000,50 or 1.000,50Space preferred
Dutch (nl)period (.)comma (,)1.000,50Period for thousands
Danish (da)period (.)comma (,)1.000,50Period for thousands
Norwegian (no)space ()comma (,)1 000,50Official Norwegian standard
Finnish (fi)space ()comma (,)1 000,50Official Finnish standard
Japanese (ja)comma (,)period (.)1,000.50Western style
Korean (ko)comma (,)period (.)1,000.50Western style
Chinese (zh)comma (,)period (.)1,000.50Western style
Arabic (ar)comma (,)period (.)١٬٠٠٠٫٥٠ or 1,000.50Arabic-Indic optional
Hebrew (he)comma (,)period (.)1,000.50Western style

Implementation:

// Format numbers for language with documented separators
function formatNumber(num, lang) {
  const formats = {
    'en': { thousands: ',', decimal: '.' },
    'sv': { thousands: ' ', decimal: ',' },
    'de': { thousands: ' ', decimal: ',' },
    'fr': { thousands: ' ', decimal: ',' },
    'es': { thousands: ' ', decimal: ',' },
    'nl': { thousands: '.', decimal: ',' },
    'da': { thousands: '.', decimal: ',' },
    'no': { thousands: ' ', decimal: ',' },
    'fi': { thousands: ' ', decimal: ',' },
    'ja': { thousands: ',', decimal: '.' },
    'ko': { thousands: ',', decimal: '.' },
    'zh': { thousands: ',', decimal: '.' },
    'ar': { thousands: ',', decimal: '.' },
    'he': { thousands: ',', decimal: '.' }
  };
  const fmt = formats[lang] || formats['en'];

  // Normalize to two decimals, then trim to 0–2 as needed
  const isNegative = num < 0;
  const absolute = Math.abs(num);
  const fixed = absolute.toFixed(2);
  let [intPart, fracPart] = fixed.split('.');

  // Insert thousands separators in the integer part
  intPart = intPart.replace(/\B(?=(\d{3})+(?!\d))/g, fmt.thousands);

  // Trim trailing zeros from fractional part to allow 0–2 decimals
  fracPart = fracPart.replace(/0+$/, '');

  let result = intPart;
  if (fracPart.length > 0) {
    result += fmt.decimal + fracPart;
  }

  if (isNegative) {
    result = '-' + result;
  }

  return result;
}

Date Formatting by Language

From News Articles (Feb 2026):

LanguageFormatExampleDay-Month Order
English (en)Month D, YYYYFebruary 15, 2026Month first
Swedish (sv)D month YYYY15 februari 2026Day first
German (de)D. Month YYYY15. Februar 2026Day first (with period)
French (fr)D month YYYY15 février 2026Day first
Spanish (es)D de month de YYYY15 de febrero de 2026Day first (with "de")
Dutch (nl)D month YYYY15 februari 2026Day first
Danish (da)D. month YYYY15. februar 2026Day first (with period)
Norwegian (no)D. month YYYY15. februar 2026Day first (with period)
Finnish (fi)D. monthkuuta YYYY15. helmikuuta 2026Day first (genitive case)
Japanese (ja)YYYY年M月D日2026年2月15日Year-Month-Day
Korean (ko)YYYY년 M월 D일2026년 2월 15일Year-Month-Day
Chinese (zh)YYYY年M月D日2026年2月15日Year-Month-Day
Arabic (ar)D month YYYY١٥ فبراير ٢٠٢٦Day first (Arabic-Indic optional)
Hebrew (he)D bmonth YYYY15 בפברואר 2026Day first (with ב prefix)

Month Names:

EnglishSwedishGermanFrenchSpanishDutch
JanuaryjanuariJanuarjanvierenerojanuari
FebruaryfebruariFebruarfévrierfebrerofebruari
MarchmarsMärzmarsmarzomaart
AprilaprilAprilavrilabrilapril
MaymajMaimaimayomei
JunejuniJunijuinjuniojuni
JulyjuliJulijuilletjuliojuli
AugustaugustiAugustaoûtagostoaugustus
SeptemberseptemberSeptemberseptembreseptiembreseptember
OctoberoktoberOktoberoctobreoctubreoktober
NovembernovemberNovembernovembrenoviembrenovember
DecemberdecemberDezemberdécembrediciembredecember

Day of Week:

EnglishSwedishGermanFrenchSpanishDutchFinnish
MondaymåndagMontaglundilunesmaandagmaanantai
TuesdaytisdagDienstagmardimartesdinsdagtiistai
WednesdayonsdagMittwochmercredimiércoleswoensdagkeskiviikko
ThursdaytorsdagDonnerstagjeudijuevesdonderdagtorstai
FridayfredagFreitagvendrediviernesvrijdagperjantai
SaturdaylördagSamstagsamedisábadozaterdaglauantai
SundaysöndagSonntagdimanchedomingozondagsunnuntai

Time Formatting

24-hour vs. 12-hour:

LanguageClockExampleNote
English (en)12-hour2:30 PMAM/PM required
Swedish (sv)24-hour14:30Period or colon separator
German (de)24-hour14:30 Uhr"Uhr" suffix
French (fr)24-hour14h30"h" separator
Spanish (es)24-hour14:30Colon separator
Nordic (da, no, fi)24-hour14:30 or 14.30Period common
CJK (ja, ko, zh)24-hour14:30Colon separator
Arabic (ar)12-hour٢:٣٠ مArabic-Indic optional
Hebrew (he)24-hour14:30Colon separator

Currency Formatting

Swedish Krona (SEK):

LanguageFormatExampleNote
EnglishSEK 1,000.50 or 1,000.50 krSEK 1,000.50Currency code preferred
Swedish1 000,50 kr1 000,50 kr"kr" suffix standard
German1 000,50 SEK1 000,50 SEKCurrency code suffix
French1 000,50 SEK1 000,50 SEKCurrency code suffix

Ordinal Numbers

LanguageExamplePattern
English1st, 2nd, 3rd, 4th-st, -nd, -rd, -th
Swedish1:a, 2:a, 3:e, 4:e:a or:e
German1., 2., 3., 4.Period suffix
French1er, 2e, 3e, 4e-er for first, -e for rest
Spanish1.º, 2.º, 3.º, 4.ºMasculine ordinal

Practical Implementation

Date Formatting Function:

function formatDate(date, lang) {
  const months = {
    en: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
    sv: ['januari', 'februari', 'mars', 'april', 'maj', 'juni', 'juli', 'augusti', 'september', 'oktober', 'november', 'december'],
    de: ['Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'],
    fr: ['janvier', 'février', 'mars', 'avril', 'mai', 'juin', 'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre'],
    es: ['enero', 'febrero', 'marzo', 'abril', 'mayo', 'junio', 'julio', 'agosto', 'septiembre', 'octubre', 'noviembre', 'diciembre'],
    da: ['januar', 'februar', 'marts', 'april', 'maj', 'juni', 'juli', 'august', 'september', 'oktober', 'november', 'december'],
    no: ['januar', 'februar', 'mars', 'april', 'mai', 'juni', 'juli', 'august', 'september', 'oktober', 'november', 'desember'],
    nl: ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december'],
    fi: ['tammikuuta', 'helmikuuta', 'maaliskuuta', 'huhtikuuta', 'toukokuuta', 'kesäkuuta', 'heinäkuuta', 'elokuuta', 'syyskuuta', 'lokakuuta', 'marraskuuta', 'joulukuuta']
  };

  const d = date.getDate();
  const m = date.getMonth();
  const y = date.getFullYear();

  if (lang === 'en') return `${months[lang][m]} ${d}, ${y}`;
  if (lang === 'de' || lang === 'da' || lang === 'no') return `${d}. ${months[lang][m]} ${y}`;
  if (lang === 'es') return `${d} de ${months[lang][m]} de ${y}`;
  if (lang === 'fi') return `${d}. ${months[lang][m]} ${y}`;
  if (lang === 'ja') return `${y}年${m+1}月${d}日`;
  if (lang === 'ko') return `${y}년 ${m+1}월 ${d}일`;
  if (lang === 'zh') return `${y}年${m+1}月${d}日`;
  return `${d} ${months[lang]?.[m] || months['en'][m]} ${y}`; // Default format with fallback
}

Validation Checklist

For each language version, verify:

  • Numbers use correct thousands separator
  • Numbers use correct decimal point
  • Dates follow language convention
  • Month names correctly translated and case-appropriate
  • Day names correctly translated
  • Time uses 24-hour format (except English)
  • Currency formatted per convention
  • Ordinals follow language pattern

Data Source: Validated against 81 news articles (Feb 2026) Standards: Unicode CLDR, ISO 8601 Last Updated: 2026-02-15

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.43%
按下载量换算27

Claude

32.36%
按下载量换算23

Cursor

17.4%
按下载量换算12

Gemini CLI

8.52%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills