Skip to content

Commit

Permalink
split translation file
Browse files Browse the repository at this point in the history
  • Loading branch information
vol4tim committed Feb 25, 2025
1 parent 9210b87 commit 3e64448
Show file tree
Hide file tree
Showing 5 changed files with 443 additions and 442 deletions.
7 changes: 5 additions & 2 deletions src/components/header/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@

<div class="flexline">
<select v-model="locale">
<option value="en">English</option>
<option value="ru">Русский</option>
<option v-for="lang in languages" :key="lang.code" :value="lang.code">
{{ lang.title }}
</option>
</select>


Expand Down Expand Up @@ -55,6 +56,7 @@

<script>
import { useStore } from "@/store";
import { languages } from "@/translate";
import IconSensor from "../icons/Sensor.vue";
export default {
Expand All @@ -63,6 +65,7 @@ export default {
data() {
return {
locale: localStorage.getItem("locale") || this.$i18n.locale || 'en',
languages: languages,
store: useStore(),
}
},
Expand Down
Loading

0 comments on commit 3e64448

Please sign in to comment.