Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code from the readme doesn't work #48

Open
fermmm opened this issue Nov 9, 2020 · 0 comments
Open

Code from the readme doesn't work #48

fermmm opened this issue Nov 9, 2020 · 0 comments

Comments

@fermmm
Copy link

fermmm commented Nov 9, 2020

In the readme this code is provided:

locales({
  app: app,
  dirs: [__dirname + '/app/locales'],
  defaultLocale: 'zh-CN',
});

And throws this error:
TypeError: Cannot set property '__' of undefined

Only passing app as a parameter works like this:

locales(app, {
  dirs: [__dirname + '/app/locales'],
  defaultLocale: 'zh-CN',
});

So documentation should be fixed

@fermmm fermmm changed the title Readme code doesn't work Code from the readme doesn't work Nov 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant