Skip to content

Commit 1f8778b

Browse files
committed
Fix $t calls (this.$i18n.t -> this.$t)
1 parent 1bd466c commit 1f8778b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/LicenseHTML.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ export default {
2222
htmlLicenseParagraph() {
2323
const isFull = this.attributionType === 'full'
2424
const { work, creator, license, paragraph } = generateHTML(this.attributionDetails, this.shortName, isFull)
25-
const licenseCodeSpan = this.$i18n.t('license-use.richtext.full-text', {
26-
workTitle: work || this.$i18n.t('license-use.richtext.workTitle'),
25+
const licenseCodeSpan = this.$t('license-use.richtext.full-text', {
26+
workTitle: work || this.$t('license-use.richtext.workTitle'),
2727
creator,
2828
license,
29-
by: creator ? this.$i18n.t('license-use.richtext.by') : '',
30-
'licensed-text': this.$i18n.t('license-use.richtext.licensed-text')
29+
by: creator ? this.$t('license-use.richtext.by') : '',
30+
'licensed-text': this.$t('license-use.richtext.licensed-text')
3131
})
3232
return `${paragraph}${licenseCodeSpan}</p>`
3333
}

0 commit comments

Comments
 (0)