Skip to content

lucasguiss/vuejs-i18n

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Template for Vuejs with i18n support

Set the locale message you want:

At the /locales/en.ts:

export default {
  en: {
      message: "My message works!"
  },
};

At the /locales/pt-br.ts:

export default {
  'pt-br': {
      message: "Minha mensagem funciona!"
  },
};

To use the message you can simply do:

{{ $t('message') }}