').filter((r) => /Sizzle 800ZR\+|Ackackia 400ZR\+|Sienna WaveMagic 1\.6T/.test(r));
+ const row = (n) => rows.find((r) => r.includes('
' + n)) || ''; // by the optic's own name: other rows name it in their hint
+ assert.match(row('Sizzle 800ZR+'), /do not stretch this optic/);
+ assert.match(row('Ackackia 400ZR+'), /do not stretch this optic/);
+ assert.doesNotMatch(row('Sienna WaveMagic 1.6T'), /do not stretch|Consider submarine/);
+ assert.doesNotMatch(dom.window.document.getElementById('panelBody').textContent, /Consider submarine terminals/, 'no wrong advice anywhere on the panel');
+ assert.deepEqual(errors, []);
+});
+
+test('the hint reads right in every language', () => {
+ for (const lang of ['it', 'pt', 'fr', 'es', 'de']) {
+ const { why, errors } = cable({ lang });
+ const w = why('zr8');
+ assert.ok(!/\{[a-z]+\}|action_helpers\./.test(w), `${lang}: no raw placeholders or labels: ${w}`);
+ assert.ok(w.includes('5.400') || w.includes('5,400') || w.includes('5 400') || w.includes('5 400'), `${lang}: the reach is in it: ${w}`);
+ assert.ok(w.includes('Sienna WaveMagic 1.6T'), `${lang}: names the optics that reach`);
+ assert.notEqual(w, cable().why('zr8'), `${lang}: translated`);
+ assert.deepEqual(errors, [], lang);
+ }
+});