Browse Source

refactor(gui): move lang folder from static

static files will copy to production build which is not required in case of lang since it's already packed with the build

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/452/head
Pranav C 3 years ago
parent
commit
e57130a849
  1. 0
      packages/nc-gui/lang/en.json
  2. 0
      packages/nc-gui/lang/es.json
  3. 0
      packages/nc-gui/lang/fr.json
  4. 0
      packages/nc-gui/lang/ja.json
  5. 0
      packages/nc-gui/lang/pt.json
  6. 0
      packages/nc-gui/lang/zh_CN.json
  7. 0
      packages/nc-gui/lang/zh_HK.json
  8. 0
      packages/nc-gui/lang/zh_TW.json
  9. 16
      packages/nc-gui/plugins/i18n.js

0
packages/nc-gui/static/lang/en.json → packages/nc-gui/lang/en.json

0
packages/nc-gui/static/lang/es.json → packages/nc-gui/lang/es.json

0
packages/nc-gui/static/lang/fr.json → packages/nc-gui/lang/fr.json

0
packages/nc-gui/static/lang/ja.json → packages/nc-gui/lang/ja.json

0
packages/nc-gui/static/lang/pt.json → packages/nc-gui/lang/pt.json

0
packages/nc-gui/static/lang/zh_CN.json → packages/nc-gui/lang/zh_CN.json

0
packages/nc-gui/static/lang/zh_HK.json → packages/nc-gui/lang/zh_HK.json

0
packages/nc-gui/static/lang/zh_TW.json → packages/nc-gui/lang/zh_TW.json

16
packages/nc-gui/plugins/i18n.js

@ -18,14 +18,14 @@ export default ({ app, store }) => {
// Associate each locale to a content file // Associate each locale to a content file
messages: { messages: {
en: require('~/static/lang/en.json'), en: require('~/lang/en.json'),
// zh_HK: require('~/static/lang/zh_HK.json'), // zh_HK: require('~/lang/zh_HK.json'),
// zh_TW: require('~/static/lang/zh_TW.json'), // zh_TW: require('~/lang/zh_TW.json'),
// zh_CN: require('~/static/lang/zh_CN.json'), // zh_CN: require('~/lang/zh_CN.json'),
// ja: require("~/static/lang/ja.json"), // ja: require("~/lang/ja.json"),
fr: require('~/static/lang/fr.json'), fr: require('~/lang/fr.json'),
es: require('~/static/lang/es.json'), es: require('~/lang/es.json'),
pt: require('~/static/lang/pt.json') pt: require('~/lang/pt.json')
} }
}) })

Loading…
Cancel
Save