Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

quasar $t i18n

import VueI18n from 'vue-i18n'
import { messages } from 'src/i18n'
let i18n
export default ({ app, Vue }) => {
  Vue.use(VueI18n)
  app.i18n = new VueI18n({
    locale: 'en-us',
    fallbackLocale: 'en-us',
    messages
  })
  i18n = app.i18n
}
export { i18n }
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #quasar
ADD COMMENT
Topic
Name
1+4 =