Migrate more strings to translation keys (#11574)
This commit is contained in:
committed by
GitHub
parent
3201ae3534
commit
36a7a96e0e
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user