Lockパスワードオプションの翻訳をカスタマイズする
以下のLockパスワード機能の翻訳を、自分のコード内でカスタマイズすることができます。
パスワードの強度
[Password History(パスワード履歴)]
パスワード変更ウィジェット
これらの機能をカスタマイズするには、パスワード変更ウィジェットライブラリのバージョン1.1以上を含める必要があります。
<script src="https://cdn.auth0.com/js/change-password-1.1.min.js"></script>
各Lockパスワード機能のテキストを翻訳するには、以下のコードを含め、すべての文字列を希望言語のテキストに置き換えてください。
パスワードの強度
dict: {
passwordStrength: {
containsAtLeast: "Contain at least %d of the following %d types of characters:",
identicalChars: "No more than %d identical characters in a row (such as, \"%s\" not allowed)",
nonEmpty: "Non-empty password required",
numbers: "Numbers (such as 0-9)",
lengthAtLeast: "At least %d characters in length",
lowerCase: "Lower case letters (a-z)",
shouldContain: "Should contain:",
specialCharacters: "Special characters (such as !@#$%^&*)",
upperCase: "Upper case letters (A-Z)"
}
}
Was this helpful?
/
[Password History(パスワード履歴)]
dict: {
passwordHistoryError: "Password has previously been used"
}
Was this helpful?
/
パスワード変更ウィジェット
dict: {
passwordPlaceholder: "your new password",
passwordConfirmationPlaceholder: "confirm your new password",
passwordConfirmationMatchError: "Please ensure the password and the confirmation are the same.",
successMessage: "Your password has been reset successfully.",
configurationError: "An error occurred. There appears to be a misconfiguration in the form.",
networkError: "The server cannot be reached, there is a problem with the network.",
timeoutError: "The server cannot be reached, please try again.",
serverError: "There was an error processing the password reset.",
headerText: "Enter a new password for<br />{email}",
title: "Change Password",
weakPasswordError: "Password is too weak."
}
Was this helpful?
/