Skip to content

Commit

Permalink
Merge pull request #2464 from nordic-institute/XRDDEV-2728-extract-sh…
Browse files Browse the repository at this point in the history
…ared

refactor: Extract common messages to shared UI module
  • Loading branch information
ovidijusnortal authored Dec 5, 2024
2 parents 0135cbe + e9363de commit d65a54f
Show file tree
Hide file tree
Showing 6 changed files with 222 additions and 439 deletions.
207 changes: 0 additions & 207 deletions src/central-server/admin-service/ui/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,128 +6,14 @@
"topTitle": "Forbidden"
},
"action": {
"activate": "Activate",
"addClient": "Add client",
"addMember": "Add member",
"addSubsystem": "Add subsystem",
"approve": "Approve",
"close": "Close",
"confirm": "Confirm",
"continue": "Continue",
"copy": "Copy",
"copyId": "Copy ID",
"deactivate": "Disable",
"decline": "Decline",
"done": "Done",
"edit": "Edit",
"emptySearch": "Your search for {msg} found no results.",
"export": "Export",
"finish": "Finish",
"goToFront": "Go to the front page",
"next": "Next",
"no": "No",
"noData": "No data",
"ok": "Ok",
"previous": "Previous",
"refresh": "Refresh",
"register": "Register",
"remove": "Remove",
"removeAll": "Remove All",
"save": "Save",
"search": "Search",
"searching": "Searching...",
"submit": "Submit",
"unregister": "Unregister",
"select": "Select",
"generateCsr": "Generate CSR"
},
"alert": {
"count": "Amount of same errors:",
"id": "ID"
},
"apiKey": {
"createApiKey": {
"button": "CREATE API KEY",
"step": {
"keyDetails": {
"apiKey": "API key",
"apiKeyID": "API key ID",
"assignedRoles": "Roles assigned",
"createKeyButton": "Create Key",
"name": "Key Details",
"note": "NOTE: save the API key in a secure place. The API key is visible only at the time of key generation. It will not be presented again and cannot be retrieved later."
},
"roles": {
"description": "Please select the roles associated with the API key. The roles define the permissions granted to the API key.",
"name": "Roles",
"selectRoles": "Select roles"
}
},
"success": "API key successfully created",
"title": "Create API key"
},
"role": {
"XROAD_REGISTRATION_OFFICER": "Registration Officer",
"XROAD_SECURITY_OFFICER": "Security Officer",
"XROAD_SYSTEM_ADMINISTRATOR": "System Administrator",
"XROAD_MANAGEMENT_SERVICE": "Management Services"
},
"edit": {
"roleRemoveOnly": "(remove only)"
},
"table": {
"action": {
"edit": {
"button": "Edit",
"dialog": {
"message": "Roles associated with the API key:",
"title": "Edit API Key (ID: {id})"
},
"success": "API key with ID {id} saved"
},
"revoke": {
"button": "Revoke key",
"confirmationDialog": {
"message": "Are you sure you want to revoke the API key with ID {id}?",
"title": "Are you sure?"
},
"success": "API key with ID {id} successfully revoked"
}
},
"header": {
"id": "ID",
"roles": "Roles"
}
}
},
"backup": {
"createBackup": {
"button": "Back up config.",
"messages": {
"success": "Backup {file} successfully created"
}
},
"uploadBackup": {
"button": "Upload backup",
"confirmationDialog": {
"confirmation": "File {name} already exists, are you sure you want to overwrite it?",
"title": "File already exists"
},
"success": "Backup {file} uploaded successfully"
},
"deleteBackup": {
"dialog": {
"confirmation": "Are you sure you want to delete backup {file}?",
"title": "Are you sure?"
},
"success": "Backup {file} deleted"
},
"restoreFromBackup": {
"dialog": {
"confirmation": "Are you sure you want to restore from {file}?",
"title": "Are you sure?"
},
"success": "Configuration restored from {file}"
}
},
"customValidation": {
Expand Down Expand Up @@ -205,7 +91,6 @@
"token_fetch_failed": "Error getting tokens",
"token_incorrect_pin_format": "Incorrect PIN format",
"token_invalid_characters": "The provided pin code contains invalid characters",
"token_not_found": "Token not found",
"token_pin_final_try": "Tries left: 1",
"token_pin_locked": "Token PIN locked",
"token_weak_pin": "The provided pin code was too weak",
Expand All @@ -218,29 +103,18 @@
"security_server_not_found": "Security server not found",
"invalid_encoded_id": "Invalid encoded id",
"id_not_a_number": "Id is not a number",
"api_key_not_found": "Api key not found",
"invalid_role": "Invalid role",
"invalid_file_content_type": "Invalid content type of uploaded file",
"invalid_file_extension": "Invalid file extension",
"double_file_extension": "Double file extension is not allowed",
"invalid_filename": "Invalid filename",
"invalid_backup_file": "Invalid backup file",
"backup_file_not_found": "Backup was not found",
"backup_generation_failed": "Failed to generate backup",
"generate_backup_interrupted": "Backup generation has been interrupted",
"restore_process_failed": "Restore process failed",
"backup_restore_interrupted": "Backup restoration has been interrupted",
"backup_deletion_failed": "Failed to delete backup",
"resource_read_failed": "Failed to read resource",
"conf_verification.anchor_not_for_external_source": "Configuration verification failed: anchor_not_for_external_source",
"conf_verification.missing_private_params": "Configuration verification failed: missing_private_params",
"conf_verification.other": "Configuration verification failed: other",
"conf_verification.outdated": "Configuration verification failed: outdated",
"conf_verification.signature_invalid": "Configuration verification failed: signature_invalid",
"conf_verification.unreachable": "Configuration verification failed: unreachable",
"cannot_add_member_to_owners_group": "Cannot add members to server owner group",
"validation_failure": "Validation failure",
"invalid_distinguished_name": "Invalid distinguished name",
"generate_key_cert_interrupted": "Key and certificate generation has been interrupted",
"key_and_cert_generation_failed": "Failed to generate TLS key and certificate",
"csr_generation_failed": "CSR generation failed",
Expand All @@ -264,18 +138,15 @@
"centralServerAddress": "Central Server Address",
"instanceIdentifier": "Instance Identifier"
},
"password": "Password",
"username": "Username",
"url": "URL",
"tokenPin": "Token PIN",
"keyLabel": "Key friendly name",
"subsystemCode": "Subsystem Code",
"memberCode": "Member Code",
"memberName": "Member Name",
"memberClass": "Member Class",
"securityServerAddress": "Security server address",
"serverCode": "Server code",
"securityServerCode": "Security server code",
"serviceAddress": "Central Server address",
"certProfile": "Certificate Profile Info",
"certFile": "Certificate File",
Expand Down Expand Up @@ -311,18 +182,6 @@
"byStatus": "By status"
}
},
"footer": {
"copyright": {
"company": "Nordic Institute for Interoperability Solutions (NIIS)",
"licenceInfo": "Licence info",
"title": "Copyright"
},
"software": {
"feedback": "Feedback",
"title": "Software",
"versionPrefix": "X-Road"
}
},
"global": {
"appTitle": "X-Road Central Server",
"pageNotFound": "oops, page not found",
Expand All @@ -336,7 +195,6 @@
"memberClass": "Member class",
"memberCode": "Member code",
"memberName": "Member name",
"name": "Name",
"navigation": {
"back": "Back"
},
Expand Down Expand Up @@ -503,35 +361,6 @@
}
}
},
"cert": {
"certificate": "Certificate",
"hashInfo": "Hash (SHA-256)",
"rsaExp": "RSA Public Key Exponent",
"rsaModulus": "RSA Public Key Modulus",
"ecParameters": "EC Public Key Parameters",
"ecPoint": "EC Public Key Point",
"keyUsage": {
"CRL_SIGN": "CRL Sign",
"DATA_ENCIPHERMENT": "Data Encipherment",
"DECIPHER_ONLY": "Decipher Only",
"DIGITAL_SIGNATURE": "Digital Signature",
"ENCIPHER_ONLY": "Encipher Only",
"KEY_AGREEMENT": "Key Agreement",
"KEY_CERT_SIGN": "Certificate Sign",
"KEY_ENCIPHERMENT": "Key Encipherment",
"NON_REPUDIATION": "Non Repudiation"
}
},
"login": {
"errorMsg401": "Wrong username or password",
"generalError": "Login failed. Please try again.",
"logIn": "Log in",
"logOut": "Log out"
},
"logout": {
"idleWarning": "You have been idle for 30 minutes and your session has expired. For security reasons, you will be logged out.",
"sessionExpired": "Session expired"
},
"managementRequests": {
"addCertificate": "Add Certificate",
"addClient": "Add Client",
Expand Down Expand Up @@ -638,15 +467,7 @@
"memberSuccessfullyAdded": "Member {memberName} is added to the system configuration."
},
"noData": {
"loading": "Loading... Please wait",
"noBackups": "No backups yet",
"noCertificate": "No certificate",
"noCertificates": "No certificates",
"noData": "No data",
"noMatches": "No items matching criteria",
"noMemberClasses": "No member classes",
"noServices": "No services",
"noTokens": "No tokens",
"noSecurityServers": "No security servers"
},
"securityServers": {
Expand Down Expand Up @@ -912,36 +733,8 @@
}
},
"validationError": {
"AssertFalse": "value should be 'false'",
"AssertTrue": "value should be 'true'",
"DecimalMax": "numeric value exceeds the maximum allowed",
"DecimalMin": "numeric value is under the miminum allowed",
"Digits": "value should contain only digits",
"Email": "value does not meet the email format",
"Future": "datetime value should be in the future",
"FutureOrPresent": "datetime value should be now or in the future",
"IdentifierChars": "Instance identifier should not contain colon (:), semicolon (;), forward or backward slashes (/\\) or percent signs (%)",
"IdentifierCharsField": "Use valid identifier characters only",
"Max": "numeric value exceeds the maximum allowed",
"Min": "numeric value is under the minimum allowed",
"Negative": "numeric value should be less than zero",
"NegativeOrZero": "numeric value should be less or equal to zero",
"NoBackslashes": "value should not contain backslash (\\) symbols",
"NoColons": "value should not contain colon (:) symbols",
"NoForwardslashes": "value should not contain forward slash (/) symbols",
"NoPercents": "value should not contain percentage (%) symbols",
"NoSemicolons": "value should not contain semicolon (;) symbols",
"Normalized": "value should be normalized",
"NotBlank": "value should not be blank",
"NotEmpty": "value should not be empty",
"NotNull": "value is required",
"Null": "value should not be set",
"Past": "datetime value should be in the past",
"PastOrPresent": "datetime value should be now or in the past",
"Pattern": "value did not match the required format",
"Positive": "numeric value should be greater that zero",
"PositiveOrZero": "numeric value should be greater or equal to zero",
"Size": "value does not meet length requirements",
"SizeField": "value does not meet length requirements"
},

Expand Down
Loading

0 comments on commit d65a54f

Please sign in to comment.