Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
Feat: add translations to default build source paths (#48)
Browse files Browse the repository at this point in the history
* feat: add translations path to build

included by default, to better match what's in the elastic products and even the plugin template

also add a translations path to the mock plugin for tests

* chore: add script to run tests with linting
  • Loading branch information
w33ble authored Sep 20, 2017
1 parent abb9989 commit 9871a4b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugin_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = function (root) {
const buildSourcePatterns = [
'package.json',
'index.js',
'{lib,public,server,webpackShims}/**/*',
'{lib,public,server,webpackShims,translations}/**/*',
];

// add shrinkwrap and lock files, if they exist
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"license": "Apache-2.0",
"scripts": {
"test": "npm run lint && npm run jest",
"test:only": "npm run jest",
"jest": "jest",
"lint": "eslint bin/ help/ tasks/"
},
Expand Down
4 changes: 4 additions & 0 deletions tasks/build/__fixtures__/test_plugin/translations/es.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"UI-WELCOME_MESSAGE": "Cargando Kibana",
"UI-WELCOME_ERROR": "Kibana no se cargó correctamente. Heck la salida del servidor para obtener más información."
}

0 comments on commit 9871a4b

Please sign in to comment.