fix: cleaned up unused localised strings

since we swapped some toast messages for input messages
pull/3083/head
William Grant 12 months ago
parent 76f5ad1322
commit 551ee4221b

@ -242,7 +242,6 @@
"invalidOldPassword": "Old password is invalid", "invalidOldPassword": "Old password is invalid",
"invalidOpenGroupUrl": "Invalid URL", "invalidOpenGroupUrl": "Invalid URL",
"invalidPassword": "Invalid password", "invalidPassword": "Invalid password",
"invalidPubkeyFormat": "Invalid Pubkey Format",
"inviteContacts": "Invite Contacts", "inviteContacts": "Invite Contacts",
"join": "Join", "join": "Join",
"joinACommunity": "Join a community", "joinACommunity": "Join a community",

@ -128,7 +128,7 @@ export class PubKey {
* Returns a localized string of the error, or undefined if the given pubkey is valid. * Returns a localized string of the error, or undefined if the given pubkey is valid.
* *
* Note: this should be used when starting a conversation and we do not support starting conversation from scratch with a blinded sessionId. * Note: this should be used when starting a conversation and we do not support starting conversation from scratch with a blinded sessionId.
* So if the given pubkey has a blinded prefix, this call will fail with a localized `invalidPubkeyFormat` error * So if the given pubkey has a blinded prefix, this call will fail with a localized `accountIdErrorInvalid` error
*/ */
public static validateWithErrorNoBlinding(pubkey: string): string | undefined { public static validateWithErrorNoBlinding(pubkey: string): string | undefined {
// Check if it's hex // Check if it's hex

@ -234,7 +234,7 @@ export function pushUserRemovedFromModerators() {
} }
export function pushInvalidPubKey() { export function pushInvalidPubKey() {
pushToastSuccess('invalidPubKey', window.i18n('invalidPubkeyFormat')); pushToastSuccess('invalidPubKey', window.i18n('accountIdErrorInvalid'));
} }
export function pushNoCameraFound() { export function pushNoCameraFound() {

@ -242,7 +242,6 @@ export type LocalizerKeys =
| 'invalidOldPassword' | 'invalidOldPassword'
| 'invalidOpenGroupUrl' | 'invalidOpenGroupUrl'
| 'invalidPassword' | 'invalidPassword'
| 'invalidPubkeyFormat'
| 'inviteContacts' | 'inviteContacts'
| 'join' | 'join'
| 'joinACommunity' | 'joinACommunity'

Loading…
Cancel
Save