feat: translated document title

This commit is contained in:
tiddlygit-test 2021-05-05 00:13:01 +08:00
parent 9297ca5cc6
commit 24d4fd10c0
13 changed files with 83 additions and 29 deletions

View file

@ -1,6 +1,8 @@
import React from 'react';
import styled from 'styled-components';
import { Trans, useTranslation } from 'react-i18next';
import { Helmet } from 'react-helmet';
import { Button, DialogContent as DialogContentRaw } from '@material-ui/core';
import { usePromiseValue } from '@/helpers/useServiceValue';
@ -79,6 +81,9 @@ export default function About(): JSX.Element {
return (
<DialogContent>
<Helmet>
<title>{t('ContextMenu.About')}</title>
</Helmet>
<Icon src={`file:///${iconPath ?? ''}`} alt="TiddlyGit" />
<Title>TiddlyGit ({platform ?? 'Unknown Platform'})</Title>
<TiddlyGitVersion>{`Version v${appVersion ?? ' - '}.`}</TiddlyGitVersion>