Created
April 3, 2017 09:59
-
-
Save toanalien/bbf1b1d17cff9dafa260550e2062f84e to your computer and use it in GitHub Desktop.
vue-i18n example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Vue from 'vue' | |
| import i18n from 'voo-i18n' | |
| const translations = { | |
| 'es': { | |
| 'Hello world': 'Hola Mundo' | |
| }, | |
| 'fr': { | |
| 'Hello world': 'Bonjour le monde' | |
| }, | |
| 'pirate': { | |
| 'Hello world': 'Land ho!' | |
| } | |
| } | |
| Vue.use(i18n, translations) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment