added a lot of translations and fixed profile and navbar
This commit is contained in:
@@ -1,12 +1,7 @@
|
||||
<template>
|
||||
<div class="home">
|
||||
<b-alert show>Default Alert</b-alert>
|
||||
<div>
|
||||
<button class="lang-btn" v-for="entry in languages" :key="entry.title" @click="changeLocale(entry.language)">
|
||||
<flag :iso="entry.flag" v-bind:squared="false"/>
|
||||
{{entry.title}}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<img alt="Vue logo" src="../assets/logo.png">
|
||||
<HelloWorld msg="Welcome to Your Vue.js + TypeScript App"/>
|
||||
</div>
|
||||
@@ -25,26 +20,14 @@
|
||||
export default class Home extends Vue {
|
||||
public data() {
|
||||
return {
|
||||
languages: [
|
||||
{flag: 'us', language: 'en', title: 'English'},
|
||||
{flag: 'es', language: 'es', title: 'Español'},
|
||||
{flag: 'de', language: 'de', title: 'Deutsch'},
|
||||
],
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
public changeLocale(locale: string): void {
|
||||
i18n.locale = locale;
|
||||
// Vue.$moment.locale(locale);
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.lang-btn {
|
||||
padding: 15px;
|
||||
border: 2px solid green;
|
||||
font-size: 18px;
|
||||
margin: 15px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user