✨ add internationalization configuration
This commit is contained in:
36
i18n/language/en.toml
Normal file
36
i18n/language/en.toml
Normal file
@@ -0,0 +1,36 @@
|
||||
welcome = "hello"
|
||||
NotFoundUser = "User not found"
|
||||
DeletedSuccess = "deleted successfully!"
|
||||
DeletedFailed = "delete failed!"
|
||||
UpdatedSuccess = "updated successfully!"
|
||||
UpdatedFailed = "update failed!"
|
||||
CreatedSuccess = "created successfully!"
|
||||
CreatedFailed = "create failed!"
|
||||
LoginSuccess = "login successfully!"
|
||||
LoginFailed = "login failed!"
|
||||
LogoutSuccess = "logout successfully!"
|
||||
LogoutFailed = "logout failed!"
|
||||
RegisterSuccess = "register successfully!"
|
||||
RegisterFailed = "register failed!"
|
||||
PhoneNotRegister = "phone number not register!"
|
||||
EmailNotRegister = "email not register!"
|
||||
UsernameNotRegister = "username not register!"
|
||||
PasswordError = "password error!"
|
||||
EmailError = "email error!"
|
||||
PhoneError = "phone error!"
|
||||
UsernameError = "username error!"
|
||||
UsernameExists = "username already exists!"
|
||||
EmailExists = "email already exists!"
|
||||
PhoneExists = "phone number already exists!"
|
||||
PasswordNotSame = "password not same!"
|
||||
PasswordTooShort = "password length must be greater than 6!"
|
||||
PasswordTooLong = "password length must be less than 20!"
|
||||
CaptchaError = "captcha error!"
|
||||
CaptchaExpired = "captcha expired!"
|
||||
CaptchaNotMatch = "captcha not match!"
|
||||
CaptchaSendFailed = "captcha send failed!"
|
||||
CaptchaSendSuccess = "captcha send successfully!"
|
||||
CaptchaTooOften = "captcha too often!"
|
||||
CaptchaTooShort = "captcha length must be greater than 6!"
|
||||
CaptchaTooLong = "captcha length must be less than 20!"
|
||||
CaptchaSendLimit = "captcha send limit!"
|
36
i18n/language/zh.toml
Normal file
36
i18n/language/zh.toml
Normal file
@@ -0,0 +1,36 @@
|
||||
welcome = "欢迎"
|
||||
NotFoundUser = "未找到用户!"
|
||||
DeletedSuccess = "删除成功!"
|
||||
DeletedFailed = "删除失败!"
|
||||
UpdatedSuccess = "更新成功!"
|
||||
UpdatedFailed = "更新失败!"
|
||||
CreatedSuccess = "创建成功!"
|
||||
CreatedFailed = "创建失败!"
|
||||
LoginSuccess = "登录成功!"
|
||||
LoginFailed = "登录失败!"
|
||||
LogoutSuccess = "登出成功!"
|
||||
LogoutFailed = "登出失败!"
|
||||
RegisterSuccess = "注册成功!"
|
||||
RegisterFailed = "注册失败!"
|
||||
PhoneNotRegister = "该手机号未注册!"
|
||||
EmailNotRegister = "该邮箱未注册!"
|
||||
UsernameNotRegister = "该用户名未注册!"
|
||||
PasswordError = "密码错误!"
|
||||
EmailError = "邮箱错误!"
|
||||
PhoneError = "手机号错误!"
|
||||
UsernameError = "用户名错误!"
|
||||
UsernameExists = "用户名已存在!"
|
||||
EmailExists = "邮箱已存在!"
|
||||
PhoneExists = "手机号已存在!"
|
||||
PasswordNotSame = "两次密码输入不一致!"
|
||||
PasswordTooShort = "密码长度不能少于6位!"
|
||||
PasswordTooLong = "密码长度不能多于20位!"
|
||||
CaptchaError = "验证码错误!"
|
||||
CaptchaExpired = "验证码已过期!"
|
||||
CaptchaNotMatch = "验证码不匹配!"
|
||||
CaptchaSendFailed = "验证码发送失败!"
|
||||
CaptchaSendSuccess = "验证码发送成功!"
|
||||
CaptchaTooOften = "验证码发送过于频繁!"
|
||||
CaptchaTooShort = "验证码长度不能少于6位!"
|
||||
CaptchaTooLong = "验证码长度不能多于20位!"
|
||||
CaptchaSendLimit = "验证码发送次数已达上限!"
|
Reference in New Issue
Block a user