Skip to content

Commit 522d680

Browse files
authored
Bump to 3.0.0 and add es translation (#25)
Bumped with: `yarn plugin-helpers version --sync legacy` Translation file generated from root level OSD core with: `./scripts/use_node scripts/i18n_extract.js --output-dir plugins/dashboards-i18n/translations/` To test: * Clone this repo into `OSD core/plugins` * `yarn osd bootstrap` * Start OpenSearch with `yarn opensearch snapshot` * Start OpenSearch Dashboards with `yarn start --i18n.locale=es` Appended to some string with `x` to verify working functionality. Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
1 parent 5d6f62e commit 522d680

6 files changed

+3697
-9
lines changed

.i18nrc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"paths": {
44
"i18nDashboards": "."
55
},
6-
"translations": []
6+
"translations": ["translations/es.json"]
77
}

opensearch_dashboards.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"id": "i18nDashboards",
3-
"version": "2.1.0.0",
4-
"opensearchDashboardsVersion": "2.1.0",
3+
"version": "3.0.0.0",
4+
"opensearchDashboardsVersion": "3.0.0",
55
"server": true,
66
"ui": false,
77
"requiredPlugins": [],
88
"optionalPlugins": []
9-
}
9+
}

package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
22
"name": "i18n-dashboards",
3-
"version": "2.1.0.0",
3+
"version": "3.0.0.0",
44
"description": "plugin for opensearch-dashboards translation",
55
"main": "index.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1",
8-
"lint": "node ../../scripts/eslint .",
9-
"update-version": "node scripts/update_opensearch_dashboards_version.js"
8+
"lint": "../../scripts/use_node ../../scripts/eslint .",
9+
"update-version": "../../scripts/use_node scripts/update_opensearch_dashboards_version.js",
10+
"plugin-helpers": "../../scripts/use_node ../../scripts/plugin_helpers"
1011
},
1112
"repository": {
1213
"type": "git",
@@ -19,4 +20,4 @@
1920
"url": "https://github.com/opensearch-project/dashboards-i18n/issues"
2021
},
2122
"homepage": "https://github.com/opensearch-project/dashboards-i18n#readme"
22-
}
23+
}

scripts/update_opensearch_dashboards_version.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* Copyright OpenSearch Contributors
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
const fs = require('fs');
27
const path = require('path');
38

server/plugin.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ import {
1414
import { I18nDashboardsPluginSetup, I18nDashboardsPluginStart } from './types';
1515
import { defineRoutes } from './routes';
1616

17-
export class I18nDashboardsPlugin implements Plugin<I18nDashboardsPluginSetup, I18nDashboardsPluginStart> {
17+
export class I18nDashboardsPlugin
18+
implements Plugin<I18nDashboardsPluginSetup, I18nDashboardsPluginStart> {
1819
private readonly logger: Logger;
1920

2021
constructor(initializerContext: PluginInitializerContext) {

0 commit comments

Comments
 (0)