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 VueI18n from "vue-i18n"; | |
Vue.use(VueI18n); | |
// On change of language, switch the /locals/_language_.json file | |
function loadLocaleMessages() { | |
const locales = require.context( | |
"./locales", | |
true, |
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
const path = require("path"); | |
const { JSONAdapter } = require("vue-translation-manager"); | |
module.exports = { | |
srcPath: path.join(__dirname, "src/"), | |
adapter: new JSONAdapter({ | |
path: path.join(__dirname, "src/locales/"), | |
}), | |
languages: ["ko", "en", "es", "ja", "zh"], | |
}; |
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
<template> | |
<div id="tabs" class="container"> | |
<div class="tabs"> | |
<a v-on:click="activetab=1" v-bind:class="[ activetab === 1 ? 'active' : '' ]">Tab 1</a> | |
<a v-on:click="activetab=2" v-bind:class="[ activetab === 2 ? 'active' : '' ]">Tab 2</a> | |
<a v-on:click="activetab=3" v-bind:class="[ activetab === 3 ? 'active' : '' ]">Tab 3</a> | |
</div> | |
<div class="content"> |
NewerOlder