Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计通过

internationalizing-websites国际化网站

Agent Skill

internationalizing-websites 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,772

周安装

150

GitHub Stars

125

下载量

2,102
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:internationalizing-websites(国际化网站)
来源仓库:https://github.com/zhanlincui/ultimate-agent-skills-collection
仓库路径:skills/internationalizing-websites
安装命令:
npx skills add https://github.com/zhanlincui/ultimate-agent-skills-collection --skill 'Internationalizing Websites'
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/zhanlincui/ultimate-agent-skills-collection --skill 'Internationalizing Websites'

简介

该技能用于查找、检索和筛选与国际化网站相关的信息。

  • 适用于需要根据关键词或任务场景快速定位候选结果的场景。
  • 可通过 npx 命令从指定 GitHub 仓库安装使用。
  • 使用前需确认权限范围及是否涉及联网或文件操作。
  • internationalizing-websites 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Internationalizing Websites

Complete workflow for adding multi-language support to Next.js websites with SEO best practices.

When to use this Skill

  • Adding new language versions to existing website
  • Setting up i18n (internationalization) for new website
  • Configuring SEO for multiple languages
  • User mentions: "add language", "translation", "localization", "hreflang", "multi-language"

Supported Languages

Common target markets:

  • 🇺🇸 English (en) - Global market
  • 🇯🇵 Japanese (ja) - Asian market
  • 🇨🇳 Chinese (zh) - Chinese market

Extended support available for:

  • Korean (ko), Portuguese (pt), Spanish (es), French (fr), German (de)
  • Arabic (ar), Vietnamese (vi), Hindi (hi), Indonesian (id), Thai (th)
  • Traditional Chinese (zh-hk), Italian (it), Russian (ru)

Internationalization Workflow

Copy this checklist and track your progress:

i18n Progress:
- [ ] Step 1: Prepare base language files
- [ ] Step 2: Add new language files
- [ ] Step 3: Update configuration files
- [ ] Step 4: Add translations
- [ ] Step 5: Configure SEO elements
- [ ] Step 6: Validate and test

Step 1: Prepare base language files

Ensure English (en.json) files exist as templates:

Required directories:

  • i18n/messages/en.json - Main translations
  • i18n/pages/landing/en.json - Landing page translations

Verify structure:

# Check if base files exist
ls i18n/messages/en.json
ls i18n/pages/landing/en.json

If missing, create them with complete translation keys for your website.

Step 2: Add new language files

Run the language addition script:

node scripts/i18n-add-languages.mjs

What this script does:

  • Copies en.json to all target language files
  • Updates i18n/locale.ts with new locales
  • Updates i18n/request.ts with language mappings
  • Updates public/sitemap.xml with new language URLs

Script configuration (in i18n-add-languages.mjs):

  • languages array - List of languages to add
  • languageNames object - Language display names
  • targetDirs array - Directories containing translation files

See WORKFLOW.md for detailed step-by-step guide.

Step 3: Verify configuration updates

Check i18n/locale.ts:

export const locales = ["en", "ja", "zh", "ko", ...];

export const localeNames: any = {
  en: "English",
  ja: "日本語",
  zh: "中文",
  ko: "한국어",
  ...
};

Check i18n/request.ts:

  • Language code mappings configured
  • zh-CNzh, zh-HKzh-hk mappings present

Check public/sitemap.xml:

  • All language versions listed
  • hreflang tags present for each URL

Step 4: Add translations

Option A: Using AI translation (faster but needs review):

# Add structured data and pricing translations
node scripts/i18n-add-schema.js

Configure translations in the script's translations object.

Option B: Manual translation (recommended for quality):

Edit each language file with proper translations:

# Open language file
code i18n/messages/ja.json

Translation best practices:

  • Use native speakers when possible
  • Maintain SEO keywords in target language
  • Adapt content to local culture, don't just translate
  • Keep formatting consistent (placeholders, variables)

