TranslationsΒΆ
Add translations with the !-glyph followed by the two-letter code of the language.
%import components
%inherit base
!en:
labels:
title: 'Title'
date: 'Date'
bodytext: 'Bodytext'
buttons:
save: 'Save'
!de:
labels:
title: 'Titel'
date: 'Datum'
bodytext: 'Haupttext'
buttons:
save: 'Speichern'
*content:
form:
div.formrow:
label: !labels.title
input type='text' name='title'
div.formrow:
label: !labels.bodytext
textarea name='bodytext'
button type='submit': !buttons.save