Commit f917d3d1 authored by Carlos Tadeu Panato Junior's avatar Carlos Tadeu Panato Junior Committed by Christopher Speller

add translation strings and add test case (#9294)

parent 847f30a1
......@@ -69,6 +69,11 @@ func TestCreateUser(t *testing.T) {
CheckErrorMessage(t, resp, "model.user.is_valid.email.app_error")
CheckBadRequestStatus(t, resp)
ruser.Username = "testinvalid+++"
_, resp = Client.CreateUser(ruser)
CheckErrorMessage(t, resp, "model.user.is_valid.username.app_error")
CheckBadRequestStatus(t, resp)
th.App.UpdateConfig(func(cfg *model.Config) { *cfg.TeamSettings.EnableOpenServer = false })
th.App.UpdateConfig(func(cfg *model.Config) { *cfg.TeamSettings.EnableUserCreation = false })
......
......@@ -4706,6 +4706,14 @@
"id": "model.user_access_token.is_valid.user_id.app_error",
"translation": "Invalid user id"
},
{
"id": "model.user.is_valid.email.app_error",
"translation": "Please enter a valid email address."
},
{
"id": "model.user.is_valid.username.app_error",
"translation": "Username must begin with a letter and contain between 3 and 22 characters including numbers, lowercase letters, and the symbols \".\", \"-\", and \"_\"."
},
{
"id": "model.utils.decode_json.app_error",
"translation": "could not decode"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment