Skip to content

Commit

Permalink
fix: i18n page title
Browse files Browse the repository at this point in the history
  • Loading branch information
fsdiogo committed Sep 13, 2018
1 parent 932084a commit 63f581e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions add-on/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,10 @@
"message": "Deny",
"description": "Button text for denying a permission (page_proxyAccessDialog_allowButton_text)"
},
"page_landingWelcome_title": {
"message": "IPFS Companion - Welcome",
"description": "Page title (page_landingWelcome_title)"
},
"page_landingWelcome_logo_title": {
"message": "IPFS Companion",
"description": "Extension name after the IPFS logo (page_landingWelcome_logo_title)"
Expand Down
3 changes: 3 additions & 0 deletions add-on/src/landing-pages/welcome/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ function createWelcomePage (i18n) {
const isIpfsOnline = state.isIpfsOnline
const peerCount = state.peerCount

// Set translated title
document.title = i18n.getMessage('page_landingWelcome_title')

return html`
<div class="flex flex-column flex-row-l">
<div id="hero" class="w-100 min-vh-100 flex flex-column justify-center items-center bg-navy white">
Expand Down

0 comments on commit 63f581e

Please sign in to comment.