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.
Those translated variables can be fetched in your template, plugins or snippets with the
<input type="submit" value="<?php echo t('change') ?>" />
You can provide a fallback if the language variable is not defined:
<input type="submit" value="<?php echo t('change', 'Change') ?>" />