Skip to content

Commit

Permalink
perf: update i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeEirc committed Aug 8, 2024
1 parent 961b51a commit 243ce5b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ui/src/components/GuacamoleConnect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,8 @@ export default {
{ label: this.getMinuteLabel(60), value: 60 }
],
actionsPermOptions: [
{ label: this.$t('Writable'), value: 'writable' },
{ label: this.$t('ReadOnly'), value: 'readonly' }
{ label: i18n.t('Writable'), value: 'writable' },
{ label: i18n.t('ReadOnly'), value: 'readonly' }
],
userOptions: [],
userLoading: false,
Expand Down Expand Up @@ -392,9 +392,9 @@ export default {
return `${BASE_URL}/lion/share/${this.shareId}/`
},
getMinuteLabel(item) {
let minuteLabel = this.$t('Minute')
let minuteLabel = i18n.t('Minute')
if (item > 1) {
minuteLabel = this.$t('Minutes')
minuteLabel = i18n.t('Minutes')
}
return `${item} ${minuteLabel}`
},
Expand Down

0 comments on commit 243ce5b

Please sign in to comment.