一键导入
content-sdk-dictionary-and-i18n
next-intl with requestLocale = `${site}_${locale}`; routing.ts + request.ts.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
next-intl with requestLocale = `${site}_${locale}`; routing.ts + request.ts.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Layout data from getPage/getComponentData; path/locale from extractPath/context.
Registers components in .sitecore/component-map.ts for Pages Router layout and editing.
Creates new Sitecore components under src/components/. Pages Router; map auto-regenerates on dev/build.
Multiple renderings of one component type; regenerate component map after changes.
Next.js i18n via next.config.js; locale from context.locale in data methods.
Preview/editing for Pages Router via context.preview and context.previewData in [[...path]].tsx.
| name | content-sdk-dictionary-and-i18n |
| description | next-intl with requestLocale = `${site}_${locale}`; routing.ts + request.ts. |
Detail: AGENTS-router-specifics.md#i18n-next-intl
setRequestLocale(${site}_${locale}) in pagerequestLocale in src/i18n/request.tsgetSitecoreDictionary in src/i18n/request.ts{site}_{locale} convention without updating all callersDocs: Content SDK.