Skip to content

Commit

Permalink
Update top nav title to be 'Go to {page}' for improved clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
kommunarr committed Oct 21, 2023
1 parent fc00bc9 commit ed1ae8a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/renderer/components/top-nav/top-nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,13 @@ export default defineComponent({
},

headerLogoTitle: function () {
return this.$t(this.$router.getRoutes()
.find((route) => route.path === '/' + this.landingPage)
.meta.title)
return this.$t('Go to page',
{
page: this.$t(this.$router.getRoutes()
.find((route) => route.path === '/' + this.landingPage)
.meta.title
)
})
},

enableSearchSuggestions: function () {
Expand Down
1 change: 1 addition & 0 deletions static/locales/en-US.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Close: Close
Back: Back
Forward: Forward
Open New Window: Open New Window
Go to page: Go to {page}

Version {versionNumber} is now available! Click for more details: Version {versionNumber} is now available! Click
for more details
Expand Down

0 comments on commit ed1ae8a

Please sign in to comment.