Internationalizing Websites logo

Internationalizing Websites

Community
littleben
Internationalizing Websites

Adds multi-language support to Next.js websites with proper SEO configuration including hreflang tags, localized sitemaps, and language-specific content. Use when adding new languages, setting up i18n, optimizing for international SEO, or when user mentions localization, translation, multi-language, or specific languages like Japanese, Korean, Chinese.

Overview

Publisherlittleben
RepositoryawesomeAgentskills
Skill nameInternationalizing Websites
Stars
187
Forks
31
Bundled files
6
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 6 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by littleben on GitHub. Read the source before you install it.

Installation

Install the Internationalizing Websites AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/littleben/awesomeAgentskills.git /tmp/awesomeAgentskills
mkdir -p .claude/skills
cp -r /tmp/awesomeAgentskills/internationalizing-websites .claude/skills/littleben-internationalizing-websites
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Internationalizing Websites in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Internationalizing Websites on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Internationalizing Websites is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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:

bash
# 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:

bash
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:

typescript
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):

bash
# 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:

bash
# 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:

json
{
  "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:

bash
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
  2. 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)
  3. 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:

bash
# 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.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Internationalizing Websites AI skill do?

Adds multi-language support to Next.js websites with proper SEO configuration including hreflang tags, localized sitemaps, and language-specific content. Use when adding new languages, setting up i18n, optimizing for international SEO, or when user mentions localization, translation, multi-language, or specific languages like Japanese, Korean, Chinese.

Why use Internationalizing Websites on TypingMind?

Because you install it once and use it with any model. Internationalizing Websites is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Internationalizing Websites in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/littleben/awesomeAgentskills/tree/main/internationalizing-websites. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Internationalizing Websites?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Internationalizing Websites?

As many as you like. As long as a model supports skills, you can use Internationalizing Websites with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Internationalizing Websites AI skill free?

Yes. It is published on GitHub by littleben under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