Skip to content

Commit b6bf155

Browse files
committed
Localization
1 parent a1a4ff9 commit b6bf155

File tree

5 files changed

+62
-17
lines changed

5 files changed

+62
-17
lines changed

src/_locales/de/messages.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@
131131
"pomodoroMode": {
132132
"message": "Pomodoro"
133133
},
134+
"pomodoroSettings": {
135+
"message": "Pomodoro Einstellungen"
136+
},
134137
"pomodoro": {
135138
"message": "Pomodoro",
136139
"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."
@@ -163,6 +166,15 @@
163166
"pomodoroIsEnabled": {
164167
"message": "Der Pomodoro-Modus ist aktiviert"
165168
},
169+
"pomodoroSoundAfter": {
170+
"message": "Ton nach vollständiger Periode"
171+
},
172+
"clickToPreview": {
173+
"message": "Zum Anhören klicken"
174+
},
175+
"sound": {
176+
"message": "Ton"
177+
},
166178
"aboutSettings": {
167179
"message": "Über die Erweiterung"
168180
},

src/_locales/en/messages.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@
149149
"message": "After clicking 'Stop', work and rest time is reset to zero."
150150
},
151151
"pomodoroWork": {
152-
"message": "The period of work"
152+
"message": "Period of work"
153153
},
154154
"pomodoroRest": {
155-
"message": "The rest period"
155+
"message": "Period of rest"
156156
},
157157
"pomodoroFrequency": {
158158
"message": "Number of repetitions"
@@ -166,6 +166,15 @@
166166
"pomodoroIsEnabled": {
167167
"message": "Pomodoro Mode is enabled"
168168
},
169+
"pomodoroSoundAfter": {
170+
"message": "Sound after complete period"
171+
},
172+
"clickToPreview": {
173+
"message": "Click to listen"
174+
},
175+
"sound": {
176+
"message": "Sound"
177+
},
169178
"aboutSettings": {
170179
"message": "About"
171180
},

src/_locales/ru/messages.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@
131131
"pomodoroMode": {
132132
"message": "Pomodoro"
133133
},
134+
"pomodoroSettings": {
135+
"message": "Настройки Pomodoro"
136+
},
134137
"pomodoro": {
135138
"message": "Pomodoro",
136139
"description": "Метод Pomodoro — это техника тайм-менеджмента, завязанная на чередовании периодов сфокусированной работы и отдыха. По классике метода помодоро период работы длится 25 минут, период отдыха 5 минут."
@@ -163,6 +166,15 @@
163166
"pomodoroIsEnabled": {
164167
"message": "Режим Pomodoro включен"
165168
},
169+
"pomodoroSoundAfter": {
170+
"message": "Воспроизведение после завершения периода"
171+
},
172+
"clickToPreview": {
173+
"message": "Нажмите для прослушивания"
174+
},
175+
"sound": {
176+
"message": "Мелодия"
177+
},
166178
"aboutSettings": {
167179
"message": "\u041E программе"
168180
},

src/_locales/zh_CN/messages.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@
131131
"pomodoroMode": {
132132
"message": "Pomodoro"
133133
},
134+
"pomodoroSettings": {
135+
"message": "Pomodoro 设置"
136+
},
134137
"pomodoro": {
135138
"message": "Pomodoro",
136139
"description": "Pomodoro 工作法是一种时间管理技术,以交替集中工作和休息为基础。根据经典的 Pomodoro 方法,工作时间为 25 分钟,休息时间为 5 分钟。"
@@ -163,6 +166,15 @@
163166
"pomodoroIsEnabled": {
164167
"message": "番茄钟模式已启用"
165168
},
169+
"pomodoroSoundAfter": {
170+
"message": "完整时段后的声音"
171+
},
172+
"clickToPreview": {
173+
"message": "点击收听"
174+
},
175+
"sound": {
176+
"message": "声音"
177+
},
166178
"aboutSettings": {
167179
"message": "关于"
168180
},

src/components/PomodoroSoundsSelector.vue

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
<template>
2-
<p class="title-audio d-inline-block">Sound after complete period</p>
2+
<p class="title-audio d-inline-block">{{ t('pomodoroSoundAfter.message') }}</p>
33
<select class="option" v-model="audioAfterPeriod" @change="onAudioChange($event.target)">
4-
<option :value="PomodoroSounds['Sound 1']">Sound 1</option>
5-
<option :value="PomodoroSounds['Sound 2']">Sound 2</option>
6-
<option :value="PomodoroSounds['Sound 3']">Sound 3</option>
7-
<option :value="PomodoroSounds['Sound 4']">Sound 4</option>
8-
<option :value="PomodoroSounds['Sound 5']">Sound 5</option>
9-
<option :value="PomodoroSounds['Sound 6']">Sound 6</option>
10-
<option :value="PomodoroSounds['Sound 7']">Sound 7</option>
11-
<option :value="PomodoroSounds['Sound 8']">Sound 8</option>
12-
<option :value="PomodoroSounds['Sound 9']">Sound 9</option>
13-
<option :value="PomodoroSounds['Sound 10']">Sound 10</option>
14-
<option :value="PomodoroSounds['Sound 11']">Sound 11</option>
15-
<option :value="PomodoroSounds['Sound 12']">Sound 12</option>
16-
<option :value="PomodoroSounds['Sound 13']">Sound 13</option>
4+
<option :value="PomodoroSounds['Sound 1']">{{ t('sound.message') }} 1</option>
5+
<option :value="PomodoroSounds['Sound 2']">{{ t('sound.message') }} 2</option>
6+
<option :value="PomodoroSounds['Sound 3']">{{ t('sound.message') }} 3</option>
7+
<option :value="PomodoroSounds['Sound 4']">{{ t('sound.message') }} 4</option>
8+
<option :value="PomodoroSounds['Sound 5']">{{ t('sound.message') }} 5</option>
9+
<option :value="PomodoroSounds['Sound 6']">{{ t('sound.message') }} 6</option>
10+
<option :value="PomodoroSounds['Sound 7']">{{ t('sound.message') }} 7</option>
11+
<option :value="PomodoroSounds['Sound 8']">{{ t('sound.message') }} 8</option>
12+
<option :value="PomodoroSounds['Sound 9']">{{ t('sound.message') }} 9</option>
13+
<option :value="PomodoroSounds['Sound 10']">{{ t('sound.message') }} 10</option>
14+
<option :value="PomodoroSounds['Sound 11']">{{ t('sound.message') }} 11</option>
15+
<option :value="PomodoroSounds['Sound 12']">{{ t('sound.message') }} 12</option>
16+
<option :value="PomodoroSounds['Sound 13']">{{ t('sound.message') }} 13</option>
1717
</select>
1818
<img src="../assets/icons/start.svg" height="22" @click="playAudio" class="play" />
19-
<span class="preview">Click to preview</span>
19+
<span class="preview">{{ t('clickToPreview.message') }}</span>
2020
</template>
2121

2222
<script lang="ts">

0 commit comments

Comments
 (0)