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

Add whole babelrc configuration example #13891

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions packages/babel-plugin-makepot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
Babel plugin used to scan JavaScript files for use of localization functions. It then compiles these into a [gettext POT formatted](https://en.wikipedia.org/wiki/Gettext) file as a template for translation. By default the output file will be written to `gettext.pot` of the root project directory. This can be overridden using the `"output"` option of the plugin.

```json
[ "@wordpress/babel-plugin-makepot", {
"output": "languages/myplugin.pot"
} ]
{
"plugins": [
[ "@wordpress/babel-plugin-makepot", { "output": "languages/myplugin.pot" } ],
]
}
```

## Installation
Expand Down