chore: add example
This commit is contained in:
15
example/locales/en/common.json
Normal file
15
example/locales/en/common.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"about": "This is an example of using <0>`react-component-form`</0> inside a Next.js application. The application shows how to use the <0>`{`<Form />`}`</0> component with the <0>`useForm`</0> hook to validate and submit a form with a <0>`name`</0> and an <0>`email`</0> input.",
|
||||
"name": "Name",
|
||||
"error": "Error",
|
||||
"success": "Success",
|
||||
"success-message": "The form has been submitted.",
|
||||
"page-not-found": "This page could not be found.",
|
||||
"server-error": "Internal Server Error.",
|
||||
"return-to-home-page": "Return to the home page?",
|
||||
"required": "Oops, this field is required 🙈.",
|
||||
"minLength": "The field must contain at least {expected} characters.",
|
||||
"maxLength": "The field must contain at most {expected} characters.",
|
||||
"invalid-email": "Mmm… It seems that this email is not valid 🤔.",
|
||||
"invalid": "Invalid value."
|
||||
}
|
15
example/locales/fr/common.json
Normal file
15
example/locales/fr/common.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"about": "Ceci est un exemple d'utilisation de <0>`react-component-form`</0> dans une application Next.js. L'application montre comment utiliser le composant <0>`{`<Form />`}`</0> avec le hook <0>`useForm`</0> hook pour valider et soumettre un formulaire avec un input `name` et `email`.",
|
||||
"name": "Nom",
|
||||
"error": "Erreur",
|
||||
"success": "Succès",
|
||||
"success-message": "Le formulaire a été envoyé.",
|
||||
"page-not-found": "Cette page est introuvable.",
|
||||
"server-error": "Erreur interne du serveur.",
|
||||
"return-to-home-page": "Revenir à la page d'accueil ?",
|
||||
"required": "Oups, ce champ est obligatoire 🙈.",
|
||||
"minLength": "Le champ doit contenir au moins {expected} caractères.",
|
||||
"maxLength": "Le champ doit contenir au plus {expected} caractères.",
|
||||
"invalid-email": "Mmm… Il semblerait que cet email ne soit pas valide 🤔.",
|
||||
"invalid": "Valeur invalide."
|
||||
}
|
Reference in New Issue
Block a user