|
6 | 6 | </div> |
7 | 7 | <div class="icons-block"> |
8 | 8 | <!-- <img height="17" src="../assets/icons/dark-mode.svg" /> --> |
9 | | - <a @click="openDashboard()">Settings<img height="22" src="../assets/icons/settings.svg" /></a> |
| 9 | + <a @click="openDashboard()" |
| 10 | + >{{ t('settings.message') }}<img height="22" src="../assets/icons/settings.svg" |
| 11 | + /></a> |
10 | 12 | </div> |
11 | 13 | </div> |
12 | 14 | <div class="tabs"> |
|
31 | 33 | /> |
32 | 34 | <ul> |
33 | 35 | <li title="Today"> |
34 | | - <label for="todayTab" role="button"><span>Today</span></label> |
| 36 | + <label for="todayTab" role="button" |
| 37 | + ><span>{{ t('today.message') }}</span></label |
| 38 | + > |
35 | 39 | </li> |
36 | 40 | <li title="All The Time"> |
37 | | - <label for="allTimeTab" role="button"><span>All The Time</span></label> |
| 41 | + <label for="allTimeTab" role="button" |
| 42 | + ><span>{{ t('allTime.message') }}</span></label |
| 43 | + > |
38 | 44 | </li> |
39 | 45 | <li title="By Days"> |
40 | | - <label for="byDaysTab" role="button"><span>By Days</span></label> |
| 46 | + <label for="byDaysTab" role="button" |
| 47 | + ><span>{{ t('byDays.message') }}</span></label |
| 48 | + > |
41 | 49 | </li> |
42 | 50 | </ul> |
43 | 51 |
|
|
62 | 70 |
|
63 | 71 | <script lang="ts" setup> |
64 | 72 | import { onMounted, ref } from 'vue'; |
| 73 | +import { useI18n } from 'vue-i18n'; |
65 | 74 | import Browser from 'webextension-polyfill'; |
66 | 75 | import TabList from '../components/TabList.vue'; |
67 | 76 | import ByDays from '../components/ByDays.vue'; |
68 | 77 | import { TypeOfList } from '../utils/enums'; |
69 | 78 |
|
| 79 | +const { t } = useI18n(); |
| 80 | +
|
70 | 81 | async function openDashboard() { |
71 | 82 | await Browser.tabs.create({ |
72 | 83 | url: Browser.runtime.getURL('src/dashboard.html'), |
|
0 commit comments