(key, placeholders, fallback)
| 10 | } |
| 11 | |
| 12 | const tx = (key, placeholders, fallback) => { |
| 13 | const out = t(key, placeholders); |
| 14 | if (out === key && typeof fallback === 'string') { |
| 15 | return fallback; |
| 16 | } |
| 17 | return out; |
| 18 | }; |
| 19 | |
| 20 | const dataEl = document.getElementById('shared-data'); |
| 21 | if (!dataEl) return; |
no test coverage detected