Skip to content

Instantly share code, notes, and snippets.

@joshuamabina
Created July 21, 2021 01:12
Show Gist options
  • Save joshuamabina/9f94a015db059c05ce85f49a1148d596 to your computer and use it in GitHub Desktop.
Save joshuamabina/9f94a015db059c05ce85f49a1148d596 to your computer and use it in GitHub Desktop.
i18n object structure / users.json
{
"users": {
"inputs": {
"title": {
"label": "Title",
"placeholder": "Your title",
"description": "Your title e.g. Mr/Ms/Mrs/Sir/Madam",
"header": "Title"
},
"firstName": {
"label": "First name",
"placeholder": "Your first name",
"description": "Your first name e.g. Jon",
"header": "First name"
},
"lastName": {
"label": "Last name",
"placeholder": "Your last name",
"description": "Your last name e.g. Alibaba",
"header": "Last name"
},
"username": {
"label": "Username",
"placeholder": "Your username",
"description": "Your username e.g. [email protected]",
"header": "Username"
},
"password": {
"label": "Password",
"placeholder": "Your password",
"description": "Enter your password, ensure it is 6 characters long.",
"header": "Password"
}
},
"actions": {
"submit": "Submit",
"cancel": "Cancel",
"forgotPassword": "Forgot password?"
},
"flash": {
"error": {
"message": "Error! Someting went wrong. Please retry.",
"wrongUserCredentials": "Error! Wrong credentials. Please retry.",
"validation": "Error! Problem validating your input. Please retry."
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment