ttag-bug-example/node_modules/ttag/dist/ttag.js:151
return r.replace(memReg(i), expr);
^
TypeError: Cannot read property 'replace' of undefined
at ttag-bug-example/node_modules/ttag/dist/ttag.js:151:14
at Array.reduce (<anonymous>)
at msgid2Orig (ttag-bug-example/node_modules/ttag/dist/ttag.js:150:16)
at Context.ngettext (ttag-bug-example/node_modules/ttag/dist/ttag.js:753:107)
at error1 (ttag-bug-example/index.js:18:29)
at Object.<anonymous> (ttag-bug-example/index.js:30:1)
A string such as
when translated will throw an error if translations exists with the same case-sensitive key
for example:
I've created a reproducible example here: https://github.com/mmso/ttag-bug-example/commit/0dc5a0889d5c2be13996287fd34b0ce8fcd9705b