Skip to content

Commit

Permalink
fix: add i18n to autoplay option
Browse files Browse the repository at this point in the history
  • Loading branch information
Bnyro committed Jan 9, 2025
1 parent c2b0059 commit e863b0f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/WatchVideo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,9 @@
<br />
<label for="chkAutoPlay"><strong v-text="`${$t('actions.auto_play_next_video')}:`" /></label>
<select id="chkAutoPlay" v-model="selectedAutoPlay" class="select ml-1.5" @change="onChange($event)">
<option value="0">none</option>
<option value="1">playlist only</option>
<option value="2">playlist and recommendations</option>
<option v-t="'actions.never'" value="0" />
<option v-t="'actions.playlists_only'" value="1" />
<option v-t="'actions.always'" value="2" />
</select>

<hr />
Expand Down
5 changes: 4 additions & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,10 @@
"file_format": "File format",
"override": "Override",
"import": "Import",
"export": "Export"
"export": "Export",
"never": "Never",
"playlists_only": "Playlists only",
"always": "Always"
},
"comment": {
"pinned_by": "Pinned by {author}",
Expand Down

0 comments on commit e863b0f

Please sign in to comment.