Migrate more strings to translation keys (#11574)

This commit is contained in:
Michael Telatynski
2023-09-07 10:37:09 +01:00
committed by GitHub
parent 3201ae3534
commit 36a7a96e0e
72 changed files with 6593 additions and 6152 deletions

View File

@@ -86,9 +86,7 @@ export const showToast = (): void => {
// The user previously opted into our old analytics system - let them know things have changed and ask
// them to opt in again.
props = {
description: _t(
"You previously consented to share anonymous usage data with us. We're updating how that works.",
),
description: _t("analytics|consent_migration"),
acceptLabel: _t("That's fine"),
onAccept,
rejectLabel: _t("action|learn_more"),
@@ -103,11 +101,7 @@ export const showToast = (): void => {
</AccessibleButton>
);
props = {
description: _t(
"Share anonymous data to help us identify issues. Nothing personal. No third parties. <LearnMoreLink>Learn More</LearnMoreLink>",
{},
{ LearnMoreLink: learnMoreLink },
),
description: _t("analytics|learn_more", {}, { LearnMoreLink: learnMoreLink }),
acceptLabel: _t("action|yes"),
onAccept,
rejectLabel: _t("action|no"),
@@ -122,7 +116,7 @@ export const showToast = (): void => {
const analyticsOwner = SdkConfig.get("analytics_owner") ?? SdkConfig.get().brand;
ToastStore.sharedInstance().addOrReplaceToast({
key: TOAST_KEY,
title: _t("Help improve %(analyticsOwner)s", { analyticsOwner }),
title: _t("analytics|enable_prompt", { analyticsOwner }),
props,
component: GenericToast,
className: "mx_AnalyticsToast",