UNPKG

efview-plus

Version:

A high quality Service UI components Library with Vue.js

16 lines (14 loc) 423 B
// using with vue-i18n in CDN /*eslint-disable */ // import Vue from 'vue'; // const isServer = Vue.prototype.$isServer; import { isClient } from '../utils/index'; export default function (lang) { if (isClient && typeof window.viewuiplus !== 'undefined') { if (!('langs' in viewuiplus)) { viewuiplus.langs = {}; } viewuiplus.langs[lang.i.locale] = lang; } }; /*eslint-enable */