Introducing CrudHunt:Open-source Full-stack CRUDs for Next.js by KeenThemes
Browse CrudHunt

Laravel sign-in error messages translation


Hello KeenThemes,

I'm attempting to integrate demo16 in a laravel project.

The project uses translations in different languages and I'm trying to figure out how to translate error sign-up error/configuration messages.

While other template items uses __('whatever') to use translated items, it seems for example the sign-in error messages are "hardcoded" in .js files:

For example in general.js in js/custom/authentication/sign-in :

fields: {
email: {
validators: {
notEmpty: {message: "Email address is required"},
emailAddress: {message: "The value is not a valid email address"}
}
},

Any hint how to be able to translate them like other elements would be appreciated.

Thanks and kind regards.


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (0)