// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`translation context body of t-sets are translated in context 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\\", \`traduit\`); const b2 = text(ctx['label']); return multi([b2]); } }" `; exports[`translation context default slot params and content translated in context 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let { callSlot } = helpers; let block1 = createBlock(\`
\`); function defaultContent1(ctx, node, key = \\"\\") { return text(\` foo \`); } return function template(ctx, node, key = \\"\\") { const b3 = callSlot(ctx, node, key, 'default', false, {param: \`param\`,title: \`título\`}, defaultContent1.bind(this)); return block1([], [b3]); } }" `; exports[`translation context props with modifier .translate are translated in context 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; const comp1 = app.createComponent(\`ChildComponent\`, true, false, false, []); return function template(ctx, node, key = \\"\\") { return comp1({text: \`jeu\`}, key + \`__1\`, node, this, null); } }" `; exports[`translation context props with modifier .translate are translated in context 2`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let block1 = createBlock(\`\`); return function template(ctx, node, key = \\"\\") { let txt1 = ctx['props'].text; return block1([txt1]); } }" `; exports[`translation context slot attrs and text contents are translated in context 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let { capture, markRaw } = helpers; const comp1 = app.createComponent(\`ChildComponent\`, true, true, false, []); function slot1(ctx, node, key = \\"\\") { return text(\`jeu\`); } return function template(ctx, node, key = \\"\\") { const ctx1 = capture(ctx); return comp1({slots: markRaw({'a': {__render: slot1.bind(this), __ctx: ctx1, title: \`título\`}})}, key + \`__1\`, node, this, null); } }" `; exports[`translation context slot attrs and text contents are translated in context 2`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let { callSlot } = helpers; let block1 = createBlock(\`
\`); return function template(ctx, node, key = \\"\\") { const b2 = callSlot(ctx, node, key, 'a', false, {}); return block1([], [b2]); } }" `; exports[`translation context translation of attributes in context 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let block1 = createBlock(\`
\`); return function template(ctx, node, key = \\"\\") { return block1(); } }" `; exports[`translation context translation of text in context 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let block2 = createBlock(\`
word
\`); let block3 = createBlock(\`
mot
\`); return function template(ctx, node, key = \\"\\") { const b2 = block2(); const b3 = block3(); return multi([b2, b3]); } }" `; 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(); } }" `;