Skip to content

Commit d9b4d13

Browse files
authored
Cleanup a few vue-i18n usages (#5663)
1 parent afa4fc0 commit d9b4d13

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/renderer/helpers/player/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export function translateSponsorBlockCategory(category) {
104104
case 'outro':
105105
return i18n.t('Video.Sponsor Block category.outro')
106106
case 'recap':
107-
return this.$t('Video.Sponsor Block category.recap')
107+
return i18n.t('Video.Sponsor Block category.recap')
108108
case 'selfpromo':
109109
return i18n.t('Video.Sponsor Block category.self-promotion')
110110
case 'interaction':

src/renderer/views/Channel/Channel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ export default defineComponent({
328328

329329
if (this.id === '@@@') {
330330
this.showShareMenu = false
331-
this.setErrorMessage(this.$i18n.t('Channel.This channel does not exist'))
331+
this.setErrorMessage(this.$t('Channel.This channel does not exist'))
332332
return
333333
}
334334

@@ -427,7 +427,7 @@ export default defineComponent({
427427

428428
if (this.id === '@@@') {
429429
this.showShareMenu = false
430-
this.setErrorMessage(this.$i18n.t('Channel.This channel does not exist'))
430+
this.setErrorMessage(this.$t('Channel.This channel does not exist'))
431431
return
432432
}
433433

src/renderer/views/Watch/Watch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1497,7 +1497,7 @@ export default defineComponent({
14971497
let translationName, translationCode
14981498
// otherwise just fallback to the FreeTube display language and hope that YouTube will be able to handle it
14991499
if (!translationLanguage) {
1500-
translationName = this.$i18n.t('Locale Name')
1500+
translationName = this.$t('Locale Name')
15011501
translationCode = userLanguages.values().next()
15021502
} else {
15031503
translationName = translationLanguage.language_name.text

0 commit comments

Comments
 (0)