yp-i18n-response
Version:
yp error messages with i18n
7 lines (6 loc) • 529 B
JavaScript
;Object.defineProperty(exports,'__esModule',{value:true});exports.default=YpI18n;/*
* @Author: PandaJ
* @Date: 2018-09-08 16:34:55
* @Last Modified by: PandaJ
* @Last Modified time: 2018-11-30 15:59:25
*/function YpI18n(locale){return new Promise(function(resolve){switch(locale){case'zh-CN':import(/* webpackChunkName: "yp.zh-CN" */'./i18n/zh-CN.json').then(function(lang){resolve(lang)});break;case'en':import(/* webpackChunkName: "yp.en" */'./i18n/en.json').then(function(lang){resolve(lang)});break;}})}