← Back to Skills Marketplace
javainthinking

i18n (Internationalization) guideline skills for nextjs web development

by javainthinking · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
546
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install web-i18n-nextjs
Description
Internationalization (i18n) guide for Next.js / Node.js web applications using the App Router. Covers translation file structure, locale routing, SEO metadat...
Usage Guidance
This guide appears coherent and safe for implementing i18n in a Next.js App Router project. Before applying it: 1) Ensure your project matches the App Router structure the guide assumes (src/app/[lang], server vs client components). 2) If you set NEXT_PUBLIC_APP_URL in env, confirm it's the correct public base URL; the examples fall back to a literal default if the env var is missing. 3) Watch out for XSS: structured-data examples use JSON.stringify (safe), but avoid placing untrusted HTML into dangerouslySetInnerHTML or translation strings that may contain markup. 4) The guide recommends never using machine translation for production copy — follow your org's localization and review processes. If you need the skill to perform any automated actions (editing files, running scripts), require an explicit install or code-based tool instead of following the prose directly.
Capability Analysis
Type: OpenClaw Skill Name: web-i18n-nextjs Version: 1.0.0 The skill bundle is primarily documentation and code examples for Next.js i18n. It is classified as 'suspicious' due to potential XSS vulnerabilities arising from the use of `dangerouslySetInnerHTML` for JSON-LD structured data (in `references/structured-data.md`) and basic string `.replace()` for template variable substitution (in `references/translation-files.md`). While these patterns are common, they can be exploited if the data being rendered or substituted (e.g., from dictionaries, CMS, or user input) is not properly sanitized, allowing for script injection. There is no evidence of intentional malicious behavior, data exfiltration, or prompt injection against the agent; the identified issues are vulnerabilities rather than malware.
Capability Assessment
Purpose & Capability
The skill name/description (Next.js i18n guidance) matches the content: it documents file layout, middleware, hooks, metadata, JSON-LD, and sitemap patterns. All referenced files/paths (src/app/[lang], src/lib/i18n, dictionaries, sitemap.ts, middleware.ts) are appropriate for the stated purpose.
Instruction Scope
SKILL.md contains detailed code patterns and explicit file paths that stay within the scope of adding i18n to a Next.js App Router project. It instructs reading locale JSONs, using getDictionary/useDictionary, modifying layout/page generateMetadata, middleware locale detection, and sitemap generation. Two things to note: (1) it suggests using process.env.NEXT_PUBLIC_APP_URL (with a fallback) — the guide assumes an env var may exist but doesn't require it; (2) it uses client-side DOM updates and dangerouslySetInnerHTML for JSON-LD (JSON.stringify is used in examples, which is safe for structured data, but inserting untrusted HTML elsewhere could be an XSS risk).
Install Mechanism
There is no install spec and no code files with executable install steps — this is instruction-only content, which is lowest install risk.
Credentials
The skill declares no required env vars and requests no credentials, which is appropriate. The instructions reference process.env.NEXT_PUBLIC_APP_URL (with a default fallback) — this is reasonable and optional but technically an environment access not declared in requires.env. No sensitive secrets are requested. Client-side use of localStorage is expected for locale persistence.
Persistence & Privilege
always is false and the skill does not request persistent system-wide privileges or modify other skills. It prescribes only application-level file and code changes within the Next.js project.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install web-i18n-nextjs
  3. After installation, invoke the skill by name or use /web-i18n-nextjs
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release: Comprehensive i18n guide for Next.js App Router projects. - Describes translation file structure and best practices for natural, idiomatic copy. - Details locale routing, middleware, hreflang, SEO metadata, and JSON-LD requirements. - Includes step-by-step checklists for adding new features or locales with i18n support. - Provides guidelines for multi-language sitemaps and locale synchronization. - References additional docs for code examples on translations, routing, SEO, structured data, and sitemap implementation.
Metadata
Slug web-i18n-nextjs
Version 1.0.0
License
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is i18n (Internationalization) guideline skills for nextjs web development?

Internationalization (i18n) guide for Next.js / Node.js web applications using the App Router. Covers translation file structure, locale routing, SEO metadat... It is an AI Agent Skill for Claude Code / OpenClaw, with 546 downloads so far.

How do I install i18n (Internationalization) guideline skills for nextjs web development?

Run "/install web-i18n-nextjs" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is i18n (Internationalization) guideline skills for nextjs web development free?

Yes, i18n (Internationalization) guideline skills for nextjs web development is completely free (open-source). You can download, install and use it at no cost.

Which platforms does i18n (Internationalization) guideline skills for nextjs web development support?

i18n (Internationalization) guideline skills for nextjs web development is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created i18n (Internationalization) guideline skills for nextjs web development?

It is built and maintained by javainthinking (@javainthinking); the current version is v1.0.0.

💬 Comments