gettext-loader
gettext-loader copied to clipboard
Argument with operators errors out
A gettext function with an operator throws an error. So one cannot do this:
__('hello' +'how are you')
ERROR in ./app/scripts/presenters/presenter.coffee
Module build failed: TypeError: undefined does not have a method named "split"
at /Users/jhuang/webapp/node_modules/ramda/dist/ramda.js:7137:19
at /Users/jhuang/webapp/node_modules/ramda/dist/ramda.js:290:35
at /Users/jhuang/webapp/node_modules/ramda/dist/ramda.js:46:27
at /Users/jhuang/webapp/node_modules/ramda/dist/ramda.js:384:35
at f1 (/Users/jhuang/webapp/node_modules/ramda/dist/ramda.js:156:27)
at XWrap.formatMessageBlock [as f] (/Users/jhuang/webapp/node_modules/gettext-loader/dist/utils/buildMessageBlocks.js:40:34)
at XWrap.@@transducer/step (/Users/jhuang/webapp/node_modules/ramda/dist/ramda.js:665:25)
at _arrayReduce (/Users/jhuang/webapp/node_modules/ramda/dist/ramda.js:4025:46)
at _reduce (/Users/jhuang/webapp/node_modules/ramda/dist/ramda.js:4055:24)
at /Users/jhuang/webapp/node_modules/ramda/dist/ramda.js:227:28
at f1 (/Users/jhuang/webapp/node_modules/ramda/dist/ramda.js:156:27)
at /Users/jhuang/webapp/node_modules/ramda/dist/ramda.js:384:22
at f1 (/Users/jhuang/webapp/node_modules/ramda/dist/ramda.js:156:27)
at Object.module.exports (/Users/jhuang/webapp/node_modules/gettext-loader/dist/index.js:77:16)
@ ./app/scripts/modules/menu/menu.coffee 15:12-43