// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`translation support body of t-sets are translated 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let { isBoundary, withDefault, setContextValue } = helpers; return function template(ctx, node, key = \\"\\") { ctx = Object.create(ctx); ctx[isBoundary] = 1 setContextValue(ctx, \\"label\\", \`translated\`); return text(ctx['label']); } }" `; exports[`translation support body of t-sets inside translation=off are not translated 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let { isBoundary, withDefault, setContextValue } = helpers; return function template(ctx, node, key = \\"\\") { ctx = Object.create(ctx); ctx[isBoundary] = 1 setContextValue(ctx, \\"label\\", \`untranslated\`); return text(ctx['label']); } }" `; exports[`translation support body of t-sets with html content are translated 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let { isBoundary, withDefault, LazyValue, safeOutput } = helpers; let block1 = createBlock(\`
translated
\`); function value1(ctx, node, key = \\"\\") { return block1(); } return function template(ctx, node, key = \\"\\") { ctx = Object.create(ctx); ctx[isBoundary] = 1 ctx[\`label\`] = new LazyValue(value1, ctx, this, node, key); return safeOutput(ctx['label']); } }" `; exports[`translation support body of t-sets with text and html content are translated 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let { isBoundary, withDefault, LazyValue, safeOutput } = helpers; let block3 = createBlock(\`
translated
\`); function value1(ctx, node, key = \\"\\") { const b2 = text(\` translated \`); const b3 = block3(); return multi([b2, b3]); } return function template(ctx, node, key = \\"\\") { ctx = Object.create(ctx); ctx[isBoundary] = 1 ctx[\`label\`] = new LazyValue(value1, ctx, this, node, key); return safeOutput(ctx['label']); } }" `; exports[`translation support can set and remove translatable attributes 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let block1 = createBlock(\`
text
\`); return function template(ctx, node, key = \\"\\") { return block1(); } }" `; exports[`translation support can translate node content 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let block1 = createBlock(\`
mot
\`); return function template(ctx, node, key = \\"\\") { return block1(); } }" `; exports[`translation support does not translate node content if disabled 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let block1 = createBlock(\`
motword
\`); return function template(ctx, node, key = \\"\\") { return block1(); } }" `; exports[`translation support some attributes are translated 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let block1 = createBlock(\`

mot

mot

mot

mot

mot

\`); return function template(ctx, node, key = \\"\\") { return block1(); } }" `; exports[`translation support t-set and falsy t-value: t-body are translated 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let { isBoundary, withDefault, setContextValue } = helpers; return function template(ctx, node, key = \\"\\") { ctx = Object.create(ctx); ctx[isBoundary] = 1 setContextValue(ctx, \\"label\\", withDefault(false, \`translated\`)); return text(ctx['label']); } }" `; exports[`translation support translation is done on the trimmed text, with extra spaces readded after 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let block1 = createBlock(\`
mot
\`); return function template(ctx, node, key = \\"\\") { return block1(); } }" `; exports[`translation support translation works, even if initial string has inner consecutive white space 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let block1 = createBlock(\`
un mot
\`); return function template(ctx, node, key = \\"\\") { return block1(); } }" `;