Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

fix(abide): fix #80 #81

Merged
merged 1 commit into from Jul 14, 2014
Merged

fix(abide): fix #80 #81

merged 1 commit into from Jul 14, 2014

Conversation

alexcrack
Copy link
Contributor

TypeError: Property 'locals' of object # is not a function
at IncomingMessage.locals.setLocale (/mnt/work/PROJECTS/mycoolproject/payment/node_modules/i18n-abide/lib/i18n.js:218:14)

TypeError: Property 'locals' of object #<ServerResponse> is not a function
    at IncomingMessage.locals.setLocale (/mnt/work/PROJECTS/mycoolproject/payment/node_modules/i18n-abide/lib/i18n.js:218:14)
ozten added a commit that referenced this pull request Jul 14, 2014
@ozten ozten merged commit 69a20dc into mozilla:master Jul 14, 2014
@@ -215,7 +215,13 @@ exports.abide = function(options) {
newLocals.lang_dir = BIDI_RTL_LANGS.indexOf(newLocals.lang) >= 0 ? 'rtl' : 'ltr';
req.lang_dir = newLocals.lang_dir;

resp.locals(newLocals);
if (typeof resp.locals === 'function') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks!

@ozten
Copy link
Contributor

ozten commented Jul 14, 2014

Published 0.0.21

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants