Commit b9c1fe77031b90e3109725b613b682e516bb189c

Authored by Sergio Crisostomo
1 parent 427dd34f

export locale objects

Showing 2 changed files with 38 additions and 2 deletions   Show diff stats
src/index.js
... ... @@ -49,7 +49,8 @@ import Tree from './components/tree';
49 49 import Upload from './components/upload';
50 50 import {Row, Col} from './components/grid';
51 51 import {Select, Option, OptionGroup} from './components/select';
52   -import locale from './locale';
  52 +import locale from './locale/index';
  53 +import locales from './locale/locales';
53 54  
54 55 const iview = {
55 56 Affix,
... ... @@ -149,4 +150,4 @@ if (typeof window !== 'undefined' && window.Vue) {
149 150 install(window.Vue);
150 151 }
151 152  
152   -module.exports = Object.assign(iview, {install}); // eslint-disable-line no-undef
  153 +module.exports = Object.assign(iview, {install, locales}); // eslint-disable-line no-undef
... ...
src/locale/locales.js 0 → 100644
  1 +// export all locale files
  2 +
  3 +import deDE from './lang/de-DE.js';
  4 +import enUS from './lang/en-US.js';
  5 +import esES from './lang/es-ES.js';
  6 +import frFR from './lang/fr-FR.js';
  7 +import idID from './lang/id-ID.js';
  8 +import jaJP from './lang/ja-JP.js';
  9 +import koKR from './lang/ko-KR.js';
  10 +import ptBR from './lang/pt-BR.js';
  11 +import ptPT from './lang/pt-PT.js';
  12 +import ruRU from './lang/ru-RU.js';
  13 +import svSE from './lang/sv-SE.js';
  14 +import trTR from './lang/tr-TR.js';
  15 +import viVN from './lang/vi-VN.js';
  16 +import zhCN from './lang/zh-CN.js';
  17 +import zhTW from './lang/zh-TW.js';
  18 +
  19 +export default {
  20 + 'de-DE': deDE,
  21 + 'en-US': enUS,
  22 + 'es-ES': esES,
  23 + 'fr-FR': frFR,
  24 + 'id-ID': idID,
  25 + 'ja-JP': jaJP,
  26 + 'ko-KR': koKR,
  27 + 'pt-BR': ptBR,
  28 + 'pt-PT': ptPT,
  29 + 'ru-RU': ruRU,
  30 + 'sv-SE': svSE,
  31 + 'tr-TR': trTR,
  32 + 'vi-VN': viVN,
  33 + 'zh-CN': zhCN,
  34 + 'zh-TW': zhTW
  35 +};
... ...