Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fallback locale not working #174

Closed
oswaldofreitas opened this issue Jun 11, 2017 · 0 comments
Closed

fallback locale not working #174

oswaldofreitas opened this issue Jun 11, 2017 · 0 comments
Labels
Type: Bug Bug or Bug fixes

Comments

@oswaldofreitas
Copy link

main.js

const i18n = new VueI18n({
  locale: 'es',
  fallbackLocale: 'pt',
  messages: {
    es: { }
    pt: { }
  }
})

new Vue({
  el: '#app',
  router,
  i18n,
  template: '<App/>',
  components: { App }
})

component.vue

<template lang='pug'>
  div
    | {{$t('choose')}}
</template>

<i18n>
pt:
  choose: 'Selecione seu idioma'
</i18n>

screen shot 2017-06-11 at 14 35 50

I guess this warning messages should not appear and 'choose' should be taken from local component locale messages using the fallback locale 'pt', so in this case should be "Selecione seu idioma".

@kazupon kazupon added the Type: Bug Bug or Bug fixes label Jun 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Bug or Bug fixes
Projects
None yet
Development

No branches or pull requests

2 participants