mashpie/i18n-node — Issue #9: Using i18n-node with jade
Author: carlptr
Created: 2011-11-06 06:09:02+00:00
State: open

I use i18n-node with jade in an express web app. After updating express no view worked any longer. I received the error message:
Cannot read property 'filename' of undefined

I tracked down the problem and found out that Jade uses a function "\_\_" during view generation. As I registered a helper function "\_\_" for i18n this caused the problem. After using a different name, like "msg" for my i18n helper function everything worked fine.
Since this took me many hours I want to share this experience. Perhaps it would make sense for node-i18n to use a different default helper name function?