From 160048ced2cb1118d5d27123f4a5e86d608c23cd Mon Sep 17 00:00:00 2001 From: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com> Date: Tue, 16 Apr 2024 09:44:25 -0400 Subject: [PATCH] Add translations --- lemmy-translations | 2 +- .../components/common/adult-consent-modal.tsx | 14 +++++++++----- src/shared/components/home/site-form.tsx | 7 ++++--- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/lemmy-translations b/lemmy-translations index 4a2a30f4..d250d15f 160000 --- a/lemmy-translations +++ b/lemmy-translations @@ -1 +1 @@ -Subproject commit 4a2a30f4a3778df85e28ceaf541b6c978b321e2a +Subproject commit d250d15f4fbf3e1b9565529f7d0cea90c8270757 diff --git a/src/shared/components/common/adult-consent-modal.tsx b/src/shared/components/common/adult-consent-modal.tsx index 2f80b329..30df0483 100644 --- a/src/shared/components/common/adult-consent-modal.tsx +++ b/src/shared/components/common/adult-consent-modal.tsx @@ -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 { >
-

Content Warning

+

+ {I18NextService.i18n.t("content_warning")} +

{redirectCountdown === Infinity ? (
{ /> ) : (
- Alright 👍. Sending you back in {redirectCountdown}. + {I18NextService.i18n.t("sending_back_message", { + seconds: redirectCountdown, + })}
)}
@@ -60,10 +64,10 @@ class AdultConsentModalInner extends Component { onClick={onContinue} ref={this.continueButtonRef} > - Continue + {I18NextService.i18n.t("continue")}
diff --git a/src/shared/components/home/site-form.tsx b/src/shared/components/home/site-form.tsx index 8186ed3f..43036559 100644 --- a/src/shared/components/home/site-form.tsx +++ b/src/shared/components/home/site-form.tsx @@ -276,10 +276,11 @@ export class SiteForm extends Component {
- 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")}
- +