See reference/locale-codes.md for language code reference.

Step 5: Configure SEO elements

hreflang tags - Automatic via sitemap, but verify:

See reference/hreflang-guide.md for complete guide.

Localized meta tags - Translate in each language file:

{
  "metadata": {
    "title": "Your Site Title",
    "description": "Your SEO description"
  }
}

URL structure - Verify correct format:

  • English: https://example.com/ or https://example.com/en/
  • Japanese: https://example.com/ja/
  • Chinese: https://example.com/zh/

Step 6: Validate and test

Build the project:

npm run build

CRITICAL: Fix any errors before proceeding.

Manual testing:

  1. Language switcher:

- Visit each language version - Verify language switcher shows all languages - Click each language link, verify correct page loads

  1. Content display:

- Check all pages render correctly in each language - Verify no untranslated text (check for English in non-English pages) - Test special characters display correctly (Japanese, Chinese, Arabic)

  1. SEO elements:

- Inspect <html lang="..."> attribute matches page language - Verify <link rel="alternate" hreflang="..."> tags present - Check meta tags are in correct language

Automated validation:

# Check sitemap
curl https://your-site.com/sitemap.xml | grep hreflang

# Validate hreflang (use online tool)
# Google Search Console > Internationalization > hreflang

SEO checklist - See reference/seo-checklist.md.

If validation fails:

  • Review error messages carefully
  • Check configuration files for typos
  • Verify language codes are correct
  • Return to Step 3 and fix issues

Only proceed when all validations pass.

Important Notes

Language Code Standards

Use ISO 639-1 (two-letter codes) with optional regional variants:

  • en - English
  • ja - Japanese
  • zh - Simplified Chinese
  • zh-hk - Traditional Chinese (Hong Kong)
  • pt - Portuguese
  • pt-br - Brazilian Portuguese

See reference/locale-codes.md for complete list.

SEO Implications

Correct i18n improves SEO by:

  • Targeting users in their native language
  • Avoiding duplicate content penalties
  • Helping search engines serve correct language version

Common SEO mistakes to avoid:

  • ❌ Auto-redirect based on IP (prevents search engines from crawling all versions)
  • ❌ Missing hreflang tags (causes duplicate content issues)
  • ❌ Inconsistent URL structure across languages
  • ❌ Untranslated meta tags

Translation Quality

AI translation vs Human translation:

  • ✅ AI: Fast, cost-effective, good for initial draft
  • ⚠️ AI: May miss cultural nuances, needs review
  • ✅ Human: Better quality, cultural adaptation
  • ⚠️ Human: Slower, more expensive

Recommended approach:

  1. Use AI to generate initial translations
  2. Have native speaker review and refine
  3. Test with target market users
  4. Iterate based on feedback

Next.js i18n Routing

The system uses next-intl for routing:

  • Automatic locale detection from URL
  • Language switcher component
  • Localized navigation

Configuration in i18n/locale.ts and i18n/request.ts.

Post-Internationalization Tasks

After adding languages:

  1. Submit updated sitemap to Google Search Console
  2. Create separate Search Console properties for each language/region
  3. Monitor international organic traffic in Analytics
  4. A/B test translations if conversion rates differ by language
  5. Set up alerts for international crawl errors

Script Locations

All i18n scripts are in the scripts/ directory:

  • i18n-add-languages.mjs - Add new language files
  • i18n-add-schema.js - Add structured data translations

Reference Materials

For troubleshooting, see WORKFLOW.md troubleshooting section.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

OpenCode

26.19%
按下载量换算551

Codex

21.52%
按下载量换算452

Claude Code

16.44%
按下载量换算346

Gemini CLI

14.45%
按下载量换算304

kiro-cli

7.91%
按下载量换算166

Antigravity

3.29%
按下载量换算69

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源字段存在多来源差异,先按来源优先级自动处理,无法消解时进入异常复核队列。

来源信息

继续浏览同类 Skills