Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup a few vue-i18n usages #5663

Merged
merged 1 commit into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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