Skip to content

Commit 4b4ddee

Browse files
committed
Localization
1 parent 044a4a8 commit 4b4ddee

File tree

7 files changed

+175
-6
lines changed

7 files changed

+175
-6
lines changed

src/_locales/de/messages.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,38 @@
128128
"notificationsSettings": {
129129
"message": "Benachrichtigungen"
130130
},
131+
"pomodoroMode": {
132+
"message": "Pomodoro"
133+
},
134+
"pomodoro": {
135+
"message": "Pomodoro",
136+
"description": "Die Pomodoro-Methode ist eine Zeitmanagementtechnik, die auf dem Wechsel von konzentrierten Arbeits- und Ruhephasen basiert. Bei der klassischen Pomodoro-Methode dauert die Arbeitsphase 25 Minuten und die Ruhephase 5 Minuten."
137+
},
138+
"pomodoroExplanationIcon": {
139+
"message": "Wenn der Pomodoro-Modus aktiviert ist und der Betriebsmodus aktiv ist, sehen Sie dieses Symbol",
140+
"description": "Während der Ruhezeiten sehen Sie dieses Erweiterungssymbol"
141+
},
142+
"pomodoroExplanationTime": {
143+
"message": "Während des Pomodoro-Modus berücksichtigt die Erweiterung weiterhin die Zeit, die Sie auf den Seiten verbracht haben, alle Grenzen und Benachrichtigungen funktionieren."
144+
},
145+
"pomodoroExplanationStop": {
146+
"message": "Nach dem Drücken von 'Stop' werden die Betriebs- und Ruhezeiten auf Null zurückgesetzt."
147+
},
148+
"pomodoroWork": {
149+
"message": "Zeitraum der Arbeit"
150+
},
151+
"pomodoroRest": {
152+
"message": "Ruhezeit"
153+
},
154+
"pomodoroFrequency": {
155+
"message": "Anzahl der Wiederholungen"
156+
},
157+
"start": {
158+
"message": "Starten Sie"
159+
},
160+
"stop": {
161+
"message": "Stop"
162+
},
131163
"aboutSettings": {
132164
"message": "Über die Erweiterung"
133165
},
@@ -315,5 +347,9 @@
315347
"promoClearYoutube": {
316348
"message": "Möchten Sie Kurzfilme, Kommentare, empfohlene Videos, Abonnements und andere YouTube-Ablenkungen blockieren? Wir haben eine weitere Erweiterung erstellt, mit der Sie YouTube ohne Ablenkung ansehen können.",
317349
"description": "Install"
350+
},
351+
"completelyBlocked": {
352+
"message": "Vollständig blockiert",
353+
"description": "Vollständig blockieren"
318354
}
319355
}

src/_locales/en/messages.json

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"message": "Web Activity Time Tracker - Block Sites"
44
},
55
"extDescription": {
6-
"message": "Time tracking of your web activity, limit and block distracting websites. Monitor your web usage."
6+
"message": "Track time of your web activity, limit and block distracting websites. Monitor your web usage."
77
},
88
"settings": {
99
"message": "Settings"
@@ -128,6 +128,38 @@
128128
"notificationsSettings": {
129129
"message": "Notifications"
130130
},
131+
"pomodoroMode": {
132+
"message": "Pomodoro"
133+
},
134+
"pomodoro": {
135+
"message": "Pomodoro",
136+
"description": "The Pomodoro method is a time management technique based on alternating periods of focused work and rest. According to the classics of the Pomodoro method, the work period lasts 25 minutes, the rest period is 5 minutes."
137+
},
138+
"pomodoroExplanationIcon": {
139+
"message": "When Pomodoro mode is on and operation mode is active, you will see this icon",
140+
"description": "During rest periods, you will see this extension icon"
141+
},
142+
"pomodoroExplanationTime": {
143+
"message": "During Pomodoro mode, the extension continues to take into account the time you spent on the sites, all limits and notifications work."
144+
},
145+
"pomodoroExplanationStop": {
146+
"message": "After clicking 'Stop', work and rest time is reset to zero."
147+
},
148+
"pomodoroWork": {
149+
"message": "The period of work"
150+
},
151+
"pomodoroRest": {
152+
"message": "The rest period"
153+
},
154+
"pomodoroFrequency": {
155+
"message": "Number of repetitions"
156+
},
157+
"start": {
158+
"message": "Run"
159+
},
160+
"stop": {
161+
"message": "Stop"
162+
},
131163
"aboutSettings": {
132164
"message": "About"
133165
},
@@ -315,5 +347,9 @@
315347
"intervalsChart": {
316348
"message": "Only time intervals greater than",
317349
"description": "are shown"
350+
},
351+
"completelyBlocked": {
352+
"message": "Completely Blocked",
353+
"description": "Completely Block"
318354
}
319355
}

src/_locales/ru/messages.json

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,38 @@
128128
"notificationsSettings": {
129129
"message": "Уведомления"
130130
},
131+
"pomodoroMode": {
132+
"message": "Pomodoro"
133+
},
134+
"pomodoro": {
135+
"message": "Pomodoro",
136+
"description": "Метод Pomodoro — это техника тайм-менеджмента, завязанная на чередовании периодов сфокусированной работы и отдыха. По классике метода помодоро период работы длится 25 минут, период отдыха 5 минут."
137+
},
138+
"pomodoroExplanationIcon": {
139+
"message": "Когда режим Pomodoro включен и активен режим работы, то вы будете видеть эту иконку",
140+
"description": "В периоды отдыха вы будете видеть эту иконку расширения"
141+
},
142+
"pomodoroExplanationTime": {
143+
"message": "Во время режима Pomodoro, расширение продолжает учитывать время, которые вы провели на сайтах,работают все лимиты и уведомления."
144+
},
145+
"pomodoroExplanationStop": {
146+
"message": "После нажатия 'Остановить', время работы и отдыха обнуляется."
147+
},
148+
"pomodoroWork": {
149+
"message": "Период работы"
150+
},
151+
"pomodoroRest": {
152+
"message": "Период отдыха"
153+
},
154+
"pomodoroFrequency": {
155+
"message": "Количество повторов"
156+
},
157+
"start": {
158+
"message": "Запустить"
159+
},
160+
"stop": {
161+
"message": "Остановить"
162+
},
131163
"aboutSettings": {
132164
"message": "\u041E программе"
133165
},
@@ -310,11 +342,15 @@
310342
"message": "По часам"
311343
},
312344
"intervals": {
313-
"message": "Интервальны",
345+
"message": "Интервалы",
314346
"description": "Отображаются только временные интервалы, превышающие 5 секунд"
315347
},
316348
"intervalsChart": {
317349
"message": "Отображаются только временные интервалы, превышающие",
318350
"description": ""
351+
},
352+
"completelyBlocked": {
353+
"message": "Полностью заблокирован",
354+
"description": "Полностью заблокировать"
319355
}
320356
}

src/_locales/zh_CN/messages.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,38 @@
128128
"notificationsSettings": {
129129
"message": "通知"
130130
},
131+
"pomodoroMode": {
132+
"message": "Pomodoro"
133+
},
134+
"pomodoro": {
135+
"message": "Pomodoro",
136+
"description": "Pomodoro 工作法是一种时间管理技术,以交替集中工作和休息为基础。根据经典的 Pomodoro 方法,工作时间为 25 分钟,休息时间为 5 分钟。"
137+
},
138+
"pomodoroExplanationIcon": {
139+
"message": "启用 Pomodoro 模式并激活操作模式后,您将看到以下图标",
140+
"description": "在休息时间,您会看到这个扩展图标"
141+
},
142+
"pomodoroExplanationTime": {
143+
"message": "在 Pomodoro 模式下,扩展会继续考虑你在网站上花费的时间、所有限制和通知。"
144+
},
145+
"pomodoroExplanationStop": {
146+
"message": "按下 '停止' 键后,运行时间和休息时间将重置为零"
147+
},
148+
"pomodoroWork": {
149+
"message": "工作期限"
150+
},
151+
"pomodoroRest": {
152+
"message": "休息时间"
153+
},
154+
"pomodoroFrequency": {
155+
"message": "重复次数"
156+
},
157+
"start": {
158+
"message": "启动"
159+
},
160+
"stop": {
161+
"message": "停止"
162+
},
131163
"aboutSettings": {
132164
"message": "关于"
133165
},
@@ -315,5 +347,9 @@
315347
"promoClearYoutube": {
316348
"message": "您想屏蔽短片、评论、推荐视频、订阅和其他 YouTube 干扰内容吗? 我们创建了另一个扩展程序,可帮助您不受干扰地观看 YouTube",
317349
"description": "安装"
350+
},
351+
"completelyBlocked": {
352+
"message": "完全封锁",
353+
"description": "完全封锁"
318354
}
319355
}

src/assets/css/dashboard.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ body {
2121
}
2222

2323
.description {
24-
font-size: 13px;
24+
font-size: 14px;
2525
color: grey;
2626
margin: 7px 0 15px 0;
2727
font-weight: normal;

src/components/Pomodoro.vue

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33
<p class="description">
44
{{ t('pomodoro.description') }}
55
</p>
6+
<div class="explanation-block">
7+
<p class="explanation">
8+
{{ t('pomodoroExplanationIcon.message') }}
9+
<span><img class="ml-5" src="../assets/icons/pomodoro.png" height="30" /></span>.
10+
{{ t('pomodoroExplanationIcon.description') }}
11+
<img class="ml-5" src="../assets/icons/pomodoro-rest.png" height="30" />.
12+
</p>
13+
<p class="explanation">
14+
{{ t('pomodoroExplanationTime.message') }}
15+
</p>
16+
<p class="explanation">{{ t('pomodoroExplanationStop.message') }}</p>
17+
</div>
618
<div class="pomodoro-block mt-20">
719
<p class="title">{{ t('pomodoroWork.message') }}</p>
820
<VueDatePicker v-model="workTime" time-picker class="date-picker" />
@@ -26,7 +38,11 @@
2638
</button>
2739
</template>
2840

29-
<script lang="ts"></script>
41+
<script lang="ts">
42+
export default {
43+
name: 'Pomodoro',
44+
};
45+
</script>
3046

3147
<script lang="ts" setup>
3248
import { onMounted, ref } from 'vue';
@@ -160,4 +176,14 @@ button.start {
160176
button.stop {
161177
background-color: rgb(191, 59, 59) !important;
162178
}
179+
.explanation-block {
180+
margin: 10px 0;
181+
padding: 15px;
182+
background-color: #d7d7ff;
183+
border-radius: 10px;
184+
}
185+
.explanation-block .explanation {
186+
font-size: 15px;
187+
color: black;
188+
}
163189
</style>

src/pages/Popup.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ function updateTab() {
141141
}
142142
.headerBlock .header {
143143
font-size: 16px;
144-
padding: 0 10px;
144+
padding: 0 0 0 5px;
145145
display: inline-block;
146146
font-weight: 600;
147147
color: #4a4a4a;
@@ -176,6 +176,5 @@ function updateTab() {
176176
}
177177
.headerBlock .icons-block .dark-mode-icon {
178178
vertical-align: middle;
179-
margin-right: 10px;
180179
}
181180
</style>

0 commit comments

Comments
 (0)