Fix instances of double translation and guard translation calls using typescript (#11443)
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
This commit is contained in:
parent
d13b6e1b41
commit
ac70f7ac9b
157 changed files with 554 additions and 780 deletions
|
@ -192,8 +192,7 @@ export const Commands = [
|
|||
const unixTimestamp = Date.parse(args);
|
||||
if (!unixTimestamp) {
|
||||
throw new UserFriendlyError(
|
||||
"We were unable to understand the given date (%(inputDate)s). " +
|
||||
"Try using the format YYYY-MM-DD.",
|
||||
"We were unable to understand the given date (%(inputDate)s). Try using the format YYYY-MM-DD.",
|
||||
{ inputDate: args, cause: undefined },
|
||||
);
|
||||
}
|
||||
|
@ -401,9 +400,7 @@ export const Commands = [
|
|||
description: (
|
||||
<p>
|
||||
{_t(
|
||||
"Use an identity server to invite by email. " +
|
||||
"Click continue to use the default identity server " +
|
||||
"(%(defaultIdentityServerName)s) or manage in Settings.",
|
||||
"Use an identity server to invite by email. Click continue to use the default identity server (%(defaultIdentityServerName)s) or manage in Settings.",
|
||||
{
|
||||
defaultIdentityServerName: abbreviateUrl(defaultIdentityServerUrl),
|
||||
},
|
||||
|
@ -717,9 +714,7 @@ export const Commands = [
|
|||
if (device.getFingerprint() !== fingerprint) {
|
||||
const fprint = device.getFingerprint();
|
||||
throw new UserFriendlyError(
|
||||
"WARNING: KEY VERIFICATION FAILED! The signing key for %(userId)s and session" +
|
||||
' %(deviceId)s is "%(fprint)s" which does not match the provided key ' +
|
||||
'"%(fingerprint)s". This could mean your communications are being intercepted!',
|
||||
'WARNING: KEY VERIFICATION FAILED! The signing key for %(userId)s and session %(deviceId)s is "%(fprint)s" which does not match the provided key "%(fingerprint)s". This could mean your communications are being intercepted!',
|
||||
{
|
||||
fprint,
|
||||
userId,
|
||||
|
@ -739,8 +734,7 @@ export const Commands = [
|
|||
<div>
|
||||
<p>
|
||||
{_t(
|
||||
"The signing key you provided matches the signing key you received " +
|
||||
"from %(userId)s's session %(deviceId)s. Session marked as verified.",
|
||||
"The signing key you provided matches the signing key you received from %(userId)s's session %(deviceId)s. Session marked as verified.",
|
||||
{ userId, deviceId },
|
||||
)}
|
||||
</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue