Sign in

简柏林 / thingskit-app · Files

GitLab

  • Go to dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Network
  • thingskit-app
  • config
  • i18n.js
  • Feat/i18n support
    32765446
    张 峰林 authored
    2024-10-15 01:56:43 +0000  
    Browse Files »
i18n.js 276 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14
import Vue from 'vue'
import VueI18n from 'vue-i18n'
import zh from '@/locale/lang/zh-CN'
import en from '@/locale/lang/en'
Vue.use(VueI18n)
let i18n = new VueI18n({
  locale: uni.getLocale() || 'zh-CN',
  messages: {
    'zh-CN': zh,
    'en': en
  }
})

export default i18n