messages.json fixup

pull/1091/head
Vincent 5 years ago
parent d78a49d689
commit 2fde4d7e80

@ -2521,14 +2521,29 @@
"message": "Remove" "message": "Remove"
}, },
"invalidHexId": { "invalidHexId": {
"message": "Invalid Hex ID", "message": "Invalid Session ID or LNS Name",
"description": "description":
"Error string shown when user type an invalid pubkey hex string" "Error string shown when user types an invalid pubkey hex string"
},
"invalidLnsFormat": {
"message": "Invalid LNS Name",
"description": "Error string shown when user types an invalid LNS name"
}, },
"invalidPubkeyFormat": { "invalidPubkeyFormat": {
"message": "Invalid Pubkey Format", "message": "Invalid Pubkey Format",
"description": "Error string shown when user types an invalid pubkey format" "description": "Error string shown when user types an invalid pubkey format"
}, },
"lnsMappingNotFound": {
"message": "There is no LNS mapping associated with this name",
"description": "Shown in toast if user enters an unknown LNS name"
},
"lnsLookupTimeout": {
"message": "LNS lookup timed out",
"description": "Shown in toast if user enters an unknown LNS name"
},
"lnsTooFewNodes": {
"message": "Not enough nodes currently active for LNS lookup"
},
"conversationsTab": { "conversationsTab": {
"message": "Conversations", "message": "Conversations",
"description": "conversation tab title" "description": "conversation tab title"
@ -2711,7 +2726,7 @@
"message": "Enter Session ID" "message": "Enter Session ID"
}, },
"pasteSessionIDRecipient": { "pasteSessionIDRecipient": {
"message": "Enter a Session ID" "message": "Enter a Session ID or LNS name"
}, },
"usersCanShareTheir...": { "usersCanShareTheir...": {
"message": "message":

@ -92,8 +92,9 @@ window.CONSTANTS = new function() {
this.LNS_MAX_LENGTH = 64; this.LNS_MAX_LENGTH = 64;
// Conforms to naming rules here // Conforms to naming rules here
// https://loki.network/2020/03/25/loki-name-system-the-facts/ // https://loki.network/2020/03/25/loki-name-system-the-facts/
this.LNS_REGEX = `^[a-zA-Z0-9_]([a-zA-Z0-9_-]{0,${this.LNS_MAX_LENGTH - 2}}[a-zA-Z0-9_]){0,1}$`; this.LNS_REGEX = `^[a-zA-Z0-9_]([a-zA-Z0-9_-]{0,${this.LNS_MAX_LENGTH -
}; 2}}[a-zA-Z0-9_]){0,1}$`;
}();
window.versionInfo = { window.versionInfo = {
environment: window.getEnvironment(), environment: window.getEnvironment(),

Loading…
Cancel
Save