Custom language variables
When working with a multi-language site, you often need language-specific variables/strings. Simple things like translated button labels for your contact form, for example, or other translatable parts which don't need to be modified by editors. For such cases, Kirby has a built-in language variable management.
Language variables are added as an array of key/value pairs in your language definition files in
Those files can contain as many custom variables as you need.
Using language variables in your template
Those translated variables can be fetched in your template, plugins or snippets with the
You can provide a fallback if the language variable is not defined:
Check out the following cookbook recipes to find out how to make language variables more flexible: