fix: add missing i18n text in components

* Affects ActionButtonFooter, ChallengeFooter, ClipboardCopy, SubscriptionForm, VideoButton components
* Adds new entries for each json file: buttons.email, buttons.clipboardCopy, challenge.footer.video, challenge.footer.upvoteAnswer
* Available in English and Spanish
This commit is contained in:
1fbr
2024-02-04 14:58:43 +00:00
parent 84d518f036
commit 82acb4dd6d
11 changed files with 41 additions and 8 deletions

View File

@@ -38,8 +38,10 @@ const i18n = defineCollection({
.object({
'page.title.challenge': z.string(),
'author.createdBy': z.string(),
'buttons.email': z.string(),
'buttons.star': z.string(),
'buttons.sponsor': z.string(),
'buttons.clipboardCopy': z.string(),
'challenge.footer.note': z.string(),
'challenge.footer.running': z.string(),
'challenge.footer.start': z.string(),
@@ -47,9 +49,12 @@ const i18n = defineCollection({
'challenge.footer.communityAnswers': z.string(),
'challenge.footer.authorAnswer': z.string(),
'challenge.footer.blogPost': z.string(),
'challenge.footer.video': z.string(),
'challenge.footer.gettingStarted.title': z.string(),
'challenge.footer.gettingStarted.link': z.string(),
'challenge.footer.upvoteAnswer': z.string(),
'subscription.button': z.string(),
'subscription.email': z.string(),
'subscription.note.title': z.string(),
'subscription.note.description': z.string(),
})

View File

@@ -1,8 +1,10 @@
{
"page.title.challenge": "Challenge",
"author.createdBy": "Created by",
"buttons.email": "Email subscription",
"buttons.star": "Give a star",
"buttons.sponsor": "Sponsor",
"buttons.clipboardCopy": "Copied!",
"challenge.footer.note": "Note",
"challenge.footer.running": "Start the project by executing:",
"challenge.footer.start": "The title of your PR must begin with",
@@ -10,8 +12,10 @@
"challenge.footer.communityAnswers": "Community solutions",
"challenge.footer.authorAnswer": "Author's solution",
"challenge.footer.blogPost": "Article",
"challenge.footer.video": "Video",
"challenge.footer.gettingStarted.title": "To complete this challenge, start by reading: ",
"challenge.footer.gettingStarted.link": "Getting started",
"challenge.footer.upvoteAnswer": "You can upvote an answer with a 👍 if you like it",
"subscription.button": "Subscribe",
"subscription.email": "username@gmail.com",
"subscription.note.title": "Notes",

View File

@@ -34,8 +34,10 @@
"pagefind.searching": "Buscando [SEARCH_TERM]...",
"page.title.challenge": "Reto",
"author.createdBy": "Creado por",
"buttons.email": "Suscripción por correo",
"buttons.star": "Danos una estrella",
"buttons.sponsor": "Patrocínanos",
"buttons.clipboardCopy": "Copiado!",
"note": "Nota",
"running": "Inicia el proyecto ejecutando el siguiente comando:",
"start": "El título de tu PR debe iniciar con",
@@ -50,8 +52,10 @@
"challenge.footer.communityAnswers": "Respuestas de la comunidad",
"challenge.footer.authorAnswer": "Respuesta del autor",
"challenge.footer.blogPost": "Artículo",
"challenge.footer.video": "Vídeo",
"challenge.footer.gettingStarted.title": "Para realizar este desafío, comienza por leer: ",
"challenge.footer.gettingStarted.link": "Inicio",
"challenge.footer.upvoteAnswer": "Puedes votar positivo una respuesta con un 👍 si te gusta",
"subscription.button": "Suscríbete",
"subscription.email": "usuario@gmail.com",
"subscription.note.title": "Notas",

View File

@@ -1,8 +1,10 @@
{
"page.title.challenge": "Challenge",
"author.createdBy": "Créé par",
"buttons.email": "Email subscription",
"buttons.star": "Donne une étoile",
"buttons.sponsor": "Sponsorise",
"buttons.clipboardCopy": "Copied!",
"challenge.footer.note": "Note",
"challenge.footer.running": "Démarre le projet en exécutant:",
"challenge.footer.start": "Le titre de ta PR doit commencer par",
@@ -10,8 +12,10 @@
"challenge.footer.communityAnswers": "Solution de la communauté",
"challenge.footer.authorAnswer": "Solution de l'auteur",
"challenge.footer.blogPost": "Article",
"challenge.footer.video": "Video",
"challenge.footer.gettingStarted.title": "Pour faire ce challenge, commencer par lire: ",
"challenge.footer.gettingStarted.link": "Comment Démarrer",
"challenge.footer.upvoteAnswer": "You can upvote an answer with a 👍 if you like it",
"subscription.button": "Subscribe",
"subscription.email": "username@gmail.com",
"subscription.note.title": "Notes",

View File

@@ -1,8 +1,10 @@
{
"page.title.challenge": "Desafio",
"author.createdBy": "Criado por",
"buttons.email": "Email subscription",
"buttons.star": "Dar uma estrela",
"buttons.sponsor": "Patrocinar",
"buttons.clipboardCopy": "Copied!",
"404.text": "Página não encontrada. Verifique a URL ou tente usar a barra de busca.",
"challenge.footer.note": "Nota",
"challenge.footer.running": "Rode o projeto executando o comando:",
@@ -11,8 +13,10 @@
"challenge.footer.communityAnswers": "Solução da Comunidade",
"challenge.footer.authorAnswer": "Solução do Autor do Desafio",
"challenge.footer.blogPost": "Artigo",
"challenge.footer.video": "Video",
"challenge.footer.gettingStarted.title": "Para realizar este desafio, comece lendo: ",
"challenge.footer.gettingStarted.link": "Começando",
"challenge.footer.upvoteAnswer": "You can upvote an answer with a 👍 if you like it",
"subscription.button": "Inscrever-se",
"subscription.email": "usuario@gmail.com",
"subscription.note.title": "Notas",

View File

@@ -1,8 +1,10 @@
{
"page.title.challenge": "Испытание",
"author.createdBy": "Создано",
"buttons.email": "Email subscription",
"buttons.star": "Дать звезду",
"buttons.sponsor": "Спонсор",
"buttons.clipboardCopy": "Copied!",
"404.text": "Страница не найдена. Проверьте URL-адрес или воспользуйтесь строкой поиска.",
"challenge.footer.note": "Примечание",
"challenge.footer.running": "Запустите проект, выполнив команду:",
@@ -11,8 +13,10 @@
"challenge.footer.communityAnswers": "Решения сообщества",
"challenge.footer.authorAnswer": "Решение автора",
"challenge.footer.blogPost": "Статья",
"challenge.footer.video": "Video",
"challenge.footer.gettingStarted.title": "Чтобы пройти это испытание, прочитайте:",
"challenge.footer.gettingStarted.link": "Первые шаги",
"challenge.footer.upvoteAnswer": "You can upvote an answer with a 👍 if you like it",
"subscription.button": "Subscribe",
"subscription.email": "username@gmail.com",
"subscription.note.title": "Notes",