Skip to content
Merged
Show file tree
Hide file tree
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
10 changes: 7 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
"transform-object-rest-spread",
[ "transform-react-jsx", {
"pragma": "wp.element.createElement"
} ],
[ "./i18n/babel-plugin", {
"output": "languages/gutenberg.pot"
} ]
],
"env": {
Expand All @@ -24,6 +21,13 @@
},
"test": {
"presets": [ "latest" ]
},
"gettext": {
"plugins": [
[ "./i18n/babel-plugin", {
"output": "languages/gutenberg.pot"
} ]
]
}
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules
build
gutenberg.pot
.vscode
*.log
yarn.lock
10 changes: 10 additions & 0 deletions languages/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Languages
=========

The generated POT template file is not included in this repository. To create this file locally, follow instructions from [CONTRIBUTING.md](https://github.com/WordPress/gutenberg/blob/master/CONTRIBUTING.md) to install the project, then run the following command:

```
npm run gettext-strings
```

After the build completes, you'll find a `gutenberg.pot` strings file in this directory.
145 changes: 0 additions & 145 deletions languages/gutenberg.pot

This file was deleted.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"scripts": {
"test-unit": "cross-env NODE_ENV=test webpack && mocha build --require bootstrap-test.js",
"build": "cross-env BABEL_ENV=default NODE_ENV=production webpack",
"gettext-strings": "cross-env BABEL_ENV=gettext webpack",
"lint": "eslint .",
"dev": "cross-env BABEL_ENV=default webpack --watch",
"test": "npm run lint && npm run test-unit",
Expand Down