From 097bd236b404a30b39562654467444ec83cc6261 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Souza?= Date: Sat, 8 Jun 2024 22:26:20 -0300 Subject: [PATCH 1/3] Add i18n: de, es, it, pt Just adding a few more languages to the i18n support: - German - Spanish - Italian - Portuguese It's handy to have a wide range of languages supported out-of-the-box so users of the gem don't need to add their own translations every time. --- CHANGELOG.md | 1 + rails/locales/de.yml | 5 +++++ rails/locales/es.yml | 5 +++++ rails/locales/it.yml | 5 +++++ rails/locales/pt.yml | 5 +++++ 5 files changed, 21 insertions(+) create mode 100644 rails/locales/de.yml create mode 100644 rails/locales/es.yml create mode 100644 rails/locales/it.yml create mode 100644 rails/locales/pt.yml diff --git a/CHANGELOG.md b/CHANGELOG.md index 07c7e83..1ffd34d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ * Remove unnecessary id from textarea - This was unused and may cause accessability concerns if there is more than one recaptcha on the page due to multiple elements with the same id * Update to latest version of rubocop * Drop support for Ruby 2.7; add Ruby 3.3 +* Add i18n: de, es, it, pt ## 5.16.0 * Allow usage of `options[:turbo]` as well as `options[:turbolinks]` for `recaptcha_v3` diff --git a/rails/locales/de.yml b/rails/locales/de.yml new file mode 100644 index 0000000..ec50777 --- /dev/null +++ b/rails/locales/de.yml @@ -0,0 +1,5 @@ +de: + recaptcha: + errors: + verification_failed: Die reCAPTCHA-Überprüfung ist fehlgeschlagen, bitte versuchen Sie es erneut. + recaptcha_unreachable: Oops, wir konnten Ihre reCAPTCHA-Antwort nicht validieren. Bitte versuchen Sie es erneut. diff --git a/rails/locales/es.yml b/rails/locales/es.yml new file mode 100644 index 0000000..5bb2624 --- /dev/null +++ b/rails/locales/es.yml @@ -0,0 +1,5 @@ +es: + recaptcha: + errors: + verification_failed: La verificación de reCAPTCHA falló, por favor intente de nuevo. + recaptcha_unreachable: Ups, no pudimos validar su respuesta de reCAPTCHA. Por favor intente de nuevo. diff --git a/rails/locales/it.yml b/rails/locales/it.yml new file mode 100644 index 0000000..b9acc02 --- /dev/null +++ b/rails/locales/it.yml @@ -0,0 +1,5 @@ +it: + recaptcha: + errors: + verification_failed: La verifica reCAPTCHA non è riuscita, si prega di riprovare. + recaptcha_unreachable: Ops, non siamo riusciti a convalidare la tua risposta reCAPTCHA. Per favore riprova. diff --git a/rails/locales/pt.yml b/rails/locales/pt.yml new file mode 100644 index 0000000..c3b9bfe --- /dev/null +++ b/rails/locales/pt.yml @@ -0,0 +1,5 @@ +pt: + recaptcha: + errors: + verification_failed: A verificação do reCAPTCHA falhou, por favor, tente novamente. + recaptcha_unreachable: Oops, não conseguimos validar sua resposta do reCAPTCHA. Por favor, tente novamente. From 347df526e6f505508a1c67782790a8f3b5986613 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Souza?= Date: Sat, 8 Jun 2024 22:33:36 -0300 Subject: [PATCH 2/3] Add i18n: pt-BR --- rails/locales/pt-BR.yml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 rails/locales/pt-BR.yml diff --git a/rails/locales/pt-BR.yml b/rails/locales/pt-BR.yml new file mode 100644 index 0000000..aa1b41d --- /dev/null +++ b/rails/locales/pt-BR.yml @@ -0,0 +1,5 @@ +pt-BR: + recaptcha: + errors: + verification_failed: A verificação do reCAPTCHA falhou, por favor, tente novamente. + recaptcha_unreachable: Oops, não conseguimos validar sua resposta do reCAPTCHA. Por favor, tente novamente. From e54d27d9e08de25a0ae0d723946c725df068151f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Souza?= Date: Sat, 8 Jun 2024 22:34:32 -0300 Subject: [PATCH 3/3] Update CHANGELOG with i18n pt-BR --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ffd34d..597f228 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ * Remove unnecessary id from textarea - This was unused and may cause accessability concerns if there is more than one recaptcha on the page due to multiple elements with the same id * Update to latest version of rubocop * Drop support for Ruby 2.7; add Ruby 3.3 -* Add i18n: de, es, it, pt +* Add i18n: de, es, it, pt, pt-BR ## 5.16.0 * Allow usage of `options[:turbo]` as well as `options[:turbolinks]` for `recaptcha_v3`