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 only supports English (en) and German (de). If you require support for additional languages, please reach out to me!