Skip to content

Commit

Permalink
chore(i18n): create translation files
Browse files Browse the repository at this point in the history
  • Loading branch information
brdtheo committed Sep 24, 2023
1 parent 12b06e3 commit d504a29
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/i18n/en.translation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"translation": {
"message": {
"title": "Send a yellow flower!",
"description": "Write a message and send it to your favorite person!",
"form": {
"input": {
"placeholder": "Enter your message for that person :D",
"error": "You must enter a message"
},
"submit": "Generate link"
},
"copyLink": "Copy link",
"copied": "Copied",
"generatedUrl": "Generated URL"
},
"flower": {
"title": "Someone who loves you sent you a flower!",
"andMessage": "And a message...",
"developedBy": "Developed by"
}
}
}
23 changes: 23 additions & 0 deletions src/i18n/es.translation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"translation": {
"message": {
"title": "Envía una flor amarilla!",
"description": "Escribe un mensaje y envíalo a tu persona favorita!",
"form": {
"input": {
"placeholder": "Ingresa tu mensaje para esa persona :D",
"error": "Debes ingresar un mensaje"
},
"submit": "Generar link"
},
"copyLink": "Copiar el link",
"copied": "Copiado",
"generatedUrl": "URL generada"
},
"flower": {
"title": "Alguien que te quiere te envio una flor!",
"andMessage": "Y un mensaje...",
"developedBy": "Desarrollado por"
}
}
}
4 changes: 4 additions & 0 deletions src/i18n/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import EN from "./en.translation.json";
import ES from "./es.translation.json";

export { EN, ES };

0 comments on commit d504a29

Please sign in to comment.