Templates
Translation Strings
Translation strings allow you to define text in multiple languages for use in a Cakedesk template.
Define translations in your template.json
file using the strings
property. They can then be accessed using the t() helper.
#Template.json Example
{
"name": "A Template with Translations",
"strings": {
"tax": {
"de": "Steuer",
"en": "Tax"
},
"thank_you_for_your_trust": {
"de": "Danke für dein Vertrauen!",
"en": "Thank you for your trust!"
}
}
}
#EJS Example
Use the strings above in your template.ejs
file like so:
<p><%= t('thank_you_for_your_trust') %></p>
#Supported Languages
Currently, Cakedesk supports the following languages:
- English (en)
- German (de)
- Dutch (nl)
- Hungarian (hu)
- Swedish (sv)
- Finnish (fi)
- Spanish (es)
- Polish (pl)
If you require support for additional languages, please reach out to me!