i18n YAML support and validator default messages

/articles/i18n.png

i18n supports YAML from now on

@adonisjs/[email protected] added YAML support for translations

Before i18n only supported JSON format, but now it’s possible to use both JSON and YAML for translation files

Example YAML:

# resources/lang/en/emails.yaml
welcome:
  content: >-
    <h2> Welcome to AdonisJS </h2>
    <p> Click <a href="{ url }"> here </a> to verify your account </p>

For full documentation check https://docs.adonisjs.com/guides/i18n

Validator added support for default messages

@adonisjs/[email protected] added support for validator default messages

See full validator docs at https://docs.adonisjs.com/guides/validator/introduction

The Latest