KS
Killer-Skills

add-locale — how to use add-locale how to use add-locale, add-locale setup guide, Strapi locale setup, Next.js i18n routing, add-locale alternative, add-locale vs locale-plugin, install add-locale, add-locale tutorial, what is add-locale, add-locale documentation

v1.0.0
GitHub

About this Skill

Perfect for Full Stack Agents needing seamless internationalization and localization capabilities in Strapi and Next.js projects. add-locale is a skill that enables developers to add a new language/locale to their Strapi projects, involving Strapi admin config, Next.js i18n routing, and translation files.

Features

Validates locale code using ISO 639-1 format
Supports Next.js i18n routing for multilingual projects
Generates translation files for added locales
Configures Strapi admin for new language/locale
Rejects invalid locale codes and names
Asks for user input for locale code and name

# Core Topics

notum-cz notum-cz
[0]
[0]
Updated: 3/6/2026

Quality Score

Top 5%
51
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add notum-cz/strapi-next-monorepo-starter/add-locale

Agent Capability Analysis

The add-locale MCP Server by notum-cz is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for how to use add-locale, add-locale setup guide, Strapi locale setup.

Ideal Agent Persona

Perfect for Full Stack Agents needing seamless internationalization and localization capabilities in Strapi and Next.js projects.

Core Value

Empowers agents to add new languages and locales to Strapi projects, leveraging Strapi admin config, Next.js i18n routing, and translation files, while enforcing valid ISO 639-1 locale codes and capitalized locale names.

Capabilities Granted for add-locale MCP Server

Adding new language support to Strapi applications
Configuring Next.js i18n routing for multilingual sites
Validating locale codes and names for consistency

! Prerequisites & Limits

  • Requires valid ISO 639-1 locale codes
  • Strapi and Next.js project setup necessary
  • Locale name must be capitalized and free of special characters
Project
SKILL.md
2.4 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

Add a new language/locale to the application. Involves Strapi admin config, Next.js i18n routing, and translation files.

Input Validation

Before proceeding, validate inputs:

  • Locale code: must be valid ISO 639-1 (2 letters, lowercase, e.g. de, fr, sk). Reject uppercase or invalid codes.
  • Locale name: capitalized, no special characters (e.g. German, French, Slovak).

If invalid format provided, ask user to correct before proceeding.

Inputs

Ask the user for:

  • Locale code: ISO 639-1 code (e.g. de, fr, sk)
  • Locale name: human-readable name (e.g. German, French, Slovak)

Steps

1. Create locale translation file

Copy apps/ui/locales/en.json to apps/ui/locales/{locale}.json.

The file structure must match en.json exactly — same keys, translated values. Initially copy as-is and mark values for translation.

Existing locales for reference: en.json, cs.json.

2. Update routing config

Edit apps/ui/src/lib/navigation.ts.

Add the new locale code to the locales array:

typescript
1export const routing = defineRouting({ 2 locales: ["cs", "en", "{locale}"], 3 defaultLocale: "en", 4 localePrefix: "as-needed", 5})

Keep the array sorted alphabetically.

3. Update i18n config (if needed)

The i18n config at apps/ui/src/lib/i18n.ts uses dynamic imports and automatically picks up new locale files:

typescript
1messages: ( 2 await (locale === "en" 3 ? import("../../locales/en.json") 4 : import(`../../locales/${locale}.json`)) 5).default,

No changes needed unless you want HMR support for the new locale during development (currently only en has HMR via static import).

4. Manual steps (inform user)

After the automated steps complete, inform the user:

The translation file and routing config are set up. You need to manually:

  1. Enable locale in Strapi: Go to Settings > Internationalization > Add new locale > select {locale}
  2. Translate content: For each content type with i18n enabled, switch to the new locale in Strapi admin and translate

Notes

  • The [locale] route segment in apps/ui/src/app/[locale]/ handles locale routing automatically via next-intl
  • generateStaticParams in the root layout iterates routing.locales — new locale pages are generated automatically
  • The localePrefix: "as-needed" setting means the default locale (en) has no prefix, all others get /{locale}/ prefix

Related Skills

Looking for an alternative to add-locale or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication