We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f19bcc commit d9a5bc8Copy full SHA for d9a5bc8
index.js
@@ -411,8 +411,10 @@ function loader (registryOrVersion) {
411
str += escapeHtml(this.text)
412
} else if (this.translate) {
413
const params = []
414
- for (const param of this.with) {
415
- params.push(param.toHTML(lang, styles, allowedFormats))
+ if (this.with) {
+ for (const param of this.with) {
416
+ params.push(param.toHTML(lang, styles, allowedFormats))
417
+ }
418
}
419
const format = lang[this.translate] ?? this.translate
420
str += vsprintf(escapeHtml(format), params)
0 commit comments