-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
L10n base implementation #9
Comments
As a reference for what could be generated by the build process for translation purposes, please enjoy the following: #We provide basic instructions for login.
$LOGIN : "login"
$LOGIN_INSTRUCTIONS : "provide user credentials"
$LOGIN_SUBMIT : "enter"
$USERNAME : "username"
$VALID_USERNAME : "begins with a letter and requires only alphanumeric characters"
$INVALID_USERNAME : {$USERNAME} {$VALID_USERNAME}
$SHORT_USERNAME : "must have at least {username.valid_min} characters"
$LONG_USERNAME : "cannot be more than {username.valid_max} characters"
$WRONG_USERNAME : "not recognized"
$REMEMBER : "remember me"
#We provide different types of users; a default (admin) and a demo user for sandbox purposes.
$DEFAULT_USERNAME : "admin"
$DEFAULT_PASSWORD : "4dm!npa$$"
$DEMO_USER : true // if username.demo submitted, use dummy config
$DEMO_USERNAME : "demouser"
$DEMO_PASS : false // if $DEMO_USERNAME submitted, don't require password
$DEMO_PASSWORD: ""
#We manage password authentication here.
$PASSWORD : "password"
$SHORT_PASSWORD : "must be at least {password.valid_min} characters"
$LONG_PASSWORD : "cannot be more than {password.valid_max} characters"
$VALID_PASSWORD : "requires at least one letter, one number, and one symbol"
$INVALID_PASSWORD : {$PASSWORD} {$VALID_PASSWORD}
$WRONG_PASSWORD : "not recognized"
$LOGIN_FAILED : "login failed"
$SERVER_NOT_FOUND : "could not connect to server"
#We reset passwords here.
$FORGOT_PASSWORD : "forgot password?"
$RESET_PASSWORD : "reset password"
$RESET_INSTRUCTIONS : "enter then confirm new password for {$USERNAME}"
$MATCH_PASSWORD : "passwords do not match"
$RESET_CANCEL : "cancel"
$RESET_SUBMIT : "reset"
$CONFIRM_PASSWORD : "confirm password"
$FORGOT_INSTRUCTIONS : "enter the {$EMAIL} for {$USERNAME}"
$EMAIL : "email address"
$FORGOT_CANCEL : "cancel"
$FORGOT_SUBMIT : "verify"
username {
"default" : "admin",
"demo" : "demouser",
"valid_desc" : $VALID_USERNAME,
"valid_pattern" :
"^[a-zA-Z][a-zA-Z0-9]{(username.valid_min - 1),(username.valid_max - 1)}$",
"valid_min" : 3,
"valid_max" : 16
}
password {
"default" : "4dm!npa$$",
"demo" : "d3m0pa$$",
"valid_desc" : $VALID_PASSWORD,
"valid_regex" :
"(?=^.{password.valid_min,password.valid_max}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$",
"valid_min" : 8,
"valid_max" : 64
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We need a basic version of l10n working. We should probably look into FormatJS.
The text was updated successfully, but these errors were encountered: