When working with multi-language site projects, you often run into the problem of needing language-specific variables. Simple things like translated button labels for your contact form for example or other translatable parts, which don't need to be administrated by editors.
For such a case, Kirby has a built in language variable management.
Simply add a new
languages folder to your
site folder and insert a PHP file with the specific language shortcode for each available language:
In those files, you can define translatable variables like this:
span class="st0">'mybutton', 'My awesome button'
span class="st0">'mybutton', 'Mein schöner Knopf'
Those translated variables can be used in any template, plugin or snippet: