Migrate more strings to translation keys (#11651)

This commit is contained in:
Michael Telatynski 2023-09-22 16:39:40 +01:00 committed by GitHub
parent 560449676b
commit f4d056fd38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
127 changed files with 8916 additions and 8272 deletions

View file

@ -67,7 +67,7 @@ const onLearnMorePreviouslyOptedIn = (): void => {
}
// otherwise, the user closed the dialog without making a choice, leave the toast open
},
primaryButton: _t("That's fine"),
primaryButton: _t("analytics|accept_button"),
cancelButton: _t("action|stop"),
});
};
@ -87,7 +87,7 @@ export const showToast = (): void => {
// them to opt in again.
props = {
description: _t("analytics|consent_migration"),
acceptLabel: _t("That's fine"),
acceptLabel: _t("analytics|accept_button"),
onAccept,
rejectLabel: _t("action|learn_more"),
onReject: onLearnMorePreviouslyOptedIn,

View file

@ -31,7 +31,7 @@ export const showToast = (
): void => {
const errorText = messageForResourceLimitError(limitType, adminContact, {
"monthly_active_user": _td("Your homeserver has exceeded its user limit."),
"hs_blocked": _td("This homeserver has been blocked by its administrator."),
"hs_blocked": _td("error|hs_blocked"),
"": _td("Your homeserver has exceeded one of its resource limits."),
});
const contactText = messageForResourceLimitError(limitType, adminContact, {