Skip to content

Commit e863b0f

Browse files
committed
fix: add i18n to autoplay option
1 parent c2b0059 commit e863b0f

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/components/WatchVideo.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,9 @@
213213
<br />
214214
<label for="chkAutoPlay"><strong v-text="`${$t('actions.auto_play_next_video')}:`" /></label>
215215
<select id="chkAutoPlay" v-model="selectedAutoPlay" class="select ml-1.5" @change="onChange($event)">
216-
<option value="0">none</option>
217-
<option value="1">playlist only</option>
218-
<option value="2">playlist and recommendations</option>
216+
<option v-t="'actions.never'" value="0" />
217+
<option v-t="'actions.playlists_only'" value="1" />
218+
<option v-t="'actions.always'" value="2" />
219219
</select>
220220

221221
<hr />

src/locales/en.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,10 @@
169169
"file_format": "File format",
170170
"override": "Override",
171171
"import": "Import",
172-
"export": "Export"
172+
"export": "Export",
173+
"never": "Never",
174+
"playlists_only": "Playlists only",
175+
"always": "Always"
173176
},
174177
"comment": {
175178
"pinned_by": "Pinned by {author}",

0 commit comments

Comments
 (0)