messages.go 15 KB

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