messages.go 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. package login
  2. import "github.com/qor5/x/i18n"
  3. const I18nLoginKey i18n.ModuleKey = "I18nLoginKey"
  4. type Messages struct {
  5. // common
  6. Confirm string
  7. Verify string
  8. // login page
  9. AccountLabel string
  10. AccountPlaceholder string
  11. PasswordLabel string
  12. PasswordPlaceholder string
  13. SignInBtn string
  14. ForgetPasswordLink string
  15. // forget password page
  16. ForgotMyPasswordTitle string
  17. ForgetPasswordEmailLabel string
  18. ForgetPasswordEmailPlaceholder string
  19. SendResetPasswordEmailBtn string
  20. ResendResetPasswordEmailBtn string
  21. SendEmailTooFrequentlyNotice string
  22. // reset password link sent page
  23. ResetPasswordLinkWasSentTo string
  24. ResetPasswordLinkSentPrompt string
  25. // reset password page
  26. ResetYourPasswordTitle string
  27. ResetPasswordLabel string
  28. ResetPasswordPlaceholder string
  29. ResetPasswordConfirmLabel string
  30. ResetPasswordConfirmPlaceholder string
  31. // change password page
  32. ChangePasswordTitle string
  33. ChangePasswordOldLabel string
  34. ChangePasswordOldPlaceholder string
  35. ChangePasswordNewLabel string
  36. ChangePasswordNewPlaceholder string
  37. ChangePasswordNewConfirmLabel string
  38. ChangePasswordNewConfirmPlaceholder string
  39. // TOTP setup page
  40. TOTPSetupTitle string
  41. TOTPSetupScanPrompt string
  42. TOTPSetupSecretPrompt string
  43. TOTPSetupEnterCodePrompt string
  44. TOTPSetupCodePlaceholder string
  45. // TOTP validate page
  46. TOTPValidateTitle string
  47. TOTPValidateEnterCodePrompt string
  48. TOTPValidateCodeLabel string
  49. TOTPValidateCodePlaceholder string
  50. // Error Messages
  51. ErrorSystemError string
  52. ErrorCompleteUserAuthFailed string
  53. ErrorUserNotFound string
  54. ErrorIncorrectAccountNameOrPassword string
  55. ErrorUserLocked string
  56. ErrorAccountIsRequired string
  57. ErrorPasswordCannotBeEmpty string
  58. ErrorPasswordNotMatch string
  59. ErrorIncorrectPassword string
  60. ErrorInvalidToken string
  61. ErrorTokenExpired string
  62. ErrorIncorrectTOTPCode string
  63. ErrorTOTPCodeReused string
  64. ErrorIncorrectRecaptchaToken string
  65. // Warn Messages
  66. WarnPasswordHasBeenChanged string
  67. // Info Messages
  68. InfoPasswordSuccessfullyReset string
  69. InfoPasswordSuccessfullyChanged string
  70. }
  71. var Messages_en_US = &Messages{
  72. Confirm: "Confirm",
  73. Verify: "Verify",
  74. AccountLabel: "Email",
  75. AccountPlaceholder: "Email",
  76. PasswordLabel: "Password",
  77. PasswordPlaceholder: "Password",
  78. SignInBtn: "Sign In",
  79. ForgetPasswordLink: "Forget your password?",
  80. ForgotMyPasswordTitle: "I forgot my password",
  81. ForgetPasswordEmailLabel: "Enter your email",
  82. ForgetPasswordEmailPlaceholder: "Email",
  83. SendResetPasswordEmailBtn: "Send reset password email",
  84. ResendResetPasswordEmailBtn: "Resend reset password email",
  85. SendEmailTooFrequentlyNotice: "Sending emails too frequently, please try again later",
  86. ResetPasswordLinkWasSentTo: "A reset password link was sent to",
  87. ResetPasswordLinkSentPrompt: "You can close this page and reset your password from this link.",
  88. ResetYourPasswordTitle: "Reset your password",
  89. ResetPasswordLabel: "Change your password",
  90. ResetPasswordPlaceholder: "New password",
  91. ResetPasswordConfirmLabel: "Re-enter new password",
  92. ResetPasswordConfirmPlaceholder: "Confirm new password",
  93. ChangePasswordTitle: "Change your password",
  94. ChangePasswordOldLabel: "Old password",
  95. ChangePasswordOldPlaceholder: "Old Password",
  96. ChangePasswordNewLabel: "New password",
  97. ChangePasswordNewPlaceholder: "New Password",
  98. ChangePasswordNewConfirmLabel: "Re-enter new password",
  99. ChangePasswordNewConfirmPlaceholder: "New Password",
  100. TOTPSetupTitle: "Two Factor Authentication",
  101. TOTPSetupScanPrompt: "Scan this QR code with Google Authenticator (or similar) app",
  102. TOTPSetupSecretPrompt: "Or manually enter the following code into your preferred authenticator app",
  103. TOTPSetupEnterCodePrompt: "Then enter the provided one-time code below",
  104. TOTPSetupCodePlaceholder: "Passcode",
  105. TOTPValidateTitle: "Two Factor Authentication",
  106. TOTPValidateEnterCodePrompt: "Enter the provided one-time code below",
  107. TOTPValidateCodeLabel: "Authenticator passcode",
  108. TOTPValidateCodePlaceholder: "Passcode",
  109. ErrorSystemError: "System Error",
  110. ErrorCompleteUserAuthFailed: "Complete User Auth Failed",
  111. ErrorUserNotFound: "User Not Found",
  112. ErrorIncorrectAccountNameOrPassword: "Incorrect email or password",
  113. ErrorUserLocked: "User Locked",
  114. ErrorAccountIsRequired: "Email is required",
  115. ErrorPasswordCannotBeEmpty: "Password cannot be empty",
  116. ErrorPasswordNotMatch: "Password do not match",
  117. ErrorIncorrectPassword: "Old password is incorrect",
  118. ErrorInvalidToken: "Invalid token",
  119. ErrorTokenExpired: "Token expired",
  120. ErrorIncorrectTOTPCode: "Incorrect passcode",
  121. ErrorTOTPCodeReused: "This passcode has been used",
  122. ErrorIncorrectRecaptchaToken: "Incorrect reCAPTCHA token",
  123. WarnPasswordHasBeenChanged: "Password has been changed, please sign-in again",
  124. InfoPasswordSuccessfullyReset: "Password successfully reset, please sign-in again",
  125. InfoPasswordSuccessfullyChanged: "Password successfully changed, please sign-in again",
  126. }
  127. var Messages_zh_CN = &Messages{
  128. Confirm: "确认",
  129. Verify: "验证",
  130. AccountLabel: "邮箱",
  131. AccountPlaceholder: "邮箱",
  132. PasswordLabel: "密码",
  133. PasswordPlaceholder: "密码",
  134. SignInBtn: "登录",
  135. ForgetPasswordLink: "忘记密码?",
  136. ForgotMyPasswordTitle: "我忘记密码了",
  137. ForgetPasswordEmailLabel: "输入您的电子邮箱",
  138. ForgetPasswordEmailPlaceholder: "电子邮箱",
  139. SendResetPasswordEmailBtn: "发送重置密码电子邮件",
  140. ResendResetPasswordEmailBtn: "重新发送重置密码电子邮件",
  141. SendEmailTooFrequentlyNotice: "邮件发送过于频繁,请稍后再试",
  142. ResetPasswordLinkWasSentTo: "已将重置密码链接发送到",
  143. ResetPasswordLinkSentPrompt: "您可以关闭此页面并从此链接重置密码。",
  144. ResetYourPasswordTitle: "重置您的密码",
  145. ResetPasswordLabel: "改变您的密码",
  146. ResetPasswordPlaceholder: "新密码",
  147. ResetPasswordConfirmLabel: "再次输入新密码",
  148. ResetPasswordConfirmPlaceholder: "新密码",
  149. ChangePasswordTitle: "修改您的密码",
  150. ChangePasswordOldLabel: "旧密码",
  151. ChangePasswordOldPlaceholder: "旧密码",
  152. ChangePasswordNewLabel: "新密码",
  153. ChangePasswordNewPlaceholder: "新密码",
  154. ChangePasswordNewConfirmLabel: "再次输入新密码",
  155. ChangePasswordNewConfirmPlaceholder: "新密码",
  156. TOTPSetupTitle: "双重认证",
  157. TOTPSetupScanPrompt: "使用Google Authenticator(或类似)应用程序扫描此二维码",
  158. TOTPSetupSecretPrompt: "或者将以下代码手动输入到您首选的验证器应用程序中",
  159. TOTPSetupEnterCodePrompt: "然后在下面输入提供的一次性代码",
  160. TOTPSetupCodePlaceholder: "passcode",
  161. TOTPValidateTitle: "双重认证",
  162. TOTPValidateEnterCodePrompt: "在下面输入提供的一次性代码",
  163. TOTPValidateCodeLabel: "Authenticator验证码",
  164. TOTPValidateCodePlaceholder: "passcode",
  165. ErrorSystemError: "系统错误",
  166. ErrorCompleteUserAuthFailed: "用户认证失败",
  167. ErrorUserNotFound: "找不到该用户",
  168. ErrorIncorrectAccountNameOrPassword: "邮箱或密码错误",
  169. ErrorUserLocked: "用户已锁定",
  170. ErrorAccountIsRequired: "邮箱是必须的",
  171. ErrorPasswordCannotBeEmpty: "密码不能为空",
  172. ErrorPasswordNotMatch: "确认密码不匹配",
  173. ErrorIncorrectPassword: "密码错误",
  174. ErrorInvalidToken: "token无效",
  175. ErrorTokenExpired: "token过期",
  176. ErrorIncorrectTOTPCode: "passcode错误",
  177. ErrorTOTPCodeReused: "这个passcode已经被使用过了",
  178. ErrorIncorrectRecaptchaToken: "reCAPTCHA token错误",
  179. WarnPasswordHasBeenChanged: "密码被修改了,请重新登录",
  180. InfoPasswordSuccessfullyReset: "密码重置成功,请重新登录",
  181. InfoPasswordSuccessfullyChanged: "密码修改成功,请重新登录",
  182. }
  183. var Messages_ja_JP = &Messages{
  184. Confirm: "確認する",
  185. Verify: "検証",
  186. AccountLabel: "メールアドレス",
  187. AccountPlaceholder: "メールアドレス",
  188. PasswordLabel: "パスワード",
  189. PasswordPlaceholder: "パスワード",
  190. SignInBtn: "ログイン",
  191. ForgetPasswordLink: "パスワードをお忘れですか?",
  192. ForgotMyPasswordTitle: "パスワードを忘れました",
  193. ForgetPasswordEmailLabel: "メールアドレスを入力してください",
  194. ForgetPasswordEmailPlaceholder: "メールアドレス",
  195. SendResetPasswordEmailBtn: "パスワードリセット用メールが送信されました",
  196. ResendResetPasswordEmailBtn: "パスワードリセット用メールを再送する",
  197. SendEmailTooFrequentlyNotice: "メール送信回数が上限を超えています。しばらく経ってから再度お試しください",
  198. ResetPasswordLinkWasSentTo: "パスワードリセット用リンクが送信されました",
  199. ResetPasswordLinkSentPrompt: "このリンクからパスワードリセット手続きを行い、終了後はページを閉じてください",
  200. ResetYourPasswordTitle: "パスワードをリセットしてください",
  201. ResetPasswordLabel: "パスワードを変更する",
  202. ResetPasswordPlaceholder: "新しいパスワード",
  203. ResetPasswordConfirmLabel: "新しいパスワードを再入力",
  204. ResetPasswordConfirmPlaceholder: "新しいパスワードを確認する",
  205. ChangePasswordTitle: "パスワードを変更する",
  206. ChangePasswordOldLabel: "古いパスワード",
  207. ChangePasswordOldPlaceholder: "古いパスワード",
  208. ChangePasswordNewLabel: "新しいパスワード",
  209. ChangePasswordNewPlaceholder: "新しいパスワード",
  210. ChangePasswordNewConfirmLabel: "新しいパスワードを再入力する",
  211. ChangePasswordNewConfirmPlaceholder: "新しいパスワード",
  212. TOTPSetupTitle: "二段階認証",
  213. TOTPSetupScanPrompt: "Google認証アプリ(または同等アプリ)を利用してこのQRコードをスキャンしてください",
  214. TOTPSetupSecretPrompt: "または、お好きな認証アプリを利用して、以下のコードを入力してください",
  215. TOTPSetupEnterCodePrompt: "以下のワンタイムコードを入力してください",
  216. TOTPSetupCodePlaceholder: "パスコード",
  217. TOTPValidateTitle: "二段階認証",
  218. TOTPValidateEnterCodePrompt: "提供されたワンタイムコードを以下に入力してください",
  219. TOTPValidateCodeLabel: "認証パスコード",
  220. TOTPValidateCodePlaceholder: "パスコード",
  221. ErrorSystemError: "システムエラー",
  222. ErrorCompleteUserAuthFailed: "ユーザー認証に失敗しました",
  223. ErrorUserNotFound: "このユーザーは存在しません",
  224. ErrorIncorrectAccountNameOrPassword: "メールアドレスまたはパスワードが間違っています",
  225. ErrorUserLocked: "ユーザーがロックされました",
  226. ErrorAccountIsRequired: "メールアドレスは必須です",
  227. ErrorPasswordCannotBeEmpty: "パスワードは必須です",
  228. ErrorPasswordNotMatch: "パスワードが間違っています",
  229. ErrorIncorrectPassword: "古いパスワードが間違っています",
  230. ErrorInvalidToken: "このトークンは無効です",
  231. ErrorTokenExpired: "トークンの有効期限が切れています",
  232. ErrorIncorrectTOTPCode: "パスコードが間違っています",
  233. ErrorTOTPCodeReused: "このパスコードは既に利用されています",
  234. ErrorIncorrectRecaptchaToken: "reCAPTCHAトークンが間違っています",
  235. WarnPasswordHasBeenChanged: "パスワードが変更されました。再度ログインしてください",
  236. InfoPasswordSuccessfullyReset: "パスワードのリセットに成功しました。再度ログインしてください",
  237. InfoPasswordSuccessfullyChanged: "パスワードの変更に成功しました。再度ログインしてください",
  238. }