← 返回 Skills 市场
i18n (Internationalization) guideline skills for nextjs web development
作者
javainthinking
· GitHub ↗
· v1.0.0
546
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install web-i18n-nextjs
功能描述
Internationalization (i18n) guide for Next.js / Node.js web applications using the App Router. Covers translation file structure, locale routing, SEO metadat...
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install web-i18n-nextjs - 安装完成后,直接呼叫该 Skill 的名称或使用
/web-i18n-nextjs触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
常见问题
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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 546 次。
如何安装 i18n (Internationalization) guideline skills for nextjs web development?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install web-i18n-nextjs」即可一键安装,无需额外配置。
i18n (Internationalization) guideline skills for nextjs web development 是免费的吗?
是的,i18n (Internationalization) guideline skills for nextjs web development 完全免费(开源免费),可自由下载、安装和使用。
i18n (Internationalization) guideline skills for nextjs web development 支持哪些平台?
i18n (Internationalization) guideline skills for nextjs web development 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 i18n (Internationalization) guideline skills for nextjs web development?
由 javainthinking(@javainthinking)开发并维护,当前版本 v1.0.0。
推荐 Skills