Agent skill
kirby-i18n-workflows
Manages Kirby multi-language workflows, translations, and localized labels. Use when dealing with languages, translation keys, placeholders, or importing/exporting translations.
Stars
40
Forks
1
Install this agent skill to your Project
npx add-skill https://github.com/bnomei/kirby-mcp/tree/main/skills/kirby-i18n-workflows
SKILL.md
Kirby i18n Workflows
KB entry points
kirby://kb/scenarios/46-i18n-field-options-and-labelskirby://kb/scenarios/47-i18n-find-translation-keyskirby://kb/scenarios/48-i18n-import-export-translationskirby://kb/scenarios/72-filter-by-languagekirby://kb/scenarios/73-language-variables-and-placeholders
Required inputs
- Enabled languages and default language.
- Where translation keys live and desired naming scheme.
- Which content is translated vs label-only.
Default translation rule
- Use
t('key', 'fallback')in templates and snippets. - Keep stored content language-neutral when possible; translate labels at render time.
- Maintain fallback strings in the default language file.
Import/export hint
php
return [
'site.title' => 'Example',
];
Missing key audit
- Run
rg -F 't(' siteand compare keys withsite/languages/*.php. - Add missing keys to the default language file first.
Common pitfalls
- Storing translated labels in content instead of language files.
- Using translation keys without fallback strings.
Workflow
- Confirm language setup with
kirby://config/languagesand locate language files viakirby://roots. - Inspect templates/snippets/controllers for translation usage; use
rgto findt(calls if needed. - Search the KB with
kirby:kirby_search(examples: "translate field options", "find translation keys", "import export translations", "language variables placeholders"). - Update language files (
site/languages/*.php) or config maps for option labels. - Ensure templates render translated labels (not stored keys) and use fallbacks.
- Verify by rendering representative pages in each language (
kirby:kirby_render_page).
Didn't find tool you were looking for?