This is to be paired with carpentries/sandpaper#546.
NOTE: this should be released after carpentries/sandpaper#546
This replaces bare text elements with {{ translate.Key }} where translate.Key is a keyword written in PascalCase to the translation variable in {sandpaper}
For example, the words "Instructor Notes" have the key {{ translate.InstructorNotes }} because the data for the mustache template will contain a list called "translate", which will contain an item called "InstructorNotes" containing the translation for "Instructor Notes":
This is to be paired with carpentries/sandpaper#546.
NOTE: this should be released after carpentries/sandpaper#546
This replaces bare text elements with
{{ translate.Key }}
wheretranslate.Key
is a keyword written in PascalCase to the translation variable in {sandpaper}For example, the words "Instructor Notes" have the key
{{ translate.InstructorNotes }}
because the data for the mustache template will contain a list called "translate", which will contain an item called "InstructorNotes" containing the translation for "Instructor Notes":We are assuming that these elements will be available, which is why we do not test for them.
There are some elements that contain HTML and are escaped (e.g.
{{& translate.EstimatedTime }}
.