Skip to content

Code from the readme doesn't work #48

Open
@fermmm

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions