content-sdk-dictionary-and-i18n
URL locale segments via scLocaleMatcher; locale in loaders via getLanguage and splitLocaleFromPath.
от Sitecore★ 39 звёзд на GitHub
Установить content-sdk-dictionary-and-i18n в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Dictionary and i18n (Angular)
Detail: AGENTS-angular-specifics.md#i18n-and-dictionary
Read first: sitecore.config.ts, src/app/app.routes.ts, src/content-sdk/loaders/dictionary.loader.ts
When
- Locale, dictionary, or translation issues
- Adding a supported language
Rules
Locales are URL segments (
/en/about). To add one, editsitecore.config.tsand pass it in the first argument ofdefineConfig— the app ships an empty{}there:export default defineConfig({ angular: { locales: ['en', 'fr-FR'] } }, environment);scConfig.angular.localesis the resolved read path consumed byscLocaleMatcherandsplitLocaleFromPath— never assign to it at runtimedefaultLanguageis prepended to the list automatically when missing, andredirects.localesis derived fromangular.locales— keepangular.localesas the single source of truthdefaultLanguageitself comes from env (CSDK_PUBLIC_SITECORE_DEFAULT_LANGUAGE/SITECORE_DEFAULT_LANGUAGE), not from a literal insitecore.config.ts; keep it aligned with SitecoreIn loaders: locale from
getLanguage(context)(fall back toscConfig.defaultLanguage), item path fromsplitLocaleFromPath(context.url, scConfig.angular.locales).nonLocalePathNever send a locale-prefixed path to
getPageDictionary comes from
dictionaryLoader→ route datadictionary→SitecoreContextService.dictionary();SitecoreTranslateLoaderbridges it to@ngx-translate/corePage content is translated by Sitecore language versions, not by a client-side translation library
Let
LocaleUrlSerializerand*scLink/*scRouterLinkhandle locale prefixes in links
Stop
- Stop if assuming locale from headers or a cookie instead of the route param
- Stop if adding a parallel translation source for page content
Docs: Content SDK for Angular.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл content-sdk-dictionary-and-i18n?
URL locale segments via scLocaleMatcher; locale in loaders via getLanguage and splitLocaleFromPath.
Как установить скилл content-sdk-dictionary-and-i18n?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл content-sdk-dictionary-and-i18n запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…