feat: refactor message handling to use MessageName constants for improved internationalisation support

This commit is contained in:
siujamo
2026-03-24 12:23:13 +08:00
parent 776ddd28c1
commit 08c18fea90
33 changed files with 391 additions and 152 deletions
@@ -21,8 +21,56 @@
#
asset.not-empty = File cannot be empty.
asset.invalid-prefix = Prefix must not be empty and must not start with '/' or '..'.
asset.delete-forbidden = You are not able to delete an asset that is not uploaded by you.
asset.upload-failed = Failed to upload file: {0}
authority.deleted = Authority [{0}] deleted.
authority.code-used = Authority code [{0}] is already in use.
authority.not-found = Authority with ID [{0}] not found.
auth.login.captcha-not-found = Captcha not found.
auth.login.captcha-incorrect = Captcha is incorrect.
auth.login.failed = Cannot perform login due to server error.
auth.provider.failed = Authentication failed, please try again later.
auth.provider.bad-credentials = Username or password is incorrect.
auth.provider.password-not-configured = Password is not configured. Please sign in with a third-party account.
captcha.generate-failed = Unable to generate captcha image.
role.not-exists = Role does not exist in database.
role.not-found = Role with ID {0} not found.
role.deleted = Role [{0}] deleted.
user.password-reset-success = Password has been reset.
user.deleted = User [{0}] deleted.
user.deleted = User [{0}] deleted.
user.not-found = User with ID [{0}] not found.
security.context-user-not-found = Cannot retrieve user information from security context.
tree.multiple-roots = Multiple root items found in given values.
request.add-user.username.not-empty = Username cannot be empty.
request.add-user.password.not-empty = Password cannot be empty.
request.add-user.full-name.not-empty = Full name cannot be empty.
request.authority.code.not-editable = Code cannot be edited.
request.authority.code.not-null = Code cannot be null.
request.authority.name.not-null = Name of the authority cannot be null.
request.department.name.not-null = Name of the department should not be null.
request.edit-role.id.not-null = Role ID cannot be null.
request.edit-role.status.invalid = Status can only be ACTIVE or INACTIVE.
request.edit-user.id.not-null = User ID cannot be null.
request.edit-user.id.positive = User ID must be positive.
request.reset-password.password.not-empty = Password cannot be empty.
request.role.name.not-empty = Name of the role cannot be empty.
request.role.code.not-empty = Code of the role cannot be empty.
request.role.sort.not-null = Sort number cannot be null.
request.query-role.status.invalid = Status can only be ACTIVE or INACTIVE.
request.query-user.status.invalid = Status can only be ACTIVE, INACTIVE, or LOCKED.