Skip to content

A platform for community discussion. Free, open, simple.

DEV: Move discourse-hcaptcha to core (#33570)

Jarek Radoszb3c1f4e0af3f
diff --git a/.github/labeler.yml b/.github/labeler.yml
index b6475277e8a..9c8a33b6e61 100644
--- a/.github/labeler.yml
+++ b/.github/labeler.yml
@@ -98,6 +98,10 @@ discourse-subscriptions:
- changed-files:
- any-glob-to-any-file: plugins/discourse-subscriptions/**/*
+discourse-hcaptcha:
+ - changed-files:
+ - any-glob-to-any-file: plugins/discourse-hcaptcha/**/*
+
footnote:
- changed-files:
- any-glob-to-any-file: plugins/footnote/**/*
diff --git a/.gitignore b/.gitignore
index 72b8f7725cf..69b6f4db3ac 100644
--- a/.gitignore
+++ b/.gitignore
@@ -67,6 +67,7 @@
!/plugins/discourse-user-notes
!/plugins/discourse-assign
!/plugins/discourse-subscriptions
+!/plugins/discourse-hcaptcha
/plugins/*/auto_generated
/spec/fixtures/plugins/my_plugin/auto_generated
diff --git a/plugins/discourse-hcaptcha/README.md b/plugins/discourse-hcaptcha/README.md
new file mode 100644
index 00000000000..4cbe85db8c2
--- /dev/null
+++ b/plugins/discourse-hcaptcha/README.md
@@ -0,0 +1,20 @@
+# Discourse hCaptcha Plugin
+
+## Overview
+
+This plugin is designed to integrate HCaptcha into the sign-up form of Discourse forums. This plugin aims to enhance security and bot protection by leveraging the privacy-centric features of HCaptcha. The setup process is straightforward and consists of a few easy steps.
+
+## Installation
+
+1. **Create an HCaptcha Account**:
+ - Visit [HCaptcha](https://www.hcaptcha.com/) to create an account. After registering, you'll receive a site key and a secret key.
+
+2. **Setup Local Testing** (Optional):
+ - If you are testing locally, add a new virtual host entry to your hosts file. Include a line like `127.0.0.1 test.mydomain.com`. Make sure the domain is valid, even if you don't own it, to ensure the HCaptcha script loads properly.
+
+3. **Configure Plugin Settings**:
+ - Log into your Discourse admin panel.
+ - Navigate to `Admin` > `Settings` > `Plugins` > `hCaptcha (settings)`.
+ - In this section, add the site key and secret key you obtained from HCaptcha.
+
+By completing these steps, you will successfully integrate HCaptcha into the sign-up form of your community.
diff --git a/plugins/discourse-hcaptcha/app/controllers/discourse_hcaptcha/hcaptcha_controller.rb b/plugins/discourse-hcaptcha/app/controllers/discourse_hcaptcha/hcaptcha_controller.rb
new file mode 100644
index 00000000000..1f64f969b4e
--- /dev/null
+++ b/plugins/discourse-hcaptcha/app/controllers/discourse_hcaptcha/hcaptcha_controller.rb
@@ -0,0 +1,44 @@
+# frozen_string_literal: true
+
+module ::DiscourseHcaptcha
+ class HcaptchaController < ::ApplicationController
+ requires_plugin DiscourseHcaptcha::PLUGIN_NAME
+
+ before_action :ensure_config
+ TOKEN_TTL = 2.minutes
+ protect_from_forgery except: [:create]
+
+ def create
+ temp_id = SecureRandom.uuid
+ store_token_in_redis(temp_id)
+ set_encrypted_cookie(temp_id)
+
+ render json: { success: "OK" }
+ end
+
+ private
+
+ def ensure_config
+ raise "not enabled" unless SiteSetting.discourse_hcaptcha_enabled
+ raise "token is missing" if params[:token].blank?
+ end
+
+ def store_token_in_redis(temp_id)
+ Discourse.redis.setex("hCaptchaToken_#{temp_id}", TOKEN_TTL.to_i, params[:token])
+ end
+
+ def set_encrypted_cookie(temp_id)
+ cookies.encrypted[:h_captcha_temp_id] = cookie_options.merge({ value: temp_id })
+ end
+
+ def cookie_options
+ same_site = SiteSetting.same_site_cookies == "Disabled" ? nil : SiteSetting.same_site_cookies
+ {
+ httponly: true,
+ secure: SiteSetting.force_https,
+ expires: TOKEN_TTL.from_now,
+ same_site: same_site,
+ }.compact
+ end
+ end
+end
diff --git a/plugins/discourse-hcaptcha/app/services/problem_check/hcaptcha_configuration.rb b/plugins/discourse-hcaptcha/app/services/problem_check/hcaptcha_configuration.rb
new file mode 100644
index 00000000000..2878b9185ad
--- /dev/null
+++ b/plugins/discourse-hcaptcha/app/services/problem_check/hcaptcha_configuration.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+class ProblemCheck::HcaptchaConfiguration < ProblemCheck
+ self.priority = "high"
+
+ def call
+ return problem if SiteSetting.discourse_hcaptcha_enabled && !hcaptcha_credentias_present?
+
+ no_problem
+ end
+
+ private
+
+ def hcaptcha_credentias_present?
+ SiteSetting.hcaptcha_site_key.present? && SiteSetting.hcaptcha_secret_key.present?
+ end
+end
diff --git a/plugins/discourse-hcaptcha/assets/javascripts/.gitkeep b/plugins/discourse-hcaptcha/assets/javascripts/.gitkeep
new file mode 100644
index 00000000000..e69de29bb2d
diff --git a/plugins/discourse-hcaptcha/assets/javascripts/discourse/components/h-captcha.gjs b/plugins/discourse-hcaptcha/assets/javascripts/discourse/components/h-captcha.gjs
new file mode 100644
index 00000000000..5498434b43a
--- /dev/null
+++ b/plugins/discourse-hcaptcha/assets/javascripts/discourse/components/h-captcha.gjs
@@ -0,0 +1,89 @@
+import Component from "@glimmer/component";
+import { tracked } from "@glimmer/tracking";
+import { next } from "@ember/runloop";
+import { service } from "@ember/service";
+import InputTip from "discourse/components/input-tip";
+import loadScript from "discourse/lib/load-script";
+import { i18n } from "discourse-i18n";
+
+const HCAPTCHA_SCRIPT_URL = "https://hcaptcha.com/1/api.js?render=explicit";
+
+export default class HCaptcha extends Component {
+ @service hCaptchaService;
+
+ @tracked widgetId;
+ @tracked invalid = true;
+ @tracked hCaptchaConfigError = "";
+ hCaptcha;
+
+ constructor() {
+ super(...arguments);
+ this.initializeHCaptcha(this.args.siteKey);
+ }
+
+ willDestroy() {
+ super.willDestroy(...arguments);
+ if (this.isHCaptchaLoaded()) {
+ this.hCaptcha.reset(this.widgetId);
+ }
+ }
+
+ initializeHCaptcha(siteKey) {
+ if (this.isHCaptchaLoaded()) {
+ next(() => {
+ if (document.getElementById("h-captcha-field")) {
+ this.renderHCaptcha(siteKey);
+ }
+ });
+ return;
+ }
+
+ this.loadHCaptchaScript(siteKey);
+ }
+
+ isHCaptchaLoaded() {
+ return typeof this.hCaptcha !== "undefined";
+ }
+
+ async loadHCaptchaScript(siteKey) {
+ await loadScript(HCAPTCHA_SCRIPT_URL);
+ this.hCaptcha = window.hcaptcha;
+ this.renderHCaptcha(siteKey);
+ }
+
+ renderHCaptcha(siteKey) {
+ if (!this.isHCaptchaLoaded() || !this.args.siteKey) {
+ this.hCaptchaConfigError = i18n(
+ "discourse_hCaptcha.contact_system_administrator"
+ );
+ return;
+ }
+
+ this.widgetId = this.hCaptcha.render("h-captcha-field", {
+ sitekey: siteKey,
+ callback: (response) => {
+ this.hCaptchaService.token = response;
+ this.hCaptchaService.invalid = !response;
+ },
+ "expired-callback": () => {
+ this.hCaptchaService.invalid = true;
+ },
+ });
+
+ this.hCaptchaService.registerWidget(this.hCaptcha, this.widgetId);
+ }
+
+ <template>
+ <div id="h-captcha-field" class="h-captcha" data-sitekey={{@sitekey}}></div>
+
+ {{#if this.hCaptchaConfigError}}
+ <div class="alert alert-error">
+ {{this.hCaptchaConfigError}}
+ </div>
+ {{/if}}
+
+ {{#if this.hCaptchaService.submitFailed}}
+ <InputTip @validation={{this.hCaptchaService.inputValidation}} />
+ {{/if}}
+ </template>
+}
diff --git a/plugins/discourse-hcaptcha/assets/javascripts/discourse/connectors/create-account-after-user-fields/hcaptcha-fields-connector.gjs b/plugins/discourse-hcaptcha/assets/javascripts/discourse/connectors/create-account-after-user-fields/hcaptcha-fields-connector.gjs
new file mode 100644
index 00000000000..5bfa14140a7
--- /dev/null
+++ b/plugins/discourse-hcaptcha/assets/javascripts/discourse/connectors/create-account-after-user-fields/hcaptcha-fields-connector.gjs
@@ -0,0 +1,16 @@
+import Component from "@ember/component";
+import { classNames, tagName } from "@ember-decorators/component";
+import HCaptcha from "../../components/h-captcha";
+
+@tagName("")
+@classNames(
+ "create-account-after-user-fields-outlet",
+ "hcaptcha-fields-connector"
+)
+export default class HcaptchaFieldsConnector extends Component {
+ <template>
+ <div class="input-group">
+ <HCaptcha @siteKey={{this.siteSettings.hcaptcha_site_key}} />
+ </div>
+ </template>
+}
diff --git a/plugins/discourse-hcaptcha/assets/javascripts/discourse/services/h-captcha-service.js b/plugins/discourse-hcaptcha/assets/javascripts/discourse/services/h-captcha-service.js
new file mode 100644
index 00000000000..f1ba9302231
--- /dev/null
+++ b/plugins/discourse-hcaptcha/assets/javascripts/discourse/services/h-captcha-service.js
@@ -0,0 +1,37 @@
+import { tracked } from "@glimmer/tracking";
+import EmberObject from "@ember/object";
+import Service from "@ember/service";
+import { disableImplicitInjections } from "discourse/lib/implicit-injections";
+import { i18n } from "discourse-i18n";
+
+@disableImplicitInjections
+export default class hCaptchaService extends Service {
+ @tracked invalid = true;
+ @tracked submitted = false;
+ @tracked token = null;
+ widgetId = null;
+ hCaptcha = null;
+
+ get submitFailed() {
+ return this.submitted && this.invalid;
+ }
+
+ get inputValidation() {
+ return EmberObject.create({
+ failed: this.invalid,
+ reason: i18n("discourse_hCaptcha.missing_token"),
+ });
+ }
+
+ registerWidget(hCaptcha, id) {
+ this.hCaptcha = hCaptcha;
+ this.widgetId = id;
+ }
+
+ reset() {
+ this.invalid = true;
+ this.submitted = false;
+ this.token = null;
+ this.hCaptcha.reset(this.widgetId);
+ }
+}
diff --git a/plugins/discourse-hcaptcha/assets/javascripts/pre-initializers/h-captcha.js b/plugins/discourse-hcaptcha/assets/javascripts/pre-initializers/h-captcha.js
new file mode 100644
index 00000000000..771dc26df2a
--- /dev/null
+++ b/plugins/discourse-hcaptcha/assets/javascripts/pre-initializers/h-captcha.js
@@ -0,0 +1,58 @@
+import { Promise } from "rsvp";
+import { ajax } from "discourse/lib/ajax";
+import { getOwnerWithFallback } from "discourse/lib/get-owner";
+import { withPluginApi } from "discourse/lib/plugin-api";
+
+const PLUGIN_ID = "discourse-hCaptcha";
+
+function initializeHCaptcha(api, container) {
+ const siteSettings = container.lookup("service:site-settings");
+
+ if (!siteSettings.discourse_hcaptcha_enabled) {
+ return;
+ }
+
+ api.modifyClassStatic("model:user", {
+ pluginId: PLUGIN_ID,
+
+ createAccount() {
+ const hCaptchaService = getOwnerWithFallback(this).lookup(
+ "service:h-captcha-service"
+ );
+ hCaptchaService.submitted = true;
+
+ if (hCaptchaService.invalid) {
+ return Promise.reject();
+ }
+
+ const data = {
+ token: hCaptchaService.token,
+ };
+
+ const originalAccountCreation = this._super;
+ return ajax("/hcaptcha/create.json", {
+ data,
+ type: "POST",
+ })
+ .then(() => {
+ return originalAccountCreation(...arguments);
+ })
+ .catch(() => {
+ hCaptchaService.failed = true;
+ return Promise.reject();
+ })
+ .finally(() => {
+ hCaptchaService.reset();
+ });
+ },
+ });
+}
+
+export default {
+ name: "hcaptcha-initializer",
+ before: "inject-discourse-objects",
+
+ initialize(container) {
+ withPluginApi("1.9.0", (api) => initializeHCaptcha(api, container));
+ },
+};
diff --git a/plugins/discourse-hcaptcha/assets/stylesheets/.gitkeep b/plugins/discourse-hcaptcha/assets/stylesheets/.gitkeep
new file mode 100644
index 00000000000..e69de29bb2d
diff --git a/plugins/discourse-hcaptcha/config/locales/client.ar.yml b/plugins/discourse-hcaptcha/config/locales/client.ar.yml
new file mode 100644
index 00000000000..d3ec7bdf958
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.ar.yml
@@ -0,0 +1,17 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+ar:
+ js:
+ discourse_hCaptcha:
+ missing_token: "يُرجى إكمال تحدي hCaptcha."
+ placeholder: عنصر نائب
+ contact_system_administrator: "حدثت مشكلة مع hCaptcha، إذا استمرت هذه المشكلة، يُرجى التواصل مع مسؤول النظام"
+ admin_js:
+ admin:
+ site_settings:
+ categories:
+ discourse_hcaptcha: "Discourse hCaptcha"
diff --git a/plugins/discourse-hcaptcha/config/locales/client.be.yml b/plugins/discourse-hcaptcha/config/locales/client.be.yml
new file mode 100644
index 00000000000..2ea77a0d350
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.be.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+be:
diff --git a/plugins/discourse-hcaptcha/config/locales/client.bg.yml b/plugins/discourse-hcaptcha/config/locales/client.bg.yml
new file mode 100644
index 00000000000..52333529d3c
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.bg.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+bg:
diff --git a/plugins/discourse-hcaptcha/config/locales/client.bs_BA.yml b/plugins/discourse-hcaptcha/config/locales/client.bs_BA.yml
new file mode 100644
index 00000000000..828a7e65af8
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.bs_BA.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+bs_BA:
diff --git a/plugins/discourse-hcaptcha/config/locales/client.ca.yml b/plugins/discourse-hcaptcha/config/locales/client.ca.yml
new file mode 100644
index 00000000000..ec737bc1a5b
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.ca.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+ca:
diff --git a/plugins/discourse-hcaptcha/config/locales/client.cs.yml b/plugins/discourse-hcaptcha/config/locales/client.cs.yml
new file mode 100644
index 00000000000..041b2f0bd05
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.cs.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+cs:
diff --git a/plugins/discourse-hcaptcha/config/locales/client.da.yml b/plugins/discourse-hcaptcha/config/locales/client.da.yml
new file mode 100644
index 00000000000..f39c727c594
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.da.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+da:
diff --git a/plugins/discourse-hcaptcha/config/locales/client.de.yml b/plugins/discourse-hcaptcha/config/locales/client.de.yml
new file mode 100644
index 00000000000..700f8048c21
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.de.yml
@@ -0,0 +1,17 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+de:
+ js:
+ discourse_hCaptcha:
+ missing_token: "Bitte schließe die hCaptcha-Aufgabe ab."
+ placeholder: Platzhalter
+ contact_system_administrator: "Es ist ein Problem mit hCaptcha aufgetreten. Falls dieses Problem weiterhin besteht, kontaktiere bitte einen Systemadministrator"
+ admin_js:
+ admin:
+ site_settings:
+ categories:
+ discourse_hcaptcha: "Discourse hCaptcha"
diff --git a/plugins/discourse-hcaptcha/config/locales/client.el.yml b/plugins/discourse-hcaptcha/config/locales/client.el.yml
new file mode 100644
index 00000000000..d872d0ecc40
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.el.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+el:
diff --git a/plugins/discourse-hcaptcha/config/locales/client.en.yml b/plugins/discourse-hcaptcha/config/locales/client.en.yml
new file mode 100644
index 00000000000..b4546855382
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.en.yml
@@ -0,0 +1,12 @@
+en:
+ js:
+ discourse_hCaptcha:
+ missing_token: "Please complete the hCaptcha challenge."
+ placeholder: placeholder
+ contact_system_administrator: "There has been a problem with hCaptcha, if this problem persists please contact a system administrator"
+
+ admin_js:
+ admin:
+ site_settings:
+ categories:
+ discourse_hcaptcha: "Discourse hCaptcha"
\ No newline at end of file
diff --git a/plugins/discourse-hcaptcha/config/locales/client.en_GB.yml b/plugins/discourse-hcaptcha/config/locales/client.en_GB.yml
new file mode 100644
index 00000000000..2d4fa180ec7
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.en_GB.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+en_GB:
diff --git a/plugins/discourse-hcaptcha/config/locales/client.es.yml b/plugins/discourse-hcaptcha/config/locales/client.es.yml
new file mode 100644
index 00000000000..adb840d41b2
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.es.yml
@@ -0,0 +1,17 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+es:
+ js:
+ discourse_hCaptcha:
+ missing_token: "Completa el desafío hCaptcha."
+ placeholder: marcador de posición
+ contact_system_administrator: "Se ha producido un problema con hCaptcha, si este problema persiste ponte en contacto con un administrador del sistema"
+ admin_js:
+ admin:
+ site_settings:
+ categories:
+ discourse_hcaptcha: "hCaptcha de Discourse"
diff --git a/plugins/discourse-hcaptcha/config/locales/client.et.yml b/plugins/discourse-hcaptcha/config/locales/client.et.yml
new file mode 100644
index 00000000000..0ea0b6d554b
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.et.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+et:
diff --git a/plugins/discourse-hcaptcha/config/locales/client.fa_IR.yml b/plugins/discourse-hcaptcha/config/locales/client.fa_IR.yml
new file mode 100644
index 00000000000..56512089fb5
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.fa_IR.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+fa_IR:
diff --git a/plugins/discourse-hcaptcha/config/locales/client.fi.yml b/plugins/discourse-hcaptcha/config/locales/client.fi.yml
new file mode 100644
index 00000000000..de079d8f413
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.fi.yml
@@ -0,0 +1,17 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+fi:
+ js:
+ discourse_hCaptcha:
+ missing_token: "Suorita hCaptcha-haaste."
+ placeholder: paikkamerkki
+ contact_system_administrator: "hCaptchassa on ollut ongelma. Jos ongelma jatkuu, ota yhteyttä järjestelmänvalvojaan."
+ admin_js:
+ admin:
+ site_settings:
+ categories:
+ discourse_hcaptcha: "Discourse hCaptcha"
diff --git a/plugins/discourse-hcaptcha/config/locales/client.fr.yml b/plugins/discourse-hcaptcha/config/locales/client.fr.yml
new file mode 100644
index 00000000000..4eee5e5068f
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.fr.yml
@@ -0,0 +1,17 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+fr:
+ js:
+ discourse_hCaptcha:
+ missing_token: "Veuillez compléter le défi hCaptcha."
+ placeholder: espace réservé
+ contact_system_administrator: "Une erreur s'est produite avec hCaptcha. Si ce problème persiste, veuillez contacter un administrateur système"
+ admin_js:
+ admin:
+ site_settings:
+ categories:
+ discourse_hcaptcha: "Discours hCaptcha"
diff --git a/plugins/discourse-hcaptcha/config/locales/client.gl.yml b/plugins/discourse-hcaptcha/config/locales/client.gl.yml
new file mode 100644
index 00000000000..fb911ce1635
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.gl.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+gl:
diff --git a/plugins/discourse-hcaptcha/config/locales/client.he.yml b/plugins/discourse-hcaptcha/config/locales/client.he.yml
new file mode 100644
index 00000000000..8eb8e3205bc
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.he.yml
@@ -0,0 +1,17 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+he:
+ js:
+ discourse_hCaptcha:
+ missing_token: "נא להשלים את אתגר hCaptcha."
+ placeholder: ממלא מקום
+ contact_system_administrator: "אירעה תקלה עם hCaptcha, אם התקלה הזאת נמשכת נא ליצור קשר עם הנהלת המערכת."
+ admin_js:
+ admin:
+ site_settings:
+ categories:
+ discourse_hcaptcha: "hCaptcha של Discourse"
diff --git a/plugins/discourse-hcaptcha/config/locales/client.hr.yml b/plugins/discourse-hcaptcha/config/locales/client.hr.yml
new file mode 100644
index 00000000000..93343ce6e19
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.hr.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+hr:
diff --git a/plugins/discourse-hcaptcha/config/locales/client.hu.yml b/plugins/discourse-hcaptcha/config/locales/client.hu.yml
new file mode 100644
index 00000000000..76b6e9d8bcb
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.hu.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+hu:
diff --git a/plugins/discourse-hcaptcha/config/locales/client.hy.yml b/plugins/discourse-hcaptcha/config/locales/client.hy.yml
new file mode 100644
index 00000000000..cb18f64d356
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.hy.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+hy:
diff --git a/plugins/discourse-hcaptcha/config/locales/client.id.yml b/plugins/discourse-hcaptcha/config/locales/client.id.yml
new file mode 100644
index 00000000000..596e36b2e13
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.id.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+id:
diff --git a/plugins/discourse-hcaptcha/config/locales/client.it.yml b/plugins/discourse-hcaptcha/config/locales/client.it.yml
new file mode 100644
index 00000000000..cca6609a924
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.it.yml
@@ -0,0 +1,17 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+it:
+ js:
+ discourse_hCaptcha:
+ missing_token: "Completa la sfida hCaptcha."
+ placeholder: segnaposto
+ contact_system_administrator: "Si è verificato un problema con hCaptcha, se il problema persiste contatta un amministratore di sistema"
+ admin_js:
+ admin:
+ site_settings:
+ categories:
+ discourse_hcaptcha: "Discourse hCaptcha"
diff --git a/plugins/discourse-hcaptcha/config/locales/client.ja.yml b/plugins/discourse-hcaptcha/config/locales/client.ja.yml
new file mode 100644
index 00000000000..88aca6fe75b
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.ja.yml
@@ -0,0 +1,17 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+ja:
+ js:
+ discourse_hCaptcha:
+ missing_token: "hCaptcha チャレンジを完了してください。"
+ placeholder: プレースホルダー
+ contact_system_administrator: "hCaptcha に問題が発生しました。この問題が解決しない場合は、システム管理者にお問い合わせください"
+ admin_js:
+ admin:
+ site_settings:
+ categories:
+ discourse_hcaptcha: "Discourse hCaptcha"
diff --git a/plugins/discourse-hcaptcha/config/locales/client.ko.yml b/plugins/discourse-hcaptcha/config/locales/client.ko.yml
new file mode 100644
index 00000000000..18dd77fd3ec
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.ko.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+ko:
diff --git a/plugins/discourse-hcaptcha/config/locales/client.lt.yml b/plugins/discourse-hcaptcha/config/locales/client.lt.yml
new file mode 100644
index 00000000000..16bb19758dc
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.lt.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+lt:
diff --git a/plugins/discourse-hcaptcha/config/locales/client.lv.yml b/plugins/discourse-hcaptcha/config/locales/client.lv.yml
new file mode 100644
index 00000000000..59e0ef6f4ed
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.lv.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+lv:
diff --git a/plugins/discourse-hcaptcha/config/locales/client.nb_NO.yml b/plugins/discourse-hcaptcha/config/locales/client.nb_NO.yml
new file mode 100644
index 00000000000..2e2224d1472
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.nb_NO.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+nb_NO:
diff --git a/plugins/discourse-hcaptcha/config/locales/client.nl.yml b/plugins/discourse-hcaptcha/config/locales/client.nl.yml
new file mode 100644
index 00000000000..7c490a83b5b
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.nl.yml
@@ -0,0 +1,17 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+nl:
+ js:
+ discourse_hCaptcha:
+ missing_token: "Voltooi de hCaptcha-uitdaging."
+ placeholder: tijdelijke aanduiding
+ contact_system_administrator: "Er is een probleem opgetreden met hCaptcha. Als dit probleem zich blijft voordoen, neem dan contact op met een systeembeheerder."
+ admin_js:
+ admin:
+ site_settings:
+ categories:
+ discourse_hcaptcha: "Discourse hCaptcha"
diff --git a/plugins/discourse-hcaptcha/config/locales/client.pl_PL.yml b/plugins/discourse-hcaptcha/config/locales/client.pl_PL.yml
new file mode 100644
index 00000000000..c725efdad79
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.pl_PL.yml
@@ -0,0 +1,17 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+pl_PL:
+ js:
+ discourse_hCaptcha:
+ missing_token: "Proszę ukończyć wyzwanie hCaptcha."
+ placeholder: symbol zastępczy
+ contact_system_administrator: "Wystąpił problem z hCaptcha, jeśli problem będzie się powtarzał, skontaktuj się z administratorem systemu."
+ admin_js:
+ admin:
+ site_settings:
+ categories:
+ discourse_hcaptcha: "Discourse hCaptcha"
diff --git a/plugins/discourse-hcaptcha/config/locales/client.pt.yml b/plugins/discourse-hcaptcha/config/locales/client.pt.yml
new file mode 100644
index 00000000000..298ba523c1d
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.pt.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+pt:
diff --git a/plugins/discourse-hcaptcha/config/locales/client.pt_BR.yml b/plugins/discourse-hcaptcha/config/locales/client.pt_BR.yml
new file mode 100644
index 00000000000..10510e0c0ab
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.pt_BR.yml
@@ -0,0 +1,17 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+pt_BR:
+ js:
+ discourse_hCaptcha:
+ missing_token: "Conclua o desafio de hCaptcha."
+ placeholder: espaço reservado
+ contact_system_administrator: "Ocorreu um problema no hCaptcha. Se o problema persistir, entre em contato com a administração do sistema"
+ admin_js:
+ admin:
+ site_settings:
+ categories:
+ discourse_hcaptcha: "hCaptcha do Discourse"
diff --git a/plugins/discourse-hcaptcha/config/locales/client.ro.yml b/plugins/discourse-hcaptcha/config/locales/client.ro.yml
new file mode 100644
index 00000000000..87db044e9ac
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.ro.yml
@@ -0,0 +1,17 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+ro:
+ js:
+ discourse_hCaptcha:
+ missing_token: "Te rugăm să completezi provocarea hCaptcha."
+ placeholder: substituent
+ contact_system_administrator: "A apărut o problemă cu hCaptcha, dacă această problemă persistă, te rugăm să contactezi un administrator de sistem"
+ admin_js:
+ admin:
+ site_settings:
+ categories:
+ discourse_hcaptcha: "Discourse hCaptcha"
diff --git a/plugins/discourse-hcaptcha/config/locales/client.ru.yml b/plugins/discourse-hcaptcha/config/locales/client.ru.yml
new file mode 100644
index 00000000000..a2661611ad6
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.ru.yml
@@ -0,0 +1,17 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+ru:
+ js:
+ discourse_hCaptcha:
+ missing_token: "Пройдите тест hCaptcha."
+ placeholder: заполнитель
+ contact_system_administrator: "Возникла проблема с hCaptcha. Если проблема не исчезнет, обратитесь к системному администратору."
+ admin_js:
+ admin:
+ site_settings:
+ categories:
+ discourse_hcaptcha: "Discourse hCaptcha"
diff --git a/plugins/discourse-hcaptcha/config/locales/client.sk.yml b/plugins/discourse-hcaptcha/config/locales/client.sk.yml
new file mode 100644
index 00000000000..6f815624081
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.sk.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+sk:
diff --git a/plugins/discourse-hcaptcha/config/locales/client.sl.yml b/plugins/discourse-hcaptcha/config/locales/client.sl.yml
new file mode 100644
index 00000000000..23489a48b1f
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.sl.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+sl:
diff --git a/plugins/discourse-hcaptcha/config/locales/client.sq.yml b/plugins/discourse-hcaptcha/config/locales/client.sq.yml
new file mode 100644
index 00000000000..7f051b7a7cf
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.sq.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+sq:
diff --git a/plugins/discourse-hcaptcha/config/locales/client.sr.yml b/plugins/discourse-hcaptcha/config/locales/client.sr.yml
new file mode 100644
index 00000000000..88d63d6ae1a
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.sr.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+sr:
diff --git a/plugins/discourse-hcaptcha/config/locales/client.sv.yml b/plugins/discourse-hcaptcha/config/locales/client.sv.yml
new file mode 100644
index 00000000000..b165aa293c0
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.sv.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+sv:
diff --git a/plugins/discourse-hcaptcha/config/locales/client.sw.yml b/plugins/discourse-hcaptcha/config/locales/client.sw.yml
new file mode 100644
index 00000000000..0d7cdd075bf
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.sw.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+sw:
diff --git a/plugins/discourse-hcaptcha/config/locales/client.te.yml b/plugins/discourse-hcaptcha/config/locales/client.te.yml
new file mode 100644
index 00000000000..03967bdbb07
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.te.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+te:
diff --git a/plugins/discourse-hcaptcha/config/locales/client.th.yml b/plugins/discourse-hcaptcha/config/locales/client.th.yml
new file mode 100644
index 00000000000..7de85ff91c4
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.th.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+th:
diff --git a/plugins/discourse-hcaptcha/config/locales/client.tr_TR.yml b/plugins/discourse-hcaptcha/config/locales/client.tr_TR.yml
new file mode 100644
index 00000000000..56ae24cc2bc
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.tr_TR.yml
@@ -0,0 +1,17 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+tr_TR:
+ js:
+ discourse_hCaptcha:
+ missing_token: "Lütfen hCaptcha testini tamamlayın."
+ placeholder: yer tutucu
+ contact_system_administrator: "hCaptcha ile ilgili bir sorun oluştu, bu sorun devam ederse lütfen bir sistem yöneticisiyle iletişime geçin"
+ admin_js:
+ admin:
+ site_settings:
+ categories:
+ discourse_hcaptcha: "Discourse hCaptcha"
diff --git a/plugins/discourse-hcaptcha/config/locales/client.ug.yml b/plugins/discourse-hcaptcha/config/locales/client.ug.yml
new file mode 100644
index 00000000000..a6bf0185ae2
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.ug.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+ug:
diff --git a/plugins/discourse-hcaptcha/config/locales/client.uk.yml b/plugins/discourse-hcaptcha/config/locales/client.uk.yml
new file mode 100644
index 00000000000..f1390545d1d
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.uk.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+uk:
diff --git a/plugins/discourse-hcaptcha/config/locales/client.ur.yml b/plugins/discourse-hcaptcha/config/locales/client.ur.yml
new file mode 100644
index 00000000000..b4a9c21ee2f
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.ur.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+ur:
diff --git a/plugins/discourse-hcaptcha/config/locales/client.vi.yml b/plugins/discourse-hcaptcha/config/locales/client.vi.yml
new file mode 100644
index 00000000000..f629dcf5329
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.vi.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+vi:
diff --git a/plugins/discourse-hcaptcha/config/locales/client.zh_CN.yml b/plugins/discourse-hcaptcha/config/locales/client.zh_CN.yml
new file mode 100644
index 00000000000..f2360832cb9
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.zh_CN.yml
@@ -0,0 +1,17 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+zh_CN:
+ js:
+ discourse_hCaptcha:
+ missing_token: "请完成 hCaptcha 验证。"
+ placeholder: 占位符
+ contact_system_administrator: "hCaptcha 出错了,如果问题一直存在,请联系系统管理员"
+ admin_js:
+ admin:
+ site_settings:
+ categories:
+ discourse_hcaptcha: "Discourse hCaptcha"
diff --git a/plugins/discourse-hcaptcha/config/locales/client.zh_TW.yml b/plugins/discourse-hcaptcha/config/locales/client.zh_TW.yml
new file mode 100644
index 00000000000..7e15fab0018
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/client.zh_TW.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+zh_TW:
diff --git a/plugins/discourse-hcaptcha/config/locales/server.ar.yml b/plugins/discourse-hcaptcha/config/locales/server.ar.yml
new file mode 100644
index 00000000000..7eb7018515e
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.ar.yml
@@ -0,0 +1,19 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+ar:
+ dashboard:
+ problem:
+ hcaptcha_configuration: "هناك مشكلة في تكوين `site_key` أو `secret_key` الخاص بك لـ hCaptcha"
+ admin:
+ site_settings:
+ categories:
+ discourse_hcaptcha: "المكوِّن الإضافي hCaptcha"
+ site_settings:
+ discourse_hcaptcha_enabled: "قم بتفعيل المكوِّن الإضافي hCaptcha. يتطلَّب حساب <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a> ."
+ hcaptcha_site_key: "مفتاح موقع hCaptcha من حساب <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a> الخاص بك"
+ hcaptcha_secret_key: "المفتاح السري لموقع hCaptcha من حساب <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a> الخاص بك"
+ h_captcha_verification_failed: "فشل اجتياز تحقق hCaptcha"
diff --git a/plugins/discourse-hcaptcha/config/locales/server.be.yml b/plugins/discourse-hcaptcha/config/locales/server.be.yml
new file mode 100644
index 00000000000..2ea77a0d350
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.be.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+be:
diff --git a/plugins/discourse-hcaptcha/config/locales/server.bg.yml b/plugins/discourse-hcaptcha/config/locales/server.bg.yml
new file mode 100644
index 00000000000..52333529d3c
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.bg.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+bg:
diff --git a/plugins/discourse-hcaptcha/config/locales/server.bs_BA.yml b/plugins/discourse-hcaptcha/config/locales/server.bs_BA.yml
new file mode 100644
index 00000000000..828a7e65af8
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.bs_BA.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+bs_BA:
diff --git a/plugins/discourse-hcaptcha/config/locales/server.ca.yml b/plugins/discourse-hcaptcha/config/locales/server.ca.yml
new file mode 100644
index 00000000000..ec737bc1a5b
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.ca.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+ca:
diff --git a/plugins/discourse-hcaptcha/config/locales/server.cs.yml b/plugins/discourse-hcaptcha/config/locales/server.cs.yml
new file mode 100644
index 00000000000..041b2f0bd05
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.cs.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+cs:
diff --git a/plugins/discourse-hcaptcha/config/locales/server.da.yml b/plugins/discourse-hcaptcha/config/locales/server.da.yml
new file mode 100644
index 00000000000..f39c727c594
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.da.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+da:
diff --git a/plugins/discourse-hcaptcha/config/locales/server.de.yml b/plugins/discourse-hcaptcha/config/locales/server.de.yml
new file mode 100644
index 00000000000..5ab3b24af2b
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.de.yml
@@ -0,0 +1,19 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+de:
+ dashboard:
+ problem:
+ hcaptcha_configuration: "Es gibt ein Problem mit deiner hCaptcha-Konfiguration für `site_key` oder `secret_key`"
+ admin:
+ site_settings:
+ categories:
+ discourse_hcaptcha: "hCaptcha-Plug-in"
+ site_settings:
+ discourse_hcaptcha_enabled: "Aktiviere das hCaptcha-Plug-in. Erfordert ein <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a>-Konto."
+ hcaptcha_site_key: "hCaptcha-Website-Schlüssel aus deinem <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a>-Konto"
+ hcaptcha_secret_key: "Geheimer hCaptcha-Schlüssel aus deinem <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a>-Konto"
+ h_captcha_verification_failed: "hCaptcha-Verifizierung fehlgeschlagen"
diff --git a/plugins/discourse-hcaptcha/config/locales/server.el.yml b/plugins/discourse-hcaptcha/config/locales/server.el.yml
new file mode 100644
index 00000000000..d872d0ecc40
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.el.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+el:
diff --git a/plugins/discourse-hcaptcha/config/locales/server.en.yml b/plugins/discourse-hcaptcha/config/locales/server.en.yml
new file mode 100644
index 00000000000..5ae8c96eb16
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.en.yml
@@ -0,0 +1,16 @@
+en:
+ dashboard:
+ problem:
+ hcaptcha_configuration: "There is a problem with your hCaptcha `site_key` or `secret_key` configuration"
+
+ admin:
+ site_settings:
+ categories:
+ discourse_hcaptcha: "hCaptcha Plugin"
+
+ site_settings:
+ discourse_hcaptcha_enabled: "Enable the hCaptcha Plugin. Requires <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a> account."
+ hcaptcha_site_key: "hCaptcha Site Key from your <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a> account"
+ hcaptcha_secret_key: "hCaptcha Secret Key from your <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a> account"
+
+ h_captcha_verification_failed: "hCaptcha verification failed"
diff --git a/plugins/discourse-hcaptcha/config/locales/server.en_GB.yml b/plugins/discourse-hcaptcha/config/locales/server.en_GB.yml
new file mode 100644
index 00000000000..2d4fa180ec7
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.en_GB.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+en_GB:
diff --git a/plugins/discourse-hcaptcha/config/locales/server.es.yml b/plugins/discourse-hcaptcha/config/locales/server.es.yml
new file mode 100644
index 00000000000..bddd51ec2eb
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.es.yml
@@ -0,0 +1,19 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+es:
+ dashboard:
+ problem:
+ hcaptcha_configuration: "Hay un problema con la configuración de tu `site_key` o `secret_key` de hCaptcha"
+ admin:
+ site_settings:
+ categories:
+ discourse_hcaptcha: "Complemento hCaptcha"
+ site_settings:
+ discourse_hcaptcha_enabled: "Habilita el Plugin hCaptcha. Requiere una cuenta <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a>."
+ hcaptcha_site_key: "Clave del sitio hCaptcha de tu cuenta <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a>"
+ hcaptcha_secret_key: "Clave secreta hCaptcha de tu cuenta <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a>"
+ h_captcha_verification_failed: "La verificación de hCaptcha falló"
diff --git a/plugins/discourse-hcaptcha/config/locales/server.et.yml b/plugins/discourse-hcaptcha/config/locales/server.et.yml
new file mode 100644
index 00000000000..0ea0b6d554b
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.et.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+et:
diff --git a/plugins/discourse-hcaptcha/config/locales/server.fa_IR.yml b/plugins/discourse-hcaptcha/config/locales/server.fa_IR.yml
new file mode 100644
index 00000000000..56512089fb5
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.fa_IR.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+fa_IR:
diff --git a/plugins/discourse-hcaptcha/config/locales/server.fi.yml b/plugins/discourse-hcaptcha/config/locales/server.fi.yml
new file mode 100644
index 00000000000..666dc8807b4
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.fi.yml
@@ -0,0 +1,19 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+fi:
+ dashboard:
+ problem:
+ hcaptcha_configuration: "hCaptchan \"site_key\"- tai \"secret_key\"-määrityksessä on ongelma"
+ admin:
+ site_settings:
+ categories:
+ discourse_hcaptcha: "hCaptcha-lisäosa"
+ site_settings:
+ discourse_hcaptcha_enabled: "Ota hCaptcha-lisäosa käyttöön. Vaatii <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a>-tilin."
+ hcaptcha_site_key: "hCaptchan sivustoavain (site key) <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a>-tililtäsi"
+ hcaptcha_secret_key: "hCaptchan salainen avain (secret key) <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a>-tililtäsi"
+ h_captcha_verification_failed: "hCaptcha-vahvistus epäonnistui"
diff --git a/plugins/discourse-hcaptcha/config/locales/server.fr.yml b/plugins/discourse-hcaptcha/config/locales/server.fr.yml
new file mode 100644
index 00000000000..c98fc79340e
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.fr.yml
@@ -0,0 +1,19 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+fr:
+ dashboard:
+ problem:
+ hcaptcha_configuration: "Il y a un problème avec la configuration de votre hCaptcha `site_key` ou `secret_key`"
+ admin:
+ site_settings:
+ categories:
+ discourse_hcaptcha: "Extension hCaptcha"
+ site_settings:
+ discourse_hcaptcha_enabled: "Activer l'extension hCaptcha. Nécessite un compte <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a> ."
+ hcaptcha_site_key: "Clé de site hCaptcha de votre compte <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a>"
+ hcaptcha_secret_key: "Clé secrète hCaptcha de votre compte <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a>"
+ h_captcha_verification_failed: "La vérification hCaptcha a échoué"
diff --git a/plugins/discourse-hcaptcha/config/locales/server.gl.yml b/plugins/discourse-hcaptcha/config/locales/server.gl.yml
new file mode 100644
index 00000000000..fb911ce1635
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.gl.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+gl:
diff --git a/plugins/discourse-hcaptcha/config/locales/server.he.yml b/plugins/discourse-hcaptcha/config/locales/server.he.yml
new file mode 100644
index 00000000000..bfbcbbb1441
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.he.yml
@@ -0,0 +1,19 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+he:
+ dashboard:
+ problem:
+ hcaptcha_configuration: "אירעה תקלה עם הגדרות `site_key` או `secret_key` של ה־hCaptcha שלך"
+ admin:
+ site_settings:
+ categories:
+ discourse_hcaptcha: "תוסף hCaptcha"
+ site_settings:
+ discourse_hcaptcha_enabled: "הפעלת התוסף hCaptcha (מבחן טיורינג). דורש חשבון ב־<a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a>."
+ hcaptcha_site_key: "מפתח אתר hCaptcha מחשבון ה־<a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a> שלך"
+ hcaptcha_secret_key: "מפתח סודי hCaptcha מחשבון ה־<a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a> שלך"
+ h_captcha_verification_failed: "אימות hCaptcha נכשל"
diff --git a/plugins/discourse-hcaptcha/config/locales/server.hr.yml b/plugins/discourse-hcaptcha/config/locales/server.hr.yml
new file mode 100644
index 00000000000..93343ce6e19
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.hr.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+hr:
diff --git a/plugins/discourse-hcaptcha/config/locales/server.hu.yml b/plugins/discourse-hcaptcha/config/locales/server.hu.yml
new file mode 100644
index 00000000000..76b6e9d8bcb
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.hu.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+hu:
diff --git a/plugins/discourse-hcaptcha/config/locales/server.hy.yml b/plugins/discourse-hcaptcha/config/locales/server.hy.yml
new file mode 100644
index 00000000000..cb18f64d356
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.hy.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+hy:
diff --git a/plugins/discourse-hcaptcha/config/locales/server.id.yml b/plugins/discourse-hcaptcha/config/locales/server.id.yml
new file mode 100644
index 00000000000..596e36b2e13
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.id.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+id:
diff --git a/plugins/discourse-hcaptcha/config/locales/server.it.yml b/plugins/discourse-hcaptcha/config/locales/server.it.yml
new file mode 100644
index 00000000000..4015f9e929c
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.it.yml
@@ -0,0 +1,19 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+it:
+ dashboard:
+ problem:
+ hcaptcha_configuration: "C'è un problema con la configurazione hCaptcha `site_key` o `secret_key`"
+ admin:
+ site_settings:
+ categories:
+ discourse_hcaptcha: "Plugin hCaptcha"
+ site_settings:
+ discourse_hcaptcha_enabled: "Abilita il plugin hCaptcha. Richiede un account <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a>."
+ hcaptcha_site_key: "Chiave del sito hCaptcha dal tuo account <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a>"
+ hcaptcha_secret_key: "Chiave segreta hCaptcha dal tuo account <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a>"
+ h_captcha_verification_failed: "Verifica hCaptcha non riuscita"
diff --git a/plugins/discourse-hcaptcha/config/locales/server.ja.yml b/plugins/discourse-hcaptcha/config/locales/server.ja.yml
new file mode 100644
index 00000000000..96c42b99da3
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.ja.yml
@@ -0,0 +1,19 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+ja:
+ dashboard:
+ problem:
+ hcaptcha_configuration: "hCaptcha の `site_key` または `secret_key` の構成に問題があります"
+ admin:
+ site_settings:
+ categories:
+ discourse_hcaptcha: "hCaptcha プラグイン"
+ site_settings:
+ discourse_hcaptcha_enabled: "hCaptcha プラグ位にを有効にします。<a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a> アカウントが必要です。"
+ hcaptcha_site_key: "<a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a> アカウントの hCaptcha サイトキー"
+ hcaptcha_secret_key: "<a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a> アカウントの hCaptcha シークレットキー"
+ h_captcha_verification_failed: "hCaptcha 認証に失敗しました"
diff --git a/plugins/discourse-hcaptcha/config/locales/server.ko.yml b/plugins/discourse-hcaptcha/config/locales/server.ko.yml
new file mode 100644
index 00000000000..18dd77fd3ec
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.ko.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+ko:
diff --git a/plugins/discourse-hcaptcha/config/locales/server.lt.yml b/plugins/discourse-hcaptcha/config/locales/server.lt.yml
new file mode 100644
index 00000000000..16bb19758dc
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.lt.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+lt:
diff --git a/plugins/discourse-hcaptcha/config/locales/server.lv.yml b/plugins/discourse-hcaptcha/config/locales/server.lv.yml
new file mode 100644
index 00000000000..59e0ef6f4ed
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.lv.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+lv:
diff --git a/plugins/discourse-hcaptcha/config/locales/server.nb_NO.yml b/plugins/discourse-hcaptcha/config/locales/server.nb_NO.yml
new file mode 100644
index 00000000000..2e2224d1472
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.nb_NO.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+nb_NO:
diff --git a/plugins/discourse-hcaptcha/config/locales/server.nl.yml b/plugins/discourse-hcaptcha/config/locales/server.nl.yml
new file mode 100644
index 00000000000..bd7a574e703
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.nl.yml
@@ -0,0 +1,19 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+nl:
+ dashboard:
+ problem:
+ hcaptcha_configuration: "Er is een probleem met de configuratie voor 'site_key' of 'secret_key' van je hCaptcha"
+ admin:
+ site_settings:
+ categories:
+ discourse_hcaptcha: "hCaptcha-plug-in"
+ site_settings:
+ discourse_hcaptcha_enabled: "Schakel de hCaptcha-plug-in in. Vereist een account op <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a>."
+ hcaptcha_site_key: "hCaptcha-sitesleutel van je <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a>-account"
+ hcaptcha_secret_key: "Geheime hCaptcha-sleutel van je <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a>-account"
+ h_captcha_verification_failed: "hCaptcha-verificatie mislukt"
diff --git a/plugins/discourse-hcaptcha/config/locales/server.pl_PL.yml b/plugins/discourse-hcaptcha/config/locales/server.pl_PL.yml
new file mode 100644
index 00000000000..dbe5636244f
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.pl_PL.yml
@@ -0,0 +1,19 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+pl_PL:
+ dashboard:
+ problem:
+ hcaptcha_configuration: "Wystąpił problem z twoją konfiguracją hCaptcha `site_key` lub `secret_key`."
+ admin:
+ site_settings:
+ categories:
+ discourse_hcaptcha: "Wtyczka hCaptcha"
+ site_settings:
+ discourse_hcaptcha_enabled: "Włącz wtyczkę hCaptcha. Wymaga konta <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a>."
+ hcaptcha_site_key: "Klucz witryny hCaptcha z Twojego konta <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a>"
+ hcaptcha_secret_key: "Klucz tajny hCaptcha z Twojego konta <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a>"
+ h_captcha_verification_failed: "Weryfikacja hCaptcha nie powiodła się"
diff --git a/plugins/discourse-hcaptcha/config/locales/server.pt.yml b/plugins/discourse-hcaptcha/config/locales/server.pt.yml
new file mode 100644
index 00000000000..298ba523c1d
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.pt.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+pt:
diff --git a/plugins/discourse-hcaptcha/config/locales/server.pt_BR.yml b/plugins/discourse-hcaptcha/config/locales/server.pt_BR.yml
new file mode 100644
index 00000000000..0de88f5f5f0
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.pt_BR.yml
@@ -0,0 +1,19 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+pt_BR:
+ dashboard:
+ problem:
+ hcaptcha_configuration: "Ocorreu um problema na configuração `site_key` or `secret_key` do hCaptcha"
+ admin:
+ site_settings:
+ categories:
+ discourse_hcaptcha: "Plugin hCaptcha"
+ site_settings:
+ discourse_hcaptcha_enabled: "Ative o plugin hCaptcha. Requer uma conta <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a>."
+ hcaptcha_site_key: "Chave do site do hCaptcha da sua <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a> conta"
+ hcaptcha_secret_key: "Chave secreta do hCaptcha da sua <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a> conta"
+ h_captcha_verification_failed: "Falha na verificação hCaptcha"
diff --git a/plugins/discourse-hcaptcha/config/locales/server.ro.yml b/plugins/discourse-hcaptcha/config/locales/server.ro.yml
new file mode 100644
index 00000000000..913fc621f21
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.ro.yml
@@ -0,0 +1,15 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+ro:
+ dashboard:
+ problem:
+ hcaptcha_configuration: "Există o problemă cu configurația `site_key` sau `secret_key` hCaptcha"
+ admin:
+ site_settings:
+ categories:
+ discourse_hcaptcha: "Modul hCaptcha"
+ h_captcha_verification_failed: "Verificarea hCaptcha a eșuat"
diff --git a/plugins/discourse-hcaptcha/config/locales/server.ru.yml b/plugins/discourse-hcaptcha/config/locales/server.ru.yml
new file mode 100644
index 00000000000..45f84adee14
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.ru.yml
@@ -0,0 +1,19 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+ru:
+ dashboard:
+ problem:
+ hcaptcha_configuration: "Возникла проблема с конфигурацией ключей `site_key` или `secret_key для hCaptcha"
+ admin:
+ site_settings:
+ categories:
+ discourse_hcaptcha: "Плагин hCaptcha"
+ site_settings:
+ discourse_hcaptcha_enabled: "Включает плагин hCaptcha. Требуется аккаунт <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a>."
+ hcaptcha_site_key: "Ключ сайта hCaptcha из вашего аккаунта <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a>"
+ hcaptcha_secret_key: "Секретный ключ hCaptcha из вашего аккаунта <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a>"
+ h_captcha_verification_failed: "Ошибка проверки hCaptcha"
diff --git a/plugins/discourse-hcaptcha/config/locales/server.sk.yml b/plugins/discourse-hcaptcha/config/locales/server.sk.yml
new file mode 100644
index 00000000000..6f815624081
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.sk.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+sk:
diff --git a/plugins/discourse-hcaptcha/config/locales/server.sl.yml b/plugins/discourse-hcaptcha/config/locales/server.sl.yml
new file mode 100644
index 00000000000..23489a48b1f
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.sl.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+sl:
diff --git a/plugins/discourse-hcaptcha/config/locales/server.sq.yml b/plugins/discourse-hcaptcha/config/locales/server.sq.yml
new file mode 100644
index 00000000000..7f051b7a7cf
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.sq.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+sq:
diff --git a/plugins/discourse-hcaptcha/config/locales/server.sr.yml b/plugins/discourse-hcaptcha/config/locales/server.sr.yml
new file mode 100644
index 00000000000..88d63d6ae1a
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.sr.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+sr:
diff --git a/plugins/discourse-hcaptcha/config/locales/server.sv.yml b/plugins/discourse-hcaptcha/config/locales/server.sv.yml
new file mode 100644
index 00000000000..b165aa293c0
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.sv.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+sv:
diff --git a/plugins/discourse-hcaptcha/config/locales/server.sw.yml b/plugins/discourse-hcaptcha/config/locales/server.sw.yml
new file mode 100644
index 00000000000..0d7cdd075bf
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.sw.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+sw:
diff --git a/plugins/discourse-hcaptcha/config/locales/server.te.yml b/plugins/discourse-hcaptcha/config/locales/server.te.yml
new file mode 100644
index 00000000000..03967bdbb07
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.te.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+te:
diff --git a/plugins/discourse-hcaptcha/config/locales/server.th.yml b/plugins/discourse-hcaptcha/config/locales/server.th.yml
new file mode 100644
index 00000000000..7de85ff91c4
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.th.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+th:
diff --git a/plugins/discourse-hcaptcha/config/locales/server.tr_TR.yml b/plugins/discourse-hcaptcha/config/locales/server.tr_TR.yml
new file mode 100644
index 00000000000..cef4a6cba26
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.tr_TR.yml
@@ -0,0 +1,19 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+tr_TR:
+ dashboard:
+ problem:
+ hcaptcha_configuration: "hCaptcha `site_key` veya `secret_key` yapılandırmanızda bir sorun var"
+ admin:
+ site_settings:
+ categories:
+ discourse_hcaptcha: "hCaptcha Eklentisi"
+ site_settings:
+ discourse_hcaptcha_enabled: "hCaptcha Eklentisini etkinleştirin. <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a> hesabı gerektirir."
+ hcaptcha_site_key: "<a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a> hesabınızdan hCaptcha Site Anahtarı"
+ hcaptcha_secret_key: "<a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a> hesabınızdan hCaptcha Gizli Anahtarı"
+ h_captcha_verification_failed: "hCaptcha doğrulaması başarısız oldu"
diff --git a/plugins/discourse-hcaptcha/config/locales/server.ug.yml b/plugins/discourse-hcaptcha/config/locales/server.ug.yml
new file mode 100644
index 00000000000..a6bf0185ae2
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.ug.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+ug:
diff --git a/plugins/discourse-hcaptcha/config/locales/server.uk.yml b/plugins/discourse-hcaptcha/config/locales/server.uk.yml
new file mode 100644
index 00000000000..f1390545d1d
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.uk.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+uk:
diff --git a/plugins/discourse-hcaptcha/config/locales/server.ur.yml b/plugins/discourse-hcaptcha/config/locales/server.ur.yml
new file mode 100644
index 00000000000..b4a9c21ee2f
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.ur.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+ur:
diff --git a/plugins/discourse-hcaptcha/config/locales/server.vi.yml b/plugins/discourse-hcaptcha/config/locales/server.vi.yml
new file mode 100644
index 00000000000..f629dcf5329
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.vi.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+vi:
diff --git a/plugins/discourse-hcaptcha/config/locales/server.zh_CN.yml b/plugins/discourse-hcaptcha/config/locales/server.zh_CN.yml
new file mode 100644
index 00000000000..0cd04afd697
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.zh_CN.yml
@@ -0,0 +1,19 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+zh_CN:
+ dashboard:
+ problem:
+ hcaptcha_configuration: "您的 hCaptcha `site_key` 或 `secret_key` 配置存在问题"
+ admin:
+ site_settings:
+ categories:
+ discourse_hcaptcha: "hCaptcha 插件"
+ site_settings:
+ discourse_hcaptcha_enabled: "启用 hCaptcha 插件。需要 <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a> 帐户。"
+ hcaptcha_site_key: "来自您的 <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a> 帐户的 hCaptcha 网站密钥"
+ hcaptcha_secret_key: "来自您的 <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a> 帐户的 hCaptcha 密钥"
+ h_captcha_verification_failed: "hCaptcha 验证失败"
diff --git a/plugins/discourse-hcaptcha/config/locales/server.zh_TW.yml b/plugins/discourse-hcaptcha/config/locales/server.zh_TW.yml
new file mode 100644
index 00000000000..7e15fab0018
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/locales/server.zh_TW.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+zh_TW:
diff --git a/plugins/discourse-hcaptcha/config/routes.rb b/plugins/discourse-hcaptcha/config/routes.rb
new file mode 100644
index 00000000000..c99a7736cb9
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/routes.rb
@@ -0,0 +1,5 @@
+# frozen_string_literal: true
+
+Discourse::Application.routes.draw { mount ::DiscourseHcaptcha::Engine, at: "hcaptcha" }
+
+DiscourseHcaptcha::Engine.routes.draw { post "/create" => "hcaptcha#create" }
diff --git a/plugins/discourse-hcaptcha/config/settings.yml b/plugins/discourse-hcaptcha/config/settings.yml
new file mode 100644
index 00000000000..555544925d1
--- /dev/null
+++ b/plugins/discourse-hcaptcha/config/settings.yml
@@ -0,0 +1,10 @@
+discourse_hcaptcha:
+ discourse_hcaptcha_enabled:
+ default: false
+ client: true
+ hcaptcha_site_key:
+ default: ''
+ client: true
+ hcaptcha_secret_key:
+ default: ''
+ client: false
diff --git a/plugins/discourse-hcaptcha/db/.gitkeep b/plugins/discourse-hcaptcha/db/.gitkeep
new file mode 100644
index 00000000000..e69de29bb2d
diff --git a/plugins/discourse-hcaptcha/lib/discourse_hcaptcha/create_users_controller_patch.rb b/plugins/discourse-hcaptcha/lib/discourse_hcaptcha/create_users_controller_patch.rb
new file mode 100644
index 00000000000..d1e23e046a5
--- /dev/null
+++ b/plugins/discourse-hcaptcha/lib/discourse_hcaptcha/create_users_controller_patch.rb
@@ -0,0 +1,61 @@
+# frozen_string_literal: true
+
+module DiscourseHcaptcha
+ module CreateUsersControllerPatch
+ H_CAPTCHA_VERIFICATION_URL = "https://hcaptcha.com/siteverify".freeze
+
+ extend ActiveSupport::Concern
+ included { before_action :check_h_captcha, only: [:create] }
+
+ def check_h_captcha
+ return unless SiteSetting.discourse_hcaptcha_enabled
+
+ h_captcha_token = fetch_h_captcha_token
+ raise Discourse::InvalidAccess.new if h_captcha_token.blank?
+
+ response = send_h_captcha_verification(h_captcha_token)
+
+ validate_h_captcha_response(response)
+ rescue => e
+ Rails.logger.warn("Error parsing hCaptcha response: #{e}")
+ fail_with("h_captcha_verification_failed")
+ end
+
+ private
+
+ def send_h_captcha_verification(h_captcha_token)
+ uri = URI.parse(H_CAPTCHA_VERIFICATION_URL)
+
+ http = FinalDestination::HTTP.new(uri.host, uri.port)
+ http.use_ssl = true
+
+ request = FinalDestination::HTTP::Post.new(uri.request_uri)
+ request.set_form_data(
+ { "secret" => SiteSetting.hcaptcha_secret_key, "response" => h_captcha_token },
+ )
+
+ http.request(request)
+ end
+
+ def fetch_h_captcha_token
+ temp_id = cookies.encrypted[:h_captcha_temp_id]
+ h_captcha_token = Discourse.redis.get("hCaptchaToken_#{temp_id}")
+
+ if temp_id.present?
+ Discourse.redis.del("hCaptchaToken_#{temp_id}")
+ cookies.delete(:h_captcha_temp_id)
+ end
+
+ h_captcha_token
+ end
+
+ def validate_h_captcha_response(response)
+ raise Discourse::InvalidAccess.new if response.code.to_i >= 500
+
+ response_json = JSON.parse(response.body)
+ if response_json["success"].nil? || response_json["success"] == false
+ raise Discourse::InvalidAccess.new
+ end
+ end
+ end
+end
diff --git a/plugins/discourse-hcaptcha/lib/discourse_hcaptcha/engine.rb b/plugins/discourse-hcaptcha/lib/discourse_hcaptcha/engine.rb
new file mode 100644
index 00000000000..a099a7730f5
--- /dev/null
+++ b/plugins/discourse-hcaptcha/lib/discourse_hcaptcha/engine.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+module ::DiscourseHcaptcha
+ class Engine < ::Rails::Engine
+ engine_name PLUGIN_NAME
+ isolate_namespace DiscourseHcaptcha
+ config.autoload_paths << File.join(config.root, "lib")
+ end
+end
diff --git a/plugins/discourse-hcaptcha/plugin.rb b/plugins/discourse-hcaptcha/plugin.rb
new file mode 100644
index 00000000000..a6548942415
--- /dev/null
+++ b/plugins/discourse-hcaptcha/plugin.rb
@@ -0,0 +1,27 @@
+# coding: utf-8
+# frozen_string_literal: true
+
+# name: discourse-hcaptcha
+# about: hCaptcha support for Discourse
+# version: 0.0.1
+# authors: Discourse
+# url: https://github.com/discourse/discourse/tree/main/plugins/discourse-hcaptcha
+# required_version: 2.7.0
+# meta_topic_id: 291383
+
+enabled_site_setting :discourse_hcaptcha_enabled
+
+extend_content_security_policy(script_src: %w[https://hcaptcha.com])
+
+module ::DiscourseHcaptcha
+ PLUGIN_NAME = "discourse-hcaptcha"
+end
+
+require_relative "lib/discourse_hcaptcha/engine"
+
+after_initialize do
+ reloadable_patch { UsersController.include(DiscourseHcaptcha::CreateUsersControllerPatch) }
+
+ require_relative "app/services/problem_check/hcaptcha_configuration.rb"
+ register_problem_check ProblemCheck::HcaptchaConfiguration
+end
diff --git a/plugins/discourse-hcaptcha/spec/.gitkeep b/plugins/discourse-hcaptcha/spec/.gitkeep
new file mode 100644
index 00000000000..e69de29bb2d
diff --git a/plugins/discourse-hcaptcha/spec/lib/discourse_h_captcha/create_users_controller_patch_spec.rb b/plugins/discourse-hcaptcha/spec/lib/discourse_h_captcha/create_users_controller_patch_spec.rb
new file mode 100644
index 00000000000..4a17c3ebb12
--- /dev/null
+++ b/plugins/discourse-hcaptcha/spec/lib/discourse_h_captcha/create_users_controller_patch_spec.rb
@@ -0,0 +1,82 @@
+# frozen_string_literal: true
+
+require "rails_helper"
+
+RSpec.describe "Users", type: :request do
+ describe "POST /u" do
+ let(:user_params) do
+ honeypot_magic(
+ {
+ name: "unicorn",
+ email: "[email protected]",
+ username: "awesomeunicorn",
+ password: "P4ssw0rd$$",
+ },
+ )
+ end
+
+ before do
+ SiteSetting.discourse_hcaptcha_enabled = true
+ SiteSetting.same_site_cookies = "Lax"
+ SiteSetting.hcaptcha_secret_key = "secret-key"
+
+ stub_request(:post, "https://hcaptcha.com/siteverify").with(
+ body: {
+ secret: SiteSetting.hcaptcha_secret_key,
+ response: "token-from-hCaptcha",
+ },
+ ).to_return(status: 200, body: '{"success":true}', headers: {})
+ end
+
+ context "when h_captcha verification fails" do
+ before do
+ stub_request(:post, "https://hcaptcha.com/siteverify").with(
+ body: {
+ secret: SiteSetting.hcaptcha_secret_key,
+ response: "token-from-hCaptcha",
+ },
+ ).to_return(status: 200, body: '{"success":false}', headers: {})
+ end
+
+ it "fails registration" do
+ post "/hcaptcha/create.json", params: { token: "token-from-hCaptcha" }
+ post "/u.json", params: user_params
+ expect(JSON.parse(response.body)["success"]).to be(false)
+ end
+ end
+
+ context "when h_captcha token is missing" do
+ it "fails registration" do
+ post "/u.json", params: user_params
+ expect(JSON.parse(response.body)["success"]).to be(false)
+ end
+ end
+
+ context "when h_captcha verification is successful" do
+ it "succeeds in registration" do
+ post "/hcaptcha/create.json", params: { token: "token-from-hCaptcha" }
+ post "/u.json", params: user_params
+ expect(JSON.parse(response.body)["success"]).to be(true)
+ end
+ end
+
+ context "when h_captcha is disabled" do
+ before { SiteSetting.discourse_hcaptcha_enabled = false }
+
+ it "succeeds in registration" do
+ post "/u.json", params: user_params
+ expect(JSON.parse(response.body)["success"]).to be(true)
+ end
+ end
+
+ private
+
+ def honeypot_magic(params)
+ get "/session/hp.json"
+ json = response.parsed_body
+ params[:password_confirmation] = json["value"]
+ params[:challenge] = json["challenge"].reverse
+ params
+ end
+ end
+end
diff --git a/plugins/discourse-hcaptcha/spec/services/problem_check/hcaptcha_configuration_spec.rb b/plugins/discourse-hcaptcha/spec/services/problem_check/hcaptcha_configuration_spec.rb
new file mode 100644
index 00000000000..119720c913f
--- /dev/null
+++ b/plugins/discourse-hcaptcha/spec/services/problem_check/hcaptcha_configuration_spec.rb
@@ -0,0 +1,73 @@
+# frozen_string_literal: true
+
+RSpec.describe ProblemCheck::HcaptchaConfiguration do
+ subject(:check) { described_class.new }
+
+ shared_examples "fails_problem_check" do
+ it do
+ expect(check).to have_a_problem.with_priority("high").with_message(
+ "There is a problem with your hCaptcha `site_key` or `secret_key` configuration",
+ )
+ end
+ end
+
+ shared_examples "passes_problem_check" do
+ it { expect(check).to be_chill_about_it }
+ end
+
+ context "when discourse_hcaptcha_enabled siteSetting is true" do
+ before { SiteSetting.discourse_hcaptcha_enabled = true }
+
+ describe "`hcaptcha_site_key` is not set" do
+ before { SiteSetting.hcaptcha_secret_key = "just a string" }
+
+ include_examples "fails_problem_check"
+ end
+
+ describe "`hcaptcha_secret_key` is not set" do
+ before { SiteSetting.hcaptcha_site_key = "just a string" }
+
+ include_examples "fails_problem_check"
+ end
+
+ describe "`hcaptcha_secret_key` and `hcaptcha_site_key` are not set" do
+ include_examples "fails_problem_check"
+ end
+
+ describe "`hcaptcha_secret_key` and `hcaptcha_site_key` are set" do
+ before do
+ SiteSetting.hcaptcha_secret_key = "just a string"
+ SiteSetting.hcaptcha_site_key = "just a string"
+ end
+ include_examples "passes_problem_check"
+ end
+ end
+
+ context "when discourse_hcaptcha_enabled siteSetting is false" do
+ before { SiteSetting.discourse_hcaptcha_enabled = false }
+
+ describe "`hcaptcha_site_key` is not set" do
+ before { SiteSetting.hcaptcha_secret_key = "just a string" }
+
+ include_examples "passes_problem_check"
+ end
+
+ describe "`hcaptcha_secret_key` is not set" do
+ before { SiteSetting.hcaptcha_site_key = "just a string" }
+
+ include_examples "passes_problem_check"
+ end
+
+ describe "`hcaptcha_secret_key` and `hcaptcha_site_key` are not set" do
+ include_examples "passes_problem_check"
+ end
+
+ describe "`hcaptcha_secret_key` and `hcaptcha_site_key` are set" do
+ before do
+ SiteSetting.hcaptcha_secret_key = "just a string"
+ SiteSetting.hcaptcha_site_key = "just a string"
+ end
+ include_examples "passes_problem_check"
+ end
+ end
+end
diff --git a/plugins/discourse-hcaptcha/spec/system/core_features_spec.rb b/plugins/discourse-hcaptcha/spec/system/core_features_spec.rb
new file mode 100644
index 00000000000..db86db283bd
--- /dev/null
+++ b/plugins/discourse-hcaptcha/spec/system/core_features_spec.rb
@@ -0,0 +1,7 @@
+# frozen_string_literal: true
+
+RSpec.describe "Core features", type: :system do
+ before { enable_current_plugin }
+
+ it_behaves_like "having working core features"
+end
diff --git a/plugins/discourse-hcaptcha/test/javascripts/.gitkeep b/plugins/discourse-hcaptcha/test/javascripts/.gitkeep
new file mode 100644
index 00000000000..e69de29bb2d
diff --git a/translator.yml b/translator.yml
index 3e7df7396dd..fe66f802b73 100644
--- a/translator.yml
+++ b/translator.yml
@@ -234,3 +234,10 @@ files:
- source_path: plugins/discourse-subscriptions/config/locales/server.en.yml
destination_path: plugins/subscriptions/server.yml
label: subscriptions
+
+ - source_path: plugins/discourse-hcaptcha/config/locales/client.en.yml
+ destination_path: plugins/hcaptcha/client.yml
+ label: hcaptcha
+ - source_path: plugins/discourse-hcaptcha/config/locales/server.en.yml
+ destination_path: plugins/hcaptcha/server.yml
+ label: hcaptcha