akameco / babel-plugin-react-intl-auto

i18n for the component age. Auto management react-intl ID.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Options param

carlgrundberg opened this issue · comments

In your example script you pass defaultLocale as the fourth parameter, but it is an options parameter that has defaultLocale as one of the options.

extractReactIntlMessages(locales, pattern, buildDir, defaultLocale).then(() => {

This works:

extractReactIntlMessages(locales, pattern, buildDir, { defaultLocale });

Thank you @carlgrundberg 👍
Would you write a PR?