Skip to content

Commit

Permalink
Cleanup a few vue-i18n usages (#5663)
Browse files Browse the repository at this point in the history
  • Loading branch information
absidue committed Sep 9, 2024
1 parent afa4fc0 commit d9b4d13
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/renderer/helpers/player/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export function translateSponsorBlockCategory(category) {
case 'outro':
return i18n.t('Video.Sponsor Block category.outro')
case 'recap':
return this.$t('Video.Sponsor Block category.recap')
return i18n.t('Video.Sponsor Block category.recap')
case 'selfpromo':
return i18n.t('Video.Sponsor Block category.self-promotion')
case 'interaction':
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/views/Channel/Channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ export default defineComponent({

if (this.id === '@@@') {
this.showShareMenu = false
this.setErrorMessage(this.$i18n.t('Channel.This channel does not exist'))
this.setErrorMessage(this.$t('Channel.This channel does not exist'))
return
}

Expand Down Expand Up @@ -427,7 +427,7 @@ export default defineComponent({

if (this.id === '@@@') {
this.showShareMenu = false
this.setErrorMessage(this.$i18n.t('Channel.This channel does not exist'))
this.setErrorMessage(this.$t('Channel.This channel does not exist'))
return
}

Expand Down
2 changes: 1 addition & 1 deletion src/renderer/views/Watch/Watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -1497,7 +1497,7 @@ export default defineComponent({
let translationName, translationCode
// otherwise just fallback to the FreeTube display language and hope that YouTube will be able to handle it
if (!translationLanguage) {
translationName = this.$i18n.t('Locale Name')
translationName = this.$t('Locale Name')
translationCode = userLanguages.values().next()
} else {
translationName = translationLanguage.language_name.text
Expand Down

0 comments on commit d9b4d13

Please sign in to comment.