Skip to content

Commit

Permalink
move laoder to root, i18n folder to core
Browse files Browse the repository at this point in the history
  • Loading branch information
yankouskia committed Jul 12, 2018
1 parent 850548d commit 4c236db
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions packages/kbn-i18n/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@kbn/i18n",
"browser": "./target/web/core",
"main": "./target/node/core",
"browser": "./target/web",
"main": "./target/node",
"module": "./src/index.js",
"version": "1.0.0",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/kbn-i18n/src/angular/provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import * as i18n from '../core/i18n';
import * as i18n from '../core';

export function i18nProvider() {
this.addMessages = i18n.addMessages;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 2 additions & 5 deletions packages/kbn-i18n/src/core/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,5 @@
* under the License.
*/

import * as i18nCore from './i18n';
import * as loader from './loader';

export const i18n = i18nCore;
export const i18nLoader = loader;
export { formats } from './formats';
export * from './i18n';
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@
* under the License.
*/

export { formats } from './formats';
export * from './i18n';
import * as i18nCore from './core';
import * as loader from './loader';

export const i18n = i18nCore;
export const i18nLoader = loader;
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { readFile } from 'fs';
import { promisify } from 'util';
import { pick } from 'accept-language-parser';
import JSON5 from 'json5';
import { unique } from './i18n/helper';
import { unique } from './core/helper';

const asyncReadFile = promisify(readFile);

Expand Down
2 changes: 1 addition & 1 deletion packages/kbn-i18n/src/react/provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { IntlProvider } from 'react-intl';

import * as i18n from '../core/i18n';
import * as i18n from '../core';

/**
* The library uses the provider pattern to scope an i18n context to a tree
Expand Down

0 comments on commit 4c236db

Please sign in to comment.