mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 12:21:13 +00:00
Add translations
This commit is contained in:
parent
1e76395d29
commit
160048ced2
3 changed files with 14 additions and 9 deletions
|
@ -1 +1 @@
|
|||
Subproject commit 4a2a30f4a3778df85e28ceaf541b6c978b321e2a
|
||||
Subproject commit d250d15f4fbf3e1b9565529f7d0cea90c8270757
|
|
@ -4,7 +4,7 @@ import { adultConsentLocalStorageKey } from "../../config";
|
|||
import { setIsoData } from "@utils/app";
|
||||
import { IsoDataOptionalSite } from "../../interfaces";
|
||||
import { mdToHtml } from "../../markdown";
|
||||
import { UserService } from "../../services";
|
||||
import { I18NextService, UserService } from "../../services";
|
||||
|
||||
interface AdultConsentModalProps {
|
||||
contentWarning: string;
|
||||
|
@ -39,7 +39,9 @@ class AdultConsentModalInner extends Component<AdultConsentModalProps, any> {
|
|||
>
|
||||
<div className="modal-content">
|
||||
<header className="modal-header justify-content-center">
|
||||
<h3 className="modal-title">Content Warning</h3>
|
||||
<h3 className="modal-title">
|
||||
{I18NextService.i18n.t("content_warning")}
|
||||
</h3>
|
||||
</header>
|
||||
{redirectCountdown === Infinity ? (
|
||||
<div
|
||||
|
@ -50,7 +52,9 @@ class AdultConsentModalInner extends Component<AdultConsentModalProps, any> {
|
|||
/>
|
||||
) : (
|
||||
<div className="modal-body text-center align-middle text-body">
|
||||
Alright 👍. Sending you back in {redirectCountdown}.
|
||||
{I18NextService.i18n.t("sending_back_message", {
|
||||
seconds: redirectCountdown,
|
||||
})}
|
||||
</div>
|
||||
)}
|
||||
<footer className="modal-footer">
|
||||
|
@ -60,10 +64,10 @@ class AdultConsentModalInner extends Component<AdultConsentModalProps, any> {
|
|||
onClick={onContinue}
|
||||
ref={this.continueButtonRef}
|
||||
>
|
||||
Continue
|
||||
{I18NextService.i18n.t("continue")}
|
||||
</button>
|
||||
<button type="button" className="btn btn-danger" onClick={onBack}>
|
||||
Go back
|
||||
{I18NextService.i18n.t("go_back")}
|
||||
</button>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -276,10 +276,11 @@ export class SiteForm extends Component<SiteFormProps, SiteFormState> {
|
|||
<div className="mb-3 row">
|
||||
<div className="alert small alert-info" role="alert">
|
||||
<Icon icon="info" classes="icon-inline me-2" />
|
||||
Setting a content warning will display a prompt with the content
|
||||
warning asking the user for their consent to continue.
|
||||
{I18NextService.i18n.t("content_warning_setting_blurb")}
|
||||
</div>
|
||||
<label className="col-12 col-form-label">Content Warning</label>
|
||||
<label className="col-12 col-form-label">
|
||||
{I18NextService.i18n.t("content_warning")}
|
||||
</label>
|
||||
<div className="col-12">
|
||||
<MarkdownTextArea
|
||||
initialContent={this.state.siteForm.content_warning}
|
||||
|
|
Loading…
Reference in a new issue