diff --git a/packages/kbn-i18n/GUIDELINE.md b/packages/osd-i18n/GUIDELINE.md
similarity index 77%
rename from packages/kbn-i18n/GUIDELINE.md
rename to packages/osd-i18n/GUIDELINE.md
index 45408dc6582b..ae5b2b5ca298 100644
--- a/packages/kbn-i18n/GUIDELINE.md
+++ b/packages/osd-i18n/GUIDELINE.md
@@ -26,7 +26,7 @@ For example the message before translation looks like:
```html
- The following deprecated languages are in use: {deprecatedLangsInUse.join(', ')}. Support for these languages will be removed in the next major version of Kibana and Elasticsearch. Convert your scripted fields to Painless to avoid any problems.
+ The following deprecated languages are in use: {deprecatedLangsInUse.join(', ')}. Support for these languages will be removed in the next major version of OpenSearch Dashboards and OpenSearch. Convert your scripted fields to Painless to avoid any problems.
```
@@ -37,7 +37,7 @@ It is used the following message id naming structure:
```js
{
- 'kbn.management.editIndexPattern.scripted.deprecationLangLabel.deprecationLangDetail': 'The following deprecated languages are in use: {deprecatedLangsInUse}. Support for these languages will be removed in the next major version of Kibana and Elasticsearch. Convert your scripted fields to {link} to avoid any problems.'
+ 'osd.management.editIndexPattern.scripted.deprecationLangLabel.deprecationLangDetail': 'The following deprecated languages are in use: {deprecatedLangsInUse}. Support for these languages will be removed in the next major version of OpenSearch Dashboards and OpenSearch. Convert your scripted fields to {link} to avoid any problems.'
}
```
@@ -47,7 +47,7 @@ For example:
```js
{
- 'kbn.management.editIndexPattern.scripted.deprecationLangLabel.painlessLinkLabel': 'Painless'
+ 'osd.management.editIndexPattern.scripted.deprecationLangLabel.painlessLinkLabel': 'Painless'
}
```
@@ -57,8 +57,8 @@ Messages can contain placeholders for embedding a value of a variable. For examp
```js
{
- 'kbn.management.editIndexPattern.scripted.deleteFieldLabel': "Delete scripted field '{fieldName}'?"
- 'kbn.management.editIndexPattern.scripted.noFieldLabel': "'{indexPatternTitle}' index pattern doesn't have a scripted field called '{fieldName}'"
+ 'osd.management.editIndexPattern.scripted.deleteFieldLabel': "Delete scripted field '{fieldName}'?"
+ 'osd.management.editIndexPattern.scripted.noFieldLabel': "'{indexPatternTitle}' index pattern doesn't have a scripted field called '{fieldName}'"
}
```
@@ -72,7 +72,7 @@ For example:
```js
{
- 'kbn.management.createIndexPattern.step.status.successLabel.strongIndicesLabel': '{indicesLength, plural, one {# index} other {# indices}}'
+ 'osd.management.createIndexPattern.step.status.successLabel.strongIndicesLabel': '{indicesLength, plural, one {# index} other {# indices}}'
}
```
@@ -84,19 +84,19 @@ In case when `indicesLength` has value 1, the result string will be "`1 index`".
#### In ReactJS
-The long term plan is to rely on using `FormattedMessage` and `i18n.translate()` by statically importing `i18n` from the `@kbn/i18n` package. **Avoid using `injectI18n` and use `i18n.translate()` instead.**
+The long term plan is to rely on using `FormattedMessage` and `i18n.translate()` by statically importing `i18n` from the `@osd/i18n` package. **Avoid using `injectI18n` and use `i18n.translate()` instead.**
- You should use `` most of the time.
-- In the case where the string is expected (`aria-label`, `placeholder`), Call JS function `i18n.translate()` from the`@kbn/i18n` package.
+- In the case where the string is expected (`aria-label`, `placeholder`), Call JS function `i18n.translate()` from the`@osd/i18n` package.
Currently, we support the following ReactJS `i18n` tools, but they will be removed in future releases:
- Usage of `props.intl.formatmessage()` (where `intl` is passed to `props` by `injectI18n` HOC).
#### In AngularJS
-The long term plan is to rely on using `i18n.translate()` by statically importing `i18n` from the `@kbn/i18n` package. **Avoid using the `i18n` filter and the `i18n` service injected in controllers, directives, services.**
+The long term plan is to rely on using `i18n.translate()` by statically importing `i18n` from the `@osd/i18n` package. **Avoid using the `i18n` filter and the `i18n` service injected in controllers, directives, services.**
-- Call JS function `i18n.translate()` from the `@kbn/i18n` package.
+- Call JS function `i18n.translate()` from the `@osd/i18n` package.
- Use `i18nId` directive in template.
Currently, we support the following AngluarJS `i18n` tools, but they will be removed in future releases:
@@ -105,7 +105,7 @@ Currently, we support the following AngluarJS `i18n` tools, but they will be rem
#### In JavaScript
-- Use `i18n.translate()` in NodeJS or any other framework agnostic code, where `i18n` is the I18n engine from `@kbn/i18n` package.
+- Use `i18n.translate()` in NodeJS or any other framework agnostic code, where `i18n` is the I18n engine from `@osd/i18n` package.
### Naming convention
@@ -114,12 +114,12 @@ Here's a rule of id maning:
`{plugin}.{area}.[{sub-area}].{element}`
-- Message id should start with namespace that identifies a functional area of the app (`common.ui` or `common.server`) or a plugin (`kbn`, `vega`, etc.).
+- Message id should start with namespace that identifies a functional area of the app (`common.ui` or `common.server`) or a plugin (`osd`, `vega`, etc.).
For example:
```js
- 'kbn.management.createIndexPattern.stepTime.options.patternHeader'
+ 'osd.management.createIndexPattern.stepTime.options.patternHeader'
'common.ui.indexPattern.warningLabel'
```
@@ -128,16 +128,16 @@ Here's a rule of id maning:
- Each message id should end with a type. For example:
```js
- 'kbn.management.editIndexPattern.createIndexButtonLabel'
- 'kbn.management.editIndexPattern.mappingConflictTitle'
- 'kbn.management.editIndexPattern.mappingConflictLabel'
- 'kbn.management.editIndexPattern.fields.filterAriaLabel'
- 'kbn.management.editIndexPattern.fields.filterPlaceholder'
- 'kbn.management.editIndexPattern.refreshTooltip'
- 'kbn.management.editIndexPattern.fields.allTypesDropDown'
- 'kbn.management.createIndexPattern.includeSystemIndicesToggleSwitch'
- 'kbn.management.editIndexPattern.wrongTypeErrorMessage'
- 'kbn.management.editIndexPattern.scripted.table.nameDescription'
+ 'osd.management.editIndexPattern.createIndexButtonLabel'
+ 'osd.management.editIndexPattern.mappingConflictTitle'
+ 'osd.management.editIndexPattern.mappingConflictLabel'
+ 'osd.management.editIndexPattern.fields.filterAriaLabel'
+ 'osd.management.editIndexPattern.fields.filterPlaceholder'
+ 'osd.management.editIndexPattern.refreshTooltip'
+ 'osd.management.editIndexPattern.fields.allTypesDropDown'
+ 'osd.management.createIndexPattern.includeSystemIndicesToggleSwitch'
+ 'osd.management.editIndexPattern.wrongTypeErrorMessage'
+ 'osd.management.editIndexPattern.scripted.table.nameDescription'
```
- For complex messages, which are divided into several parts, use the following approach:
@@ -155,20 +155,20 @@ Here's a rule of id maning:
```js
),
strongIndices: (
@@ -183,15 +183,15 @@ Each message id should end with a type of the message.
| type | example message id |
| --- | --- |
-| header | `kbn.management.createIndexPatternTitle` |
-| label | `kbn.management.createIndexPatternLabel ` |
-| button | `kbn.management.editIndexPattern.scripted.addFieldButtonLabel` |
-| drop down | `kbn.management.editIndexPattern.fields.allTypesDropDown` |
-| placeholder | `kbn.management.createIndexPattern.stepTime.options.patternPlaceholder` |
-| `aria-label` attribute | `kbn.management.editIndexPattern.removeAriaLabel` |
-| tooltip | `kbn.management.editIndexPattern.removeTooltip` |
-| error message | `kbn.management.createIndexPattern.step.invalidCharactersErrorMessage` |
-| toggleSwitch | `kbn.management.createIndexPattern.includeSystemIndicesToggleSwitch` |
+| header | `osd.management.createIndexPatternTitle` |
+| label | `osd.management.createIndexPatternLabel ` |
+| button | `osd.management.editIndexPattern.scripted.addFieldButtonLabel` |
+| drop down | `osd.management.editIndexPattern.fields.allTypesDropDown` |
+| placeholder | `osd.management.createIndexPattern.stepTime.options.patternPlaceholder` |
+| `aria-label` attribute | `osd.management.editIndexPattern.removeAriaLabel` |
+| tooltip | `osd.management.editIndexPattern.removeTooltip` |
+| error message | `osd.management.createIndexPattern.step.invalidCharactersErrorMessage` |
+| toggleSwitch | `osd.management.createIndexPattern.includeSystemIndicesToggleSwitch` |
For example:
@@ -200,7 +200,7 @@ For example:
```js
@@ -211,8 +211,8 @@ For example:
```js
```
@@ -222,7 +222,7 @@ For example:
```js
-
+
```
@@ -231,7 +231,7 @@ For example:
```js
```
@@ -242,7 +242,7 @@ For example:
```
@@ -251,8 +251,8 @@ For example:
```js
```
@@ -263,7 +263,7 @@ For example:
errors.push(
intl.formatMessage(
{
- id: 'kbn.management.createIndexPattern.step.invalidCharactersErrorMessage',
+ id: 'osd.management.createIndexPattern.step.invalidCharactersErrorMessage',
defaultMessage: 'An index pattern cannot contain spaces or the characters: {characterList}'
},
{ characterList }
@@ -275,7 +275,7 @@ For example:
```js
}
/>
@@ -286,14 +286,14 @@ For example:
- Variables
```html
-
```
```html
```
@@ -313,7 +313,7 @@ For example:
**BUT** we can not use tags that should be compiled:
```html
-
```
@@ -324,7 +324,7 @@ For example:
```html
{characterList} }}
/>
@@ -332,13 +332,13 @@ For example:
```html
@@ -351,10 +351,10 @@ For example:
```html
```
@@ -365,7 +365,7 @@ The numeric input is mapped to a plural category, some subset of "zero", "one",
Here is an example of message translation depending on a plural category:
```html
-
```
@@ -412,7 +412,7 @@ export const AddFilter = injectI18n(
value={filter}
onChange={e => this.setState({ filter: e.target.value.trim() })}
placeholder={this.props.intl.formatMessage({
- id: 'kbn.management.indexPattern.edit.source.placeholder',
+ id: 'osd.management.indexPattern.edit.source.placeholder',
defaultMessage: 'source filter, accepts wildcards (e.g., `user*` to filter fields starting with \'user\')'
})}
/>
@@ -456,7 +456,7 @@ it('should render normally', async () => {
6. Run tests.
-7. Run Kibana with enabled pseudo-locale (either pass `--i18n.locale=en-xa` as a command-line argument or add it to the `kibana.yml`) and observe the text you've just localized.
+7. Run OpenSearch Dashboards with enabled pseudo-locale (either pass `--i18n.locale=en-xa` as a command-line argument or add it to the `opensearch_dashboards.yml`) and observe the text you've just localized.
If you did everything correctly, it should turn into something like this `Ĥéļļļô ŴŴôŕļļð!` assuming your text was `Hello World!`.
diff --git a/packages/kbn-i18n/README.md b/packages/osd-i18n/README.md
similarity index 96%
rename from packages/kbn-i18n/README.md
rename to packages/osd-i18n/README.md
index 2b810fcd9616..e73c752dbcda 100644
--- a/packages/kbn-i18n/README.md
+++ b/packages/osd-i18n/README.md
@@ -1,9 +1,9 @@
# I18n
-Kibana relies on several UI frameworks (ReactJS and AngularJS) and
+OpenSearch Dashboards relies on several UI frameworks (ReactJS and AngularJS) and
requires localization in different environments (browser and NodeJS).
Internationalization engine is framework agnostic and consumable in
-all parts of Kibana (ReactJS, AngularJS and NodeJS). In order to simplify
+all parts of OpenSearch Dashboards (ReactJS, AngularJS and NodeJS). In order to simplify
internationalization in UI frameworks, the additional abstractions are
built around the I18n engine: `react-intl` for React and custom
components for AngularJS. [React-intl](https://github.com/yahoo/react-intl)
@@ -21,7 +21,7 @@ are used in order to simplify message location search. For example, if
we are going to translate the title of `/management/sections/objects/_objects.html`
file, we should use message path like this: `'management.objects.objectsTitle'`.
-Each Kibana plugin has a separate folder with translation files located at
+Each OpenSearch Dashboards plugin has a separate folder with translation files located at
```
{path/to/plugin}/translations/{locale}.json
```
@@ -30,13 +30,13 @@ where `locale` is [ISO 639 language code](https://en.wikipedia.org/wiki/List_of_
For example:
```
-src/legacy/core_plugins/kibana/translations/fr.json
+src/legacy/core_plugins/opensearch-dashboards/translations/fr.json
```
The engine scans `x-pack/legacy/plugins/*/translations`, `src/core_plugins/*/translations`, `plugins/*/translations` and `src/legacy/ui/translations` folders on initialization, so there is no need to register translation files.
-The engine uses a `config/kibana.yml` file for locale resolution process. If locale is
-defined via `i18n.locale` option in `config/kibana.yml` then it will be used as a base
+The engine uses a `config/opensearch_dashboards.yml` file for locale resolution process. If locale is
+defined via `i18n.locale` option in `config/opensearch_dashboards.yml` then it will be used as a base
locale, otherwise i18n engine will fall back to `en`. The `en` locale will also be used
if translation can't be found for the base non-English locale.
@@ -439,6 +439,6 @@ In order to translate attributes in AngularJS we should use `i18nFilter`:
In order to simplify localization process, some additional tools were implemented:
- tool for verifying all translations have translatable strings and extracting default messages from templates
-- tool for verifying translation files and integrating them to Kibana
+- tool for verifying translation files and integrating them to OpenSearch Dashboards
[I18n tools documentation](../../src/dev/i18n/README.md)
diff --git a/packages/kbn-i18n/angular/package.json b/packages/osd-i18n/angular/package.json
similarity index 100%
rename from packages/kbn-i18n/angular/package.json
rename to packages/osd-i18n/angular/package.json
diff --git a/packages/kbn-i18n/babel.config.js b/packages/osd-i18n/babel.config.js
similarity index 89%
rename from packages/kbn-i18n/babel.config.js
rename to packages/osd-i18n/babel.config.js
index 4864854b280d..a234e9ef6c86 100644
--- a/packages/kbn-i18n/babel.config.js
+++ b/packages/osd-i18n/babel.config.js
@@ -20,10 +20,10 @@
module.exports = {
env: {
web: {
- presets: ['@kbn/babel-preset/webpack_preset'],
+ presets: ['@osd/babel-preset/webpack_preset'],
},
node: {
- presets: ['@kbn/babel-preset/node_preset'],
+ presets: ['@osd/babel-preset/node_preset'],
},
},
ignore: ['**/*.test.ts', '**/*.test.tsx'],
diff --git a/packages/kbn-i18n/package.json b/packages/osd-i18n/package.json
similarity index 78%
rename from packages/kbn-i18n/package.json
rename to packages/osd-i18n/package.json
index f23faecbeaa6..858fd86ea4a3 100644
--- a/packages/kbn-i18n/package.json
+++ b/packages/osd-i18n/package.json
@@ -1,5 +1,5 @@
{
- "name": "@kbn/i18n",
+ "name": "@osd/i18n",
"browser": "./target/web/browser.js",
"main": "./target/node/index.js",
"types": "./target/types/index.d.ts",
@@ -8,14 +8,14 @@
"private": true,
"scripts": {
"build": "node scripts/build",
- "kbn:bootstrap": "node scripts/build --source-maps",
- "kbn:watch": "node scripts/build --watch --source-maps"
+ "osd:bootstrap": "node scripts/build --source-maps",
+ "osd:watch": "node scripts/build --watch --source-maps"
},
"devDependencies": {
"@babel/cli": "^7.10.5",
"@babel/core": "^7.11.6",
- "@kbn/babel-preset": "1.0.0",
- "@kbn/dev-utils": "1.0.0",
+ "@osd/babel-preset": "1.0.0",
+ "@osd/dev-utils": "1.0.0",
"@types/intl-relativeformat": "^2.1.0",
"@types/react-intl": "^2.3.15",
"del": "^5.1.0",
diff --git a/packages/kbn-i18n/react/package.json b/packages/osd-i18n/react/package.json
similarity index 100%
rename from packages/kbn-i18n/react/package.json
rename to packages/osd-i18n/react/package.json
diff --git a/packages/kbn-i18n/scripts/build.js b/packages/osd-i18n/scripts/build.js
similarity index 95%
rename from packages/kbn-i18n/scripts/build.js
rename to packages/osd-i18n/scripts/build.js
index 406f8f7e59e1..df68ce02a0fd 100644
--- a/packages/kbn-i18n/scripts/build.js
+++ b/packages/osd-i18n/scripts/build.js
@@ -21,7 +21,7 @@ const { resolve } = require('path');
const del = require('del');
const supportsColor = require('supports-color');
-const { run, withProcRunner } = require('@kbn/dev-utils');
+const { run, withProcRunner } = require('@osd/dev-utils');
const ROOT_DIR = resolve(__dirname, '..');
const BUILD_DIR = resolve(ROOT_DIR, 'target');
@@ -82,7 +82,7 @@ run(
});
},
{
- description: 'Simple build tool for @kbn/i18n package',
+ description: 'Simple build tool for @osd/i18n package',
flags: {
boolean: ['watch', 'source-maps'],
help: `
diff --git a/packages/kbn-i18n/src/__fixtures__/test_plugin_1/translations/en-US.json b/packages/osd-i18n/src/__fixtures__/test_plugin_1/translations/en-US.json
similarity index 100%
rename from packages/kbn-i18n/src/__fixtures__/test_plugin_1/translations/en-US.json
rename to packages/osd-i18n/src/__fixtures__/test_plugin_1/translations/en-US.json
diff --git a/packages/kbn-i18n/src/__fixtures__/test_plugin_1/translations/en.json b/packages/osd-i18n/src/__fixtures__/test_plugin_1/translations/en.json
similarity index 100%
rename from packages/kbn-i18n/src/__fixtures__/test_plugin_1/translations/en.json
rename to packages/osd-i18n/src/__fixtures__/test_plugin_1/translations/en.json
diff --git a/packages/kbn-i18n/src/__fixtures__/test_plugin_2/translations/en.json b/packages/osd-i18n/src/__fixtures__/test_plugin_2/translations/en.json
similarity index 100%
rename from packages/kbn-i18n/src/__fixtures__/test_plugin_2/translations/en.json
rename to packages/osd-i18n/src/__fixtures__/test_plugin_2/translations/en.json
diff --git a/packages/kbn-i18n/src/__fixtures__/test_plugin_2/translations/fr.json b/packages/osd-i18n/src/__fixtures__/test_plugin_2/translations/fr.json
similarity index 100%
rename from packages/kbn-i18n/src/__fixtures__/test_plugin_2/translations/fr.json
rename to packages/osd-i18n/src/__fixtures__/test_plugin_2/translations/fr.json
diff --git a/packages/kbn-i18n/src/__fixtures__/test_plugin_2/translations/ru.json b/packages/osd-i18n/src/__fixtures__/test_plugin_2/translations/ru.json
similarity index 100%
rename from packages/kbn-i18n/src/__fixtures__/test_plugin_2/translations/ru.json
rename to packages/osd-i18n/src/__fixtures__/test_plugin_2/translations/ru.json
diff --git a/packages/kbn-i18n/src/__snapshots__/loader.test.ts.snap b/packages/osd-i18n/src/__snapshots__/loader.test.ts.snap
similarity index 100%
rename from packages/kbn-i18n/src/__snapshots__/loader.test.ts.snap
rename to packages/osd-i18n/src/__snapshots__/loader.test.ts.snap
diff --git a/packages/kbn-i18n/src/angular/__snapshots__/directive.test.ts.snap b/packages/osd-i18n/src/angular/__snapshots__/directive.test.ts.snap
similarity index 100%
rename from packages/kbn-i18n/src/angular/__snapshots__/directive.test.ts.snap
rename to packages/osd-i18n/src/angular/__snapshots__/directive.test.ts.snap
diff --git a/packages/kbn-i18n/src/angular/directive.test.ts b/packages/osd-i18n/src/angular/directive.test.ts
similarity index 100%
rename from packages/kbn-i18n/src/angular/directive.test.ts
rename to packages/osd-i18n/src/angular/directive.test.ts
diff --git a/packages/kbn-i18n/src/angular/directive.ts b/packages/osd-i18n/src/angular/directive.ts
similarity index 100%
rename from packages/kbn-i18n/src/angular/directive.ts
rename to packages/osd-i18n/src/angular/directive.ts
diff --git a/packages/kbn-i18n/src/angular/filter.test.ts b/packages/osd-i18n/src/angular/filter.test.ts
similarity index 100%
rename from packages/kbn-i18n/src/angular/filter.test.ts
rename to packages/osd-i18n/src/angular/filter.test.ts
diff --git a/packages/kbn-i18n/src/angular/filter.ts b/packages/osd-i18n/src/angular/filter.ts
similarity index 100%
rename from packages/kbn-i18n/src/angular/filter.ts
rename to packages/osd-i18n/src/angular/filter.ts
diff --git a/packages/kbn-i18n/src/angular/index.ts b/packages/osd-i18n/src/angular/index.ts
similarity index 100%
rename from packages/kbn-i18n/src/angular/index.ts
rename to packages/osd-i18n/src/angular/index.ts
diff --git a/packages/kbn-i18n/src/angular/provider.test.ts b/packages/osd-i18n/src/angular/provider.test.ts
similarity index 100%
rename from packages/kbn-i18n/src/angular/provider.test.ts
rename to packages/osd-i18n/src/angular/provider.test.ts
diff --git a/packages/kbn-i18n/src/angular/provider.ts b/packages/osd-i18n/src/angular/provider.ts
similarity index 100%
rename from packages/kbn-i18n/src/angular/provider.ts
rename to packages/osd-i18n/src/angular/provider.ts
diff --git a/packages/kbn-i18n/src/browser.ts b/packages/osd-i18n/src/browser.ts
similarity index 100%
rename from packages/kbn-i18n/src/browser.ts
rename to packages/osd-i18n/src/browser.ts
diff --git a/packages/kbn-i18n/src/core/__snapshots__/i18n.test.ts.snap b/packages/osd-i18n/src/core/__snapshots__/i18n.test.ts.snap
similarity index 100%
rename from packages/kbn-i18n/src/core/__snapshots__/i18n.test.ts.snap
rename to packages/osd-i18n/src/core/__snapshots__/i18n.test.ts.snap
diff --git a/packages/kbn-i18n/src/core/__snapshots__/pseudo_locale.test.ts.snap b/packages/osd-i18n/src/core/__snapshots__/pseudo_locale.test.ts.snap
similarity index 100%
rename from packages/kbn-i18n/src/core/__snapshots__/pseudo_locale.test.ts.snap
rename to packages/osd-i18n/src/core/__snapshots__/pseudo_locale.test.ts.snap
diff --git a/packages/kbn-i18n/src/core/formats.ts b/packages/osd-i18n/src/core/formats.ts
similarity index 100%
rename from packages/kbn-i18n/src/core/formats.ts
rename to packages/osd-i18n/src/core/formats.ts
diff --git a/packages/kbn-i18n/src/core/helper.test.ts b/packages/osd-i18n/src/core/helper.test.ts
similarity index 100%
rename from packages/kbn-i18n/src/core/helper.test.ts
rename to packages/osd-i18n/src/core/helper.test.ts
diff --git a/packages/kbn-i18n/src/core/helper.ts b/packages/osd-i18n/src/core/helper.ts
similarity index 100%
rename from packages/kbn-i18n/src/core/helper.ts
rename to packages/osd-i18n/src/core/helper.ts
diff --git a/packages/kbn-i18n/src/core/i18n.test.ts b/packages/osd-i18n/src/core/i18n.test.ts
similarity index 100%
rename from packages/kbn-i18n/src/core/i18n.test.ts
rename to packages/osd-i18n/src/core/i18n.test.ts
diff --git a/packages/kbn-i18n/src/core/i18n.ts b/packages/osd-i18n/src/core/i18n.ts
similarity index 98%
rename from packages/kbn-i18n/src/core/i18n.ts
rename to packages/osd-i18n/src/core/i18n.ts
index c66555ab015d..1251cf1c52c0 100644
--- a/packages/kbn-i18n/src/core/i18n.ts
+++ b/packages/osd-i18n/src/core/i18n.ts
@@ -240,7 +240,7 @@ export function init(newTranslation?: Translation) {
* @param translationsUrl URL pointing to the JSON bundle with translations.
*/
export async function load(translationsUrl: string) {
- // Once this package is integrated into core Kibana we should switch to an abstraction
+ // Once this package is integrated into core OpenSearch Dashboards we should switch to an abstraction
// around `fetch` provided by the platform, e.g. `kfetch`.
const response = await fetch(translationsUrl, {
credentials: 'same-origin',
diff --git a/packages/kbn-i18n/src/core/index.ts b/packages/osd-i18n/src/core/index.ts
similarity index 100%
rename from packages/kbn-i18n/src/core/index.ts
rename to packages/osd-i18n/src/core/index.ts
diff --git a/packages/kbn-i18n/src/core/locales.js b/packages/osd-i18n/src/core/locales.js
similarity index 100%
rename from packages/kbn-i18n/src/core/locales.js
rename to packages/osd-i18n/src/core/locales.js
diff --git a/packages/kbn-i18n/src/core/pseudo_locale.test.ts b/packages/osd-i18n/src/core/pseudo_locale.test.ts
similarity index 100%
rename from packages/kbn-i18n/src/core/pseudo_locale.test.ts
rename to packages/osd-i18n/src/core/pseudo_locale.test.ts
diff --git a/packages/kbn-i18n/src/core/pseudo_locale.ts b/packages/osd-i18n/src/core/pseudo_locale.ts
similarity index 100%
rename from packages/kbn-i18n/src/core/pseudo_locale.ts
rename to packages/osd-i18n/src/core/pseudo_locale.ts
diff --git a/packages/kbn-i18n/src/index.ts b/packages/osd-i18n/src/index.ts
similarity index 100%
rename from packages/kbn-i18n/src/index.ts
rename to packages/osd-i18n/src/index.ts
diff --git a/packages/kbn-i18n/src/loader.test.ts b/packages/osd-i18n/src/loader.test.ts
similarity index 100%
rename from packages/kbn-i18n/src/loader.test.ts
rename to packages/osd-i18n/src/loader.test.ts
diff --git a/packages/kbn-i18n/src/loader.ts b/packages/osd-i18n/src/loader.ts
similarity index 100%
rename from packages/kbn-i18n/src/loader.ts
rename to packages/osd-i18n/src/loader.ts
diff --git a/packages/kbn-i18n/src/react/__snapshots__/provider.test.tsx.snap b/packages/osd-i18n/src/react/__snapshots__/provider.test.tsx.snap
similarity index 100%
rename from packages/kbn-i18n/src/react/__snapshots__/provider.test.tsx.snap
rename to packages/osd-i18n/src/react/__snapshots__/provider.test.tsx.snap
diff --git a/packages/kbn-i18n/src/react/index.tsx b/packages/osd-i18n/src/react/index.tsx
similarity index 100%
rename from packages/kbn-i18n/src/react/index.tsx
rename to packages/osd-i18n/src/react/index.tsx
diff --git a/packages/kbn-i18n/src/react/inject.tsx b/packages/osd-i18n/src/react/inject.tsx
similarity index 100%
rename from packages/kbn-i18n/src/react/inject.tsx
rename to packages/osd-i18n/src/react/inject.tsx
diff --git a/packages/kbn-i18n/src/react/provider.test.tsx b/packages/osd-i18n/src/react/provider.test.tsx
similarity index 100%
rename from packages/kbn-i18n/src/react/provider.test.tsx
rename to packages/osd-i18n/src/react/provider.test.tsx
diff --git a/packages/kbn-i18n/src/react/provider.tsx b/packages/osd-i18n/src/react/provider.tsx
similarity index 100%
rename from packages/kbn-i18n/src/react/provider.tsx
rename to packages/osd-i18n/src/react/provider.tsx
diff --git a/packages/kbn-i18n/src/react/pseudo_locale_wrapper.tsx b/packages/osd-i18n/src/react/pseudo_locale_wrapper.tsx
similarity index 100%
rename from packages/kbn-i18n/src/react/pseudo_locale_wrapper.tsx
rename to packages/osd-i18n/src/react/pseudo_locale_wrapper.tsx
diff --git a/packages/kbn-i18n/src/translation.ts b/packages/osd-i18n/src/translation.ts
similarity index 100%
rename from packages/kbn-i18n/src/translation.ts
rename to packages/osd-i18n/src/translation.ts
diff --git a/packages/kbn-i18n/tsconfig.json b/packages/osd-i18n/tsconfig.json
similarity index 100%
rename from packages/kbn-i18n/tsconfig.json
rename to packages/osd-i18n/tsconfig.json
diff --git a/packages/kbn-i18n/types/intl_format_cache.d.ts b/packages/osd-i18n/types/intl_format_cache.d.ts
similarity index 100%
rename from packages/kbn-i18n/types/intl_format_cache.d.ts
rename to packages/osd-i18n/types/intl_format_cache.d.ts
diff --git a/packages/kbn-i18n/types/intl_relativeformat.d.ts b/packages/osd-i18n/types/intl_relativeformat.d.ts
similarity index 100%
rename from packages/kbn-i18n/types/intl_relativeformat.d.ts
rename to packages/osd-i18n/types/intl_relativeformat.d.ts
diff --git a/packages/kbn-i18n/yarn.lock b/packages/osd-i18n/yarn.lock
similarity index 100%
rename from packages/kbn-i18n/yarn.lock
rename to packages/osd-i18n/yarn.lock