A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix: install translation error
shuaid78df49928eb
diff --git a/ui/src/i18n/locales/en.json b/ui/src/i18n/locales/en.jsonindex 76c30c3a..29f7ff91 100644--- a/ui/src/i18n/locales/en.json+++ b/ui/src/i18n/locales/en.json@@ -824,8 +824,9 @@"ready_title": "Your Answer is Ready!","ready_description": "If you ever feel like changing more settings, visit <1>admin section</1>; find it in the site menu.","good_luck": "Have fun, and good luck!",- "warning": "Warning",- "warning_description": "The file <1>config.yaml</1> already exists. If you need to reset any of the configuration items in this file, please delete it first. You may try <2>installing now</2>.",+ "warn_title": "Warning",+ "warn_description": "The file <1>config.yaml</1> already exists. If you need to reset any of the configuration items in this file, please delete it first.",+ "install_now": "You may try <1>installing now</1>.","installed": "Already installed","installed_description": "You appear to have already installed. To reinstall please clear your old database tables first."},diff --git a/ui/src/pages/Install/index.tsx b/ui/src/pages/Install/index.tsxindex c0737654..b15ed145 100644--- a/ui/src/pages/Install/index.tsx+++ b/ui/src/pages/Install/index.tsx@@ -1,3 +1,4 @@+/* eslint-disable prettier/prettier */import { FC, useState, useEffect } from 'react';import { Container, Row, Col, Card, Alert } from 'react-bootstrap';import { useTranslation, Trans } from 'react-i18next';@@ -265,16 +266,12 @@ const Index: FC = () => {<Fifth visible={step === 5} siteUrl={formData.site_url.value} />{step === 6 && (<div>- <h5>{t('warning')}</h5>+ <h5>{t('warn_title')}</h5><p>- <Trans i18nKey="install.warning_description">- The file <code>config.yaml</code> already exists. If you- need to reset any of the configuration items in this- file, please delete it first. You may try{' '}- <a href="###" onClick={(e) => handleInstallNow(e)}>- installing now- </a>- .+ <Trans i18nKey="install.warn_description" components={{ 1: <code />}} />+ {' '}+ <Trans i18nKey="install.install_now">+ You may try <a href="###" onClick={e => handleInstallNow(e)}>installing now</a>.</Trans></p></div>