Skip to content

Commit

Permalink
feat: normalise title w. polkadot
Browse files Browse the repository at this point in the history
  • Loading branch information
rossbulat committed Jan 2, 2025
1 parent 92fe1e3 commit e163a0f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
3 changes: 0 additions & 3 deletions packages/app/src/library/PageWithTitle/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,18 @@
// SPDX-License-Identifier: GPL-3.0-only

import type { PageItem } from 'common-types'
import { useNetwork } from 'contexts/Network'
import { Helmet } from 'react-helmet'
import { useTranslation } from 'react-i18next'
import { Page } from 'ui-structure'

export const PageWithTitle = ({ page }: { page: PageItem }) => {
const { t } = useTranslation()
const { network } = useNetwork()
const { Entry, key } = page

return (
<Page>
<Helmet>
<title>{`${t('title', {
context: `${network}`,
ns: 'base',
})} : ${t(key, { ns: 'base' })}`}</title>
</Helmet>
Expand Down
4 changes: 1 addition & 3 deletions packages/locales/src/resources/cn/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@
"minute": "分钟",
"second": ""
},
"title_kusama": "Kusama抵押平台",
"title_polkadot": "Polkadot抵押平台",
"title_westend": "Westend抵押平台",
"title": "Polkadot抵押平台",
"validators": "验证人"
}
}
4 changes: 1 addition & 3 deletions packages/locales/src/resources/en/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@
"second_one": "second",
"second_other": "seconds"
},
"title_kusama": "Kusama Staking Dashboard",
"title_polkadot": "Polkadot Staking Dashboard",
"title_westend": "Westend Staking Dashboard",
"title": "Polkadot Staking Dashboard",
"validators": "Validators"
}
}

0 comments on commit e163a0f

Please sign in to comment.