/sitecore-content-sdk-angular:content-sdk-angular-dictionary-and-i18nfrom Sitecore Content SDK - Angular
Handles locale routing, dictionary loading, and translation via ngx-translate in Angular Content SDK apps. Use for adding locales or fixing i18n issues.
Ships in Sitecore Content SDK - Angular. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Locales are URL segments (/{locale}/{path}, for example /en/about, /fr-FR/about). Paths are relative to the head app.
Read first: sitecore.config.ts, src/app/app.routes.ts, src/content-sdk/loaders/dictionary.loader.ts.
URL model: scLocaleMatcher(scConfig.angular.locales) consumes the first URL segment when it matches a configured locale and exposes it as the locale route param. Unprefixed URLs fall back to scConfig.defaultLanguage.
Adding a locale: edit sitecore.config.ts and pass it in the first argument of defineConfig (the app ships an empty {} there):
export default defineConfig({ angular: { locales: ['en', 'fr-FR'] } }, environment);
Config: angular.locales is the locale list and defaultLanguage is the fallback. scConfig.angular.locales and scConfig.defaultLanguage are the resolved read paths code consumes. defaultLanguage is prepended to the list automatically when missing, and redirects.locales is derived from angular.locales.
In loaders: getLanguage(context) reads the locale route param (fall back to scConfig.defaultLanguage). splitLocaleFromPath(context.url, scConfig.angular.locales).nonLocalePath gives the clean Sitecore item path. Locale goes to getPage / getDictionary as a separate argument, never baked into the path.
Dictionary: dictionaryLoader calls getClient().getDictionary({ locale, site }). The result lands in route data as dictionary and in SitecoreContextService.dictionary().
Translation: SitecoreTranslateLoader bridges the dictionary into @ngx-translate/core. The root component calls translate.use(lang) when page.locale changes.
In the app: SitecoreContextService.effectiveLocale resolves page.locale, then the URL locale, then the default. LocaleUrlSerializer (provided for UrlSerializer) keeps routerLink URLs locale-aware.
sitecore.config.ts (first argument of defineConfig). scConfig.angular.locales is the resolved read path: never assign to it at runtime. Keep angular.locales the single source of truth.defaultLanguage comes from env (CSDK_PUBLIC_SITECORE_DEFAULT_LANGUAGE / SITECORE_DEFAULT_LANGUAGE), not from a literal in sitecore.config.ts. Keep it aligned with Sitecore.getPage.LocaleUrlSerializer and *scLink / *scRouterLink prepend locale prefixes. Do not build them by hand.What SKILL.md sets; muted values are Claude Code's defaults
18 skills in this plugin
/content-sdk-angular-component-data-strategyHow a component gets Sitecore data in an Angular Content SDK app: placeholder inputs, route resolve data, SitecoreContextService, no component-level fetch. Use when wiring data or it is missing after navigation. Not Next.js./content-sdk-angular-component-registrationRegisters components in .sitecore/component-map.ts and the SITECORE_COMPONENT_MAP token in an Angular Content SDK app. Use when a component shows as missing or the map changes. Not Next.js./content-sdk-angular-component-scaffoldCreates a standalone Sitecore component under src/app/components/ in an Angular Content SDK app: input() signals, default export, field directives. Use when adding a component. Not Next.js./content-sdk-angular-component-variantsVariants of one component type in an Angular Content SDK app via module exports and rendering.params, then map regeneration. Use for variants or several presentations of one component. Not Next.js./content-sdk-angular-editing-safe-renderingMakes Angular Content SDK components work in Sitecore Pages editing, preview and Design Library: metadata mode, getEditingPreviewData, sc-editing-scripts. Use when editing breaks. Not Next.js./content-sdk-angular-field-usage-image-link-textRenders Sitecore fields in Angular templates with the structural directives scText, scRichText, scImage, scLink, scRouterLink. Use for title, body, image or link fields. Not Next.js components.npx claudepluginhub chris1415/sitecore-skills-pocs --plugin sitecore-content-sdk-angularOther plugins' skills for the same job