New locale format (#94)

* Add new format for translation files
Co-authored-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
mrdrogdrog 2020-05-31 08:53:22 +02:00 committed by GitHub
parent afb2ea85b1
commit 1f347fb653
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
57 changed files with 5287 additions and 3386 deletions

View file

@ -6,7 +6,7 @@ import { FeatureLinks } from './feature-links'
import { CoverButtons } from './cover-buttons/cover-buttons'
const Intro: React.FC = () => {
useTranslation()
const { t } = useTranslation()
return (
<div>
@ -14,12 +14,12 @@ const Intro: React.FC = () => {
<FontAwesomeIcon icon="file-alt"/> CodiMD
</h1>
<p className="lead mb-5">
<Trans i18nKey="coverSlogan"/>
<Trans i18nKey="app.slogan"/>
</p>
<CoverButtons/>
<img alt="CodiMD Screenshot" src={screenshot} className="img-fluid mb-5"/>
<img alt={t("landing.intro.screenShotAltText")} src={screenshot} className="img-fluid mb-5"/>
<FeatureLinks/>
</div>
)