Skip to content

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

DEV: Plugin rename discourse captcha (#39350)

Juan David Martínez Cubillos04b5530f3428
diff --git a/.github/labeler.yml b/.github/labeler.yml
index 287d229a74e..0d9e7b3a4f3 100644
--- a/.github/labeler.yml
+++ b/.github/labeler.yml
@@ -98,9 +98,9 @@ discourse-subscriptions:
- changed-files:
- any-glob-to-any-file: plugins/discourse-subscriptions/**/*
-discourse-hcaptcha:
+discourse-captcha:
- changed-files:
- - any-glob-to-any-file: plugins/discourse-hcaptcha/**/*
+ - any-glob-to-any-file: plugins/discourse-captcha/**/*
discourse-gamification:
- changed-files:
diff --git a/.gitignore b/.gitignore
index d2e003a71a1..8946b3a5fb5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -62,7 +62,7 @@
!/plugins/discourse-user-notes
!/plugins/discourse-assign
!/plugins/discourse-subscriptions
-!/plugins/discourse-hcaptcha
+!/plugins/discourse-captcha
!/plugins/discourse-gamification
!/plugins/discourse-calendar
!/plugins/discourse-policy
diff --git a/config/official_plugins.json b/config/official_plugins.json
index ca0a46faeaa..1bb207fdb2d 100644
--- a/config/official_plugins.json
+++ b/config/official_plugins.json
@@ -28,7 +28,7 @@
"discourse-gradle-issue",
"discourse-graphviz",
"discourse-group-tracker",
- "discourse-hcaptcha",
+ "discourse-captcha",
"discourse-invite-tokens",
"discourse-jira",
"discourse-lazy-videos",
diff --git a/migrations/core/config/intermediate_db.yml b/migrations/core/config/intermediate_db.yml
index df1c4838016..9a3ba06048f 100644
--- a/migrations/core/config/intermediate_db.yml
+++ b/migrations/core/config/intermediate_db.yml
@@ -596,7 +596,7 @@ plugins:
- "discourse-gamification"
- "discourse-github"
- "discourse-graphviz"
- - "discourse-hcaptcha"
+ - "discourse-captcha"
- "discourse-lazy-videos"
- "discourse-local-dates"
- "discourse-login-with-amazon"
diff --git a/migrations/tooling/config/schema/plugin_manifest.yml b/migrations/tooling/config/schema/plugin_manifest.yml
index 546f77285c1..b54fdd99dbb 100644
--- a/migrations/tooling/config/schema/plugin_manifest.yml
+++ b/migrations/tooling/config/schema/plugin_manifest.yml
@@ -226,12 +226,12 @@ plugin_checksums:
discourse-assign: 7a7a36e8ac0214e8a6aca1a1ed9899aa
discourse-cakeday: a5bb91366c8dc8d267088eb0c2679187
discourse-calendar: 07aa9951f5fde7daf03be9edfbda4dec
+ discourse-captcha: fd538c1338062354276ccfda4cbafd55
discourse-chat-integration: ffa3bf5dba9089491d2fc02971eb96f8
discourse-data-explorer: ba288745bea628996590debdf02fbaa4
discourse-gamification: 633256e241b030fddcc059076f7474f8
discourse-github: 3bd17b2c09828e232e7565edbf2c746f
discourse-graphviz: 8a1835520fbf8f7f5d1ef8a25d737e20
- discourse-hcaptcha: fd538c1338062354276ccfda4cbafd55
discourse-lazy-videos: a916a4f265d1cc6f99a3e53f5bcd1e9e
discourse-local-dates: 18d3ec627bf8546fe13bae24c6a5bb6c
discourse-microsoft-auth: 3a95a5b50edc156ad06f40aadda7d6bc
diff --git a/plugins/discourse-captcha/README.md b/plugins/discourse-captcha/README.md
new file mode 100644
index 00000000000..af093d5103a
--- /dev/null
+++ b/plugins/discourse-captcha/README.md
@@ -0,0 +1,40 @@
+# Discourse Captcha Plugin
+
+## Overview
+
+This plugin integrates captcha verification into the sign-up form of Discourse forums to enhance security and bot protection. The plugin supports two captcha providers:
+
+- **hCaptcha**: Privacy-centric captcha service
+- **reCaptcha**: Google's captcha service
+
+You can enable either provider based on your preference and requirements.
+
+## Installation
+
+### For hCaptcha
+
+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. **Configure Plugin Settings**:
+ - Log into your Discourse admin panel.
+ - Navigate to `Admin` > `Settings` > `Plugins` > `Captcha Plugin`.
+ - Enable the master toggle: `discourse_captcha_enabled`
+ - Select `hcaptcha` in the `discourse_captcha_provider` setting.
+ - Add the site key and secret key you obtained from hCaptcha.
+
+### For reCaptcha
+
+1. **Create a reCaptcha Account**:
+ - Visit [Google reCaptcha](https://www.google.com/recaptcha) to register your site. After registering, you'll receive a site key and a secret key.
+
+2. **Configure Plugin Settings**:
+ - Log into your Discourse admin panel.
+ - Navigate to `Admin` > `Settings` > `Plugins` > `Captcha Plugin`.
+ - Enable the master toggle: `discourse_captcha_enabled`
+ - Select `recaptcha` in the `discourse_captcha_provider` setting.
+ - Add the site key and secret key you obtained from reCaptcha.
+
+## Migration Notes
+
+If you were using this plugin when it was named "discourse-hcaptcha", your existing settings have been automatically migrated.
diff --git a/plugins/discourse-hcaptcha/app/controllers/discourse_hcaptcha/captcha_controller.rb b/plugins/discourse-captcha/app/controllers/discourse_captcha/captcha_controller.rb
similarity index 95%
rename from plugins/discourse-hcaptcha/app/controllers/discourse_hcaptcha/captcha_controller.rb
rename to plugins/discourse-captcha/app/controllers/discourse_captcha/captcha_controller.rb
index 715ff7a3935..546aafb08b9 100644
--- a/plugins/discourse-hcaptcha/app/controllers/discourse_hcaptcha/captcha_controller.rb
+++ b/plugins/discourse-captcha/app/controllers/discourse_captcha/captcha_controller.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-module DiscourseHcaptcha
+module DiscourseCaptcha
class CaptchaController < ::ApplicationController
requires_plugin PLUGIN_NAME
diff --git a/plugins/discourse-hcaptcha/app/controllers/discourse_hcaptcha/hcaptcha_controller.rb b/plugins/discourse-captcha/app/controllers/discourse_captcha/hcaptcha_controller.rb
similarity index 80%
rename from plugins/discourse-hcaptcha/app/controllers/discourse_hcaptcha/hcaptcha_controller.rb
rename to plugins/discourse-captcha/app/controllers/discourse_captcha/hcaptcha_controller.rb
index 6e17391e280..d1414632185 100644
--- a/plugins/discourse-hcaptcha/app/controllers/discourse_hcaptcha/hcaptcha_controller.rb
+++ b/plugins/discourse-captcha/app/controllers/discourse_captcha/hcaptcha_controller.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
-module DiscourseHcaptcha
- class HcaptchaController < DiscourseHcaptcha::CaptchaController
+module DiscourseCaptcha
+ class HcaptchaController < DiscourseCaptcha::CaptchaController
requires_plugin PLUGIN_NAME
private
diff --git a/plugins/discourse-hcaptcha/app/controllers/discourse_hcaptcha/recaptcha_controller.rb b/plugins/discourse-captcha/app/controllers/discourse_captcha/recaptcha_controller.rb
similarity index 62%
rename from plugins/discourse-hcaptcha/app/controllers/discourse_hcaptcha/recaptcha_controller.rb
rename to plugins/discourse-captcha/app/controllers/discourse_captcha/recaptcha_controller.rb
index 2ea11455c6d..97f90bee719 100644
--- a/plugins/discourse-hcaptcha/app/controllers/discourse_hcaptcha/recaptcha_controller.rb
+++ b/plugins/discourse-captcha/app/controllers/discourse_captcha/recaptcha_controller.rb
@@ -1,13 +1,13 @@
# frozen_string_literal: true
-module DiscourseHcaptcha
- class RecaptchaController < DiscourseHcaptcha::CaptchaController
+module DiscourseCaptcha
+ class RecaptchaController < DiscourseCaptcha::CaptchaController
requires_plugin PLUGIN_NAME
private
def ensure_config
- unless SiteSetting.discourse_captcha_provider == CaptchaProvider::RECAPTCHA
+ if SiteSetting.discourse_captcha_provider != CaptchaProvider::RECAPTCHA
raise Discourse::NotFound
end
raise Discourse::InvalidParameters.new(:token) if params[:token].blank?
diff --git a/plugins/discourse-hcaptcha/app/services/problem_check/hcaptcha_configuration.rb b/plugins/discourse-captcha/app/services/problem_check/hcaptcha_configuration.rb
similarity index 80%
rename from plugins/discourse-hcaptcha/app/services/problem_check/hcaptcha_configuration.rb
rename to plugins/discourse-captcha/app/services/problem_check/hcaptcha_configuration.rb
index 06c607fec13..afd3317f188 100644
--- a/plugins/discourse-hcaptcha/app/services/problem_check/hcaptcha_configuration.rb
+++ b/plugins/discourse-captcha/app/services/problem_check/hcaptcha_configuration.rb
@@ -5,7 +5,7 @@ class ProblemCheck::HcaptchaConfiguration < ProblemCheck
def call
if SiteSetting.discourse_captcha_enabled &&
- SiteSetting.discourse_captcha_provider == DiscourseHcaptcha::CaptchaProvider::HCAPTCHA &&
+ SiteSetting.discourse_captcha_provider == DiscourseCaptcha::CaptchaProvider::HCAPTCHA &&
!hcaptcha_credentials_present?
return problem
end
diff --git a/plugins/discourse-hcaptcha/app/services/problem_check/recaptcha_configuration.rb b/plugins/discourse-captcha/app/services/problem_check/recaptcha_configuration.rb
similarity index 80%
rename from plugins/discourse-hcaptcha/app/services/problem_check/recaptcha_configuration.rb
rename to plugins/discourse-captcha/app/services/problem_check/recaptcha_configuration.rb
index 11c90a20388..47dc65093db 100644
--- a/plugins/discourse-hcaptcha/app/services/problem_check/recaptcha_configuration.rb
+++ b/plugins/discourse-captcha/app/services/problem_check/recaptcha_configuration.rb
@@ -5,7 +5,7 @@ class ProblemCheck::RecaptchaConfiguration < ProblemCheck
def call
if SiteSetting.discourse_captcha_enabled &&
- SiteSetting.discourse_captcha_provider == DiscourseHcaptcha::CaptchaProvider::RECAPTCHA &&
+ SiteSetting.discourse_captcha_provider == DiscourseCaptcha::CaptchaProvider::RECAPTCHA &&
!recaptcha_credentials_present?
return problem
end
diff --git a/plugins/discourse-hcaptcha/assets/javascripts/discourse/components/base-captcha.gjs b/plugins/discourse-captcha/assets/javascripts/discourse/components/base-captcha.gjs
similarity index 100%
rename from plugins/discourse-hcaptcha/assets/javascripts/discourse/components/base-captcha.gjs
rename to plugins/discourse-captcha/assets/javascripts/discourse/components/base-captcha.gjs
diff --git a/plugins/discourse-hcaptcha/assets/javascripts/discourse/components/h-captcha.gjs b/plugins/discourse-captcha/assets/javascripts/discourse/components/h-captcha.gjs
similarity index 100%
rename from plugins/discourse-hcaptcha/assets/javascripts/discourse/components/h-captcha.gjs
rename to plugins/discourse-captcha/assets/javascripts/discourse/components/h-captcha.gjs
diff --git a/plugins/discourse-hcaptcha/assets/javascripts/discourse/components/re-captcha.gjs b/plugins/discourse-captcha/assets/javascripts/discourse/components/re-captcha.gjs
similarity index 100%
rename from plugins/discourse-hcaptcha/assets/javascripts/discourse/components/re-captcha.gjs
rename to plugins/discourse-captcha/assets/javascripts/discourse/components/re-captcha.gjs
diff --git a/plugins/discourse-hcaptcha/assets/javascripts/discourse/connectors/create-account-after-user-fields/captcha-fields-connector.gjs b/plugins/discourse-captcha/assets/javascripts/discourse/connectors/create-account-after-user-fields/captcha-fields-connector.gjs
similarity index 100%
rename from plugins/discourse-hcaptcha/assets/javascripts/discourse/connectors/create-account-after-user-fields/captcha-fields-connector.gjs
rename to plugins/discourse-captcha/assets/javascripts/discourse/connectors/create-account-after-user-fields/captcha-fields-connector.gjs
diff --git a/plugins/discourse-hcaptcha/assets/javascripts/discourse/initializers/hcaptcha-admin-plugin-configuration-nav.js b/plugins/discourse-captcha/assets/javascripts/discourse/initializers/hcaptcha-admin-plugin-configuration-nav.js
similarity index 90%
rename from plugins/discourse-hcaptcha/assets/javascripts/discourse/initializers/hcaptcha-admin-plugin-configuration-nav.js
rename to plugins/discourse-captcha/assets/javascripts/discourse/initializers/hcaptcha-admin-plugin-configuration-nav.js
index 4bf9a3fb3a2..120ce6879e7 100644
--- a/plugins/discourse-hcaptcha/assets/javascripts/discourse/initializers/hcaptcha-admin-plugin-configuration-nav.js
+++ b/plugins/discourse-captcha/assets/javascripts/discourse/initializers/hcaptcha-admin-plugin-configuration-nav.js
@@ -1,6 +1,6 @@
import { withPluginApi } from "discourse/lib/plugin-api";
-const PLUGIN_ID = "discourse-hcaptcha";
+const PLUGIN_ID = "discourse-captcha";
export default {
name: "hcaptcha-admin-plugin-configuration-nav",
diff --git a/plugins/discourse-hcaptcha/assets/javascripts/discourse/services/captcha-service.js b/plugins/discourse-captcha/assets/javascripts/discourse/services/captcha-service.js
similarity index 100%
rename from plugins/discourse-hcaptcha/assets/javascripts/discourse/services/captcha-service.js
rename to plugins/discourse-captcha/assets/javascripts/discourse/services/captcha-service.js
diff --git a/plugins/discourse-hcaptcha/assets/javascripts/pre-initializers/h-captcha.js b/plugins/discourse-captcha/assets/javascripts/pre-initializers/h-captcha.js
similarity index 100%
rename from plugins/discourse-hcaptcha/assets/javascripts/pre-initializers/h-captcha.js
rename to plugins/discourse-captcha/assets/javascripts/pre-initializers/h-captcha.js
diff --git a/plugins/discourse-hcaptcha/config/locales/client.en.yml b/plugins/discourse-captcha/config/locales/client.en.yml
similarity index 89%
rename from plugins/discourse-hcaptcha/config/locales/client.en.yml
rename to plugins/discourse-captcha/config/locales/client.en.yml
index 856cba13552..dad1b4157a5 100644
--- a/plugins/discourse-hcaptcha/config/locales/client.en.yml
+++ b/plugins/discourse-captcha/config/locales/client.en.yml
@@ -10,4 +10,4 @@ en:
admin:
site_settings:
categories:
- discourse_hcaptcha: "Discourse hCaptcha"
+ discourse_captcha: "Discourse Captcha"
diff --git a/plugins/discourse-hcaptcha/config/locales/server.en.yml b/plugins/discourse-captcha/config/locales/server.en.yml
similarity index 96%
rename from plugins/discourse-hcaptcha/config/locales/server.en.yml
rename to plugins/discourse-captcha/config/locales/server.en.yml
index 253fcb4eccd..8d9c02d25c6 100644
--- a/plugins/discourse-hcaptcha/config/locales/server.en.yml
+++ b/plugins/discourse-captcha/config/locales/server.en.yml
@@ -7,7 +7,7 @@ en:
admin:
site_settings:
categories:
- discourse_hcaptcha: "hCaptcha Plugin"
+ discourse_captcha: "Captcha Plugin"
site_settings:
discourse_captcha_enabled: "Enable captcha verification for new user registrations. Requires configuring either hCaptcha or reCaptcha below."
diff --git a/plugins/discourse-captcha/config/routes.rb b/plugins/discourse-captcha/config/routes.rb
new file mode 100644
index 00000000000..bcf293a4c80
--- /dev/null
+++ b/plugins/discourse-captcha/config/routes.rb
@@ -0,0 +1,8 @@
+# frozen_string_literal: true
+
+Discourse::Application.routes.draw { mount DiscourseCaptcha::Engine, at: "captcha" }
+
+DiscourseCaptcha::Engine.routes.draw do
+ post "/hcaptcha/create", to: "hcaptcha#create"
+ post "/recaptcha/create", to: "recaptcha#create"
+end
diff --git a/plugins/discourse-hcaptcha/config/settings.yml b/plugins/discourse-captcha/config/settings.yml
similarity index 95%
rename from plugins/discourse-hcaptcha/config/settings.yml
rename to plugins/discourse-captcha/config/settings.yml
index e5f1b1c4481..fd641aada45 100644
--- a/plugins/discourse-hcaptcha/config/settings.yml
+++ b/plugins/discourse-captcha/config/settings.yml
@@ -1,4 +1,4 @@
-discourse_hcaptcha:
+discourse_captcha:
discourse_captcha_enabled:
default: false
client: true
diff --git a/plugins/discourse-hcaptcha/db/migrate/20260422000000_migrate_hcaptcha_enabled_to_captcha_settings.rb b/plugins/discourse-captcha/db/migrate/20260422000000_migrate_hcaptcha_enabled_to_captcha_settings.rb
similarity index 100%
rename from plugins/discourse-hcaptcha/db/migrate/20260422000000_migrate_hcaptcha_enabled_to_captcha_settings.rb
rename to plugins/discourse-captcha/db/migrate/20260422000000_migrate_hcaptcha_enabled_to_captcha_settings.rb
diff --git a/plugins/discourse-hcaptcha/lib/discourse_hcaptcha/captcha_provider.rb b/plugins/discourse-captcha/lib/discourse_captcha/captcha_provider.rb
similarity index 96%
rename from plugins/discourse-hcaptcha/lib/discourse_hcaptcha/captcha_provider.rb
rename to plugins/discourse-captcha/lib/discourse_captcha/captcha_provider.rb
index 1621558810e..94a85f4c074 100644
--- a/plugins/discourse-hcaptcha/lib/discourse_hcaptcha/captcha_provider.rb
+++ b/plugins/discourse-captcha/lib/discourse_captcha/captcha_provider.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-module DiscourseHcaptcha
+module DiscourseCaptcha
class CaptchaProvider
HCAPTCHA = "hcaptcha"
RECAPTCHA = "recaptcha"
diff --git a/plugins/discourse-hcaptcha/lib/discourse_hcaptcha/create_users_controller_patch.rb b/plugins/discourse-captcha/lib/discourse_captcha/create_users_controller_patch.rb
similarity index 93%
rename from plugins/discourse-hcaptcha/lib/discourse_hcaptcha/create_users_controller_patch.rb
rename to plugins/discourse-captcha/lib/discourse_captcha/create_users_controller_patch.rb
index 189831d9fae..03f72a9a68e 100644
--- a/plugins/discourse-hcaptcha/lib/discourse_hcaptcha/create_users_controller_patch.rb
+++ b/plugins/discourse-captcha/lib/discourse_captcha/create_users_controller_patch.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-module DiscourseHcaptcha
+module DiscourseCaptcha
module CreateUsersControllerPatch
extend ActiveSupport::Concern
included { before_action :check_captcha, only: [:create] }
@@ -31,11 +31,11 @@ module DiscourseHcaptcha
case SiteSetting.discourse_captcha_provider
when CaptchaProvider::HCAPTCHA
if SiteSetting.hcaptcha_site_key.present? && SiteSetting.hcaptcha_secret_key.present?
- DiscourseHcaptcha::HcaptchaProvider.new
+ DiscourseCaptcha::HcaptchaProvider.new
end
when CaptchaProvider::RECAPTCHA
if SiteSetting.recaptcha_site_key.present? && SiteSetting.recaptcha_secret_key.present?
- DiscourseHcaptcha::RecaptchaProvider.new
+ DiscourseCaptcha::RecaptchaProvider.new
end
end
end
diff --git a/plugins/discourse-hcaptcha/lib/discourse_hcaptcha/engine.rb b/plugins/discourse-captcha/lib/discourse_captcha/engine.rb
similarity index 71%
rename from plugins/discourse-hcaptcha/lib/discourse_hcaptcha/engine.rb
rename to plugins/discourse-captcha/lib/discourse_captcha/engine.rb
index af574807c34..63fe818b666 100644
--- a/plugins/discourse-hcaptcha/lib/discourse_hcaptcha/engine.rb
+++ b/plugins/discourse-captcha/lib/discourse_captcha/engine.rb
@@ -1,9 +1,9 @@
# frozen_string_literal: true
-module DiscourseHcaptcha
+module DiscourseCaptcha
class Engine < ::Rails::Engine
engine_name PLUGIN_NAME
- isolate_namespace DiscourseHcaptcha
+ isolate_namespace DiscourseCaptcha
config.autoload_paths << File.join(config.root, "lib")
end
end
diff --git a/plugins/discourse-hcaptcha/lib/discourse_hcaptcha/hcaptcha_provider.rb b/plugins/discourse-captcha/lib/discourse_captcha/hcaptcha_provider.rb
similarity index 95%
rename from plugins/discourse-hcaptcha/lib/discourse_hcaptcha/hcaptcha_provider.rb
rename to plugins/discourse-captcha/lib/discourse_captcha/hcaptcha_provider.rb
index 4f0f30d3afd..f5409afda37 100644
--- a/plugins/discourse-hcaptcha/lib/discourse_hcaptcha/hcaptcha_provider.rb
+++ b/plugins/discourse-captcha/lib/discourse_captcha/hcaptcha_provider.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-module DiscourseHcaptcha
+module DiscourseCaptcha
class HcaptchaProvider < CaptchaProvider
CAPTCHA_VERIFICATION_URL = "https://hcaptcha.com/siteverify"
diff --git a/plugins/discourse-hcaptcha/lib/discourse_hcaptcha/recaptcha_provider.rb b/plugins/discourse-captcha/lib/discourse_captcha/recaptcha_provider.rb
similarity index 95%
rename from plugins/discourse-hcaptcha/lib/discourse_hcaptcha/recaptcha_provider.rb
rename to plugins/discourse-captcha/lib/discourse_captcha/recaptcha_provider.rb
index 23decbfa535..a7896a160bd 100644
--- a/plugins/discourse-hcaptcha/lib/discourse_hcaptcha/recaptcha_provider.rb
+++ b/plugins/discourse-captcha/lib/discourse_captcha/recaptcha_provider.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-module DiscourseHcaptcha
+module DiscourseCaptcha
class RecaptchaProvider < CaptchaProvider
CAPTCHA_VERIFICATION_URL = "https://www.google.com/recaptcha/api/siteverify"
diff --git a/plugins/discourse-hcaptcha/package.json b/plugins/discourse-captcha/package.json
similarity index 100%
rename from plugins/discourse-hcaptcha/package.json
rename to plugins/discourse-captcha/package.json
diff --git a/plugins/discourse-hcaptcha/plugin.rb b/plugins/discourse-captcha/plugin.rb
similarity index 60%
rename from plugins/discourse-hcaptcha/plugin.rb
rename to plugins/discourse-captcha/plugin.rb
index 33116b42af1..41d09b25411 100644
--- a/plugins/discourse-hcaptcha/plugin.rb
+++ b/plugins/discourse-captcha/plugin.rb
@@ -1,11 +1,11 @@
# coding: utf-8
# frozen_string_literal: true
-# name: discourse-hcaptcha
-# about: hCaptcha support for Discourse
+# name: discourse-captcha
+# about: Captcha support for Discourse (hCaptcha and reCaptcha)
# version: 0.0.1
# authors: Discourse
-# url: https://github.com/discourse/discourse/tree/main/plugins/discourse-hcaptcha
+# url: https://github.com/discourse/discourse/tree/main/plugins/discourse-captcha
# required_version: 2.7.0
# meta_topic_id: 291383
@@ -13,15 +13,15 @@ enabled_site_setting :discourse_captcha_enabled
register_svg_icon "hand"
-module ::DiscourseHcaptcha
- PLUGIN_NAME = "discourse-hcaptcha"
+module ::DiscourseCaptcha
+ PLUGIN_NAME = "discourse-captcha"
end
-require_relative "lib/discourse_hcaptcha/engine"
-require_relative "lib/discourse_hcaptcha/captcha_provider"
+require_relative "lib/discourse_captcha/engine"
+require_relative "lib/discourse_captcha/captcha_provider"
after_initialize do
- reloadable_patch { UsersController.include(DiscourseHcaptcha::CreateUsersControllerPatch) }
+ reloadable_patch { UsersController.include(DiscourseCaptcha::CreateUsersControllerPatch) }
require_relative "app/services/problem_check/hcaptcha_configuration"
require_relative "app/services/problem_check/recaptcha_configuration"
diff --git a/plugins/discourse-hcaptcha/spec/lib/discourse_h_captcha/create_users_controller_patch_spec.rb b/plugins/discourse-captcha/spec/lib/discourse_captcha/create_users_controller_patch_spec.rb
similarity index 79%
rename from plugins/discourse-hcaptcha/spec/lib/discourse_h_captcha/create_users_controller_patch_spec.rb
rename to plugins/discourse-captcha/spec/lib/discourse_captcha/create_users_controller_patch_spec.rb
index b5edb5dd9d8..4d1c2842c05 100644
--- a/plugins/discourse-hcaptcha/spec/lib/discourse_h_captcha/create_users_controller_patch_spec.rb
+++ b/plugins/discourse-captcha/spec/lib/discourse_captcha/create_users_controller_patch_spec.rb
@@ -15,7 +15,7 @@ RSpec.describe "Users", type: :request do
before do
SiteSetting.enable_local_logins = true
SiteSetting.discourse_captcha_enabled = true
- SiteSetting.discourse_captcha_provider = DiscourseHcaptcha::CaptchaProvider::NONE
+ SiteSetting.discourse_captcha_provider = DiscourseCaptcha::CaptchaProvider::NONE
SiteSetting.same_site_cookies = "Lax"
@@ -25,7 +25,7 @@ RSpec.describe "Users", type: :request do
SiteSetting.recaptcha_site_key = "site-key"
SiteSetting.recaptcha_secret_key = "secret-key"
- stub_request(:post, DiscourseHcaptcha::HcaptchaProvider::CAPTCHA_VERIFICATION_URL).with(
+ stub_request(:post, DiscourseCaptcha::HcaptchaProvider::CAPTCHA_VERIFICATION_URL).with(
body: {
secret: SiteSetting.hcaptcha_secret_key,
response: "token-from-hCaptcha",
@@ -36,8 +36,8 @@ RSpec.describe "Users", type: :request do
context "when captcha verification fails" do
context "when using hCaptcha" do
before do
- SiteSetting.discourse_captcha_provider = DiscourseHcaptcha::CaptchaProvider::HCAPTCHA
- stub_request(:post, DiscourseHcaptcha::HcaptchaProvider::CAPTCHA_VERIFICATION_URL).with(
+ SiteSetting.discourse_captcha_provider = DiscourseCaptcha::CaptchaProvider::HCAPTCHA
+ stub_request(:post, DiscourseCaptcha::HcaptchaProvider::CAPTCHA_VERIFICATION_URL).with(
body: {
secret: SiteSetting.hcaptcha_secret_key,
response: "token-from-hCaptcha",
@@ -54,9 +54,9 @@ RSpec.describe "Users", type: :request do
context "when using reCaptcha" do
before do
- SiteSetting.discourse_captcha_provider = DiscourseHcaptcha::CaptchaProvider::RECAPTCHA
+ SiteSetting.discourse_captcha_provider = DiscourseCaptcha::CaptchaProvider::RECAPTCHA
- stub_request(:post, DiscourseHcaptcha::RecaptchaProvider::CAPTCHA_VERIFICATION_URL).with(
+ stub_request(:post, DiscourseCaptcha::RecaptchaProvider::CAPTCHA_VERIFICATION_URL).with(
body: {
secret: SiteSetting.recaptcha_secret_key,
response: "token-from-reCaptcha",
@@ -75,7 +75,7 @@ RSpec.describe "Users", type: :request do
context "when captcha token is missing" do
context "when using hCaptcha" do
before do
- SiteSetting.discourse_captcha_provider = DiscourseHcaptcha::CaptchaProvider::HCAPTCHA
+ SiteSetting.discourse_captcha_provider = DiscourseCaptcha::CaptchaProvider::HCAPTCHA
end
it "fails registration" do
@@ -86,7 +86,7 @@ RSpec.describe "Users", type: :request do
context "when using reCaptcha" do
before do
- SiteSetting.discourse_captcha_provider = DiscourseHcaptcha::CaptchaProvider::RECAPTCHA
+ SiteSetting.discourse_captcha_provider = DiscourseCaptcha::CaptchaProvider::RECAPTCHA
end
it "fails registration" do
@@ -99,9 +99,9 @@ RSpec.describe "Users", type: :request do
context "when captcha verification is successful" do
context "when using hCaptcha" do
before do
- SiteSetting.discourse_captcha_provider = DiscourseHcaptcha::CaptchaProvider::HCAPTCHA
+ SiteSetting.discourse_captcha_provider = DiscourseCaptcha::CaptchaProvider::HCAPTCHA
- stub_request(:post, DiscourseHcaptcha::HcaptchaProvider::CAPTCHA_VERIFICATION_URL).with(
+ stub_request(:post, DiscourseCaptcha::HcaptchaProvider::CAPTCHA_VERIFICATION_URL).with(
body: {
"response" => "token-from-hCaptcha",
"secret" => SiteSetting.hcaptcha_secret_key,
@@ -119,9 +119,9 @@ RSpec.describe "Users", type: :request do
context "when using reCaptcha" do
before do
- SiteSetting.discourse_captcha_provider = DiscourseHcaptcha::CaptchaProvider::RECAPTCHA
+ SiteSetting.discourse_captcha_provider = DiscourseCaptcha::CaptchaProvider::RECAPTCHA
- stub_request(:post, DiscourseHcaptcha::RecaptchaProvider::CAPTCHA_VERIFICATION_URL).with(
+ stub_request(:post, DiscourseCaptcha::RecaptchaProvider::CAPTCHA_VERIFICATION_URL).with(
body: {
"response" => "token-from-reCaptcha",
"secret" => SiteSetting.recaptcha_secret_key,
@@ -140,7 +140,7 @@ RSpec.describe "Users", type: :request do
context "when site is login-required" do
before do
SiteSetting.login_required = true
- SiteSetting.discourse_captcha_provider = DiscourseHcaptcha::CaptchaProvider::HCAPTCHA
+ SiteSetting.discourse_captcha_provider = DiscourseCaptcha::CaptchaProvider::HCAPTCHA
end
it "succeeds in registration" do
@@ -162,7 +162,7 @@ RSpec.describe "Users", type: :request do
end
context "when captcha provider is set to none" do
- before { SiteSetting.discourse_captcha_provider = DiscourseHcaptcha::CaptchaProvider::NONE }
+ before { SiteSetting.discourse_captcha_provider = DiscourseCaptcha::CaptchaProvider::NONE }
it "succeeds in registration without captcha" do
post "/u.json", params: user_params
@@ -173,7 +173,7 @@ RSpec.describe "Users", type: :request do
context "when captcha is misconfigured" do
context "when hCaptcha is selected but keys are missing" do
before do
- SiteSetting.discourse_captcha_provider = DiscourseHcaptcha::CaptchaProvider::HCAPTCHA
+ SiteSetting.discourse_captcha_provider = DiscourseCaptcha::CaptchaProvider::HCAPTCHA
SiteSetting.hcaptcha_site_key = ""
SiteSetting.hcaptcha_secret_key = ""
end
@@ -187,7 +187,7 @@ RSpec.describe "Users", type: :request do
context "when reCaptcha is selected but keys are missing" do
before do
- SiteSetting.discourse_captcha_provider = DiscourseHcaptcha::CaptchaProvider::RECAPTCHA
+ SiteSetting.discourse_captcha_provider = DiscourseCaptcha::CaptchaProvider::RECAPTCHA
SiteSetting.recaptcha_site_key = ""
SiteSetting.recaptcha_secret_key = ""
end
@@ -203,9 +203,9 @@ RSpec.describe "Users", type: :request do
context "when captcha provider returns server error" do
context "when using hCaptcha" do
before do
- SiteSetting.discourse_captcha_provider = DiscourseHcaptcha::CaptchaProvider::HCAPTCHA
+ SiteSetting.discourse_captcha_provider = DiscourseCaptcha::CaptchaProvider::HCAPTCHA
- stub_request(:post, DiscourseHcaptcha::HcaptchaProvider::CAPTCHA_VERIFICATION_URL).with(
+ stub_request(:post, DiscourseCaptcha::HcaptchaProvider::CAPTCHA_VERIFICATION_URL).with(
body: {
secret: SiteSetting.hcaptcha_secret_key,
response: "token-from-hCaptcha",
@@ -222,9 +222,9 @@ RSpec.describe "Users", type: :request do
context "when using reCaptcha" do
before do
- SiteSetting.discourse_captcha_provider = DiscourseHcaptcha::CaptchaProvider::RECAPTCHA
+ SiteSetting.discourse_captcha_provider = DiscourseCaptcha::CaptchaProvider::RECAPTCHA
- stub_request(:post, DiscourseHcaptcha::RecaptchaProvider::CAPTCHA_VERIFICATION_URL).with(
+ stub_request(:post, DiscourseCaptcha::RecaptchaProvider::CAPTCHA_VERIFICATION_URL).with(
body: {
secret: SiteSetting.recaptcha_secret_key,
response: "token-from-reCaptcha",
@@ -243,9 +243,9 @@ RSpec.describe "Users", type: :request do
context "when captcha provider returns malformed response" do
context "when using hCaptcha" do
before do
- SiteSetting.discourse_captcha_provider = DiscourseHcaptcha::CaptchaProvider::HCAPTCHA
+ SiteSetting.discourse_captcha_provider = DiscourseCaptcha::CaptchaProvider::HCAPTCHA
- stub_request(:post, DiscourseHcaptcha::HcaptchaProvider::CAPTCHA_VERIFICATION_URL).with(
+ stub_request(:post, DiscourseCaptcha::HcaptchaProvider::CAPTCHA_VERIFICATION_URL).with(
body: {
secret: SiteSetting.hcaptcha_secret_key,
response: "token-from-hCaptcha",
@@ -262,9 +262,9 @@ RSpec.describe "Users", type: :request do
context "when using reCaptcha" do
before do
- SiteSetting.discourse_captcha_provider = DiscourseHcaptcha::CaptchaProvider::RECAPTCHA
+ SiteSetting.discourse_captcha_provider = DiscourseCaptcha::CaptchaProvider::RECAPTCHA
- stub_request(:post, DiscourseHcaptcha::RecaptchaProvider::CAPTCHA_VERIFICATION_URL).with(
+ stub_request(:post, DiscourseCaptcha::RecaptchaProvider::CAPTCHA_VERIFICATION_URL).with(
body: {
secret: SiteSetting.recaptcha_secret_key,
response: "token-from-reCaptcha",
@@ -282,9 +282,9 @@ RSpec.describe "Users", type: :request do
context "when captcha response has success field as nil" do
before do
- SiteSetting.discourse_captcha_provider = DiscourseHcaptcha::CaptchaProvider::HCAPTCHA
+ SiteSetting.discourse_captcha_provider = DiscourseCaptcha::CaptchaProvider::HCAPTCHA
- stub_request(:post, DiscourseHcaptcha::HcaptchaProvider::CAPTCHA_VERIFICATION_URL).with(
+ stub_request(:post, DiscourseCaptcha::HcaptchaProvider::CAPTCHA_VERIFICATION_URL).with(
body: {
secret: SiteSetting.hcaptcha_secret_key,
response: "token-from-hCaptcha",
diff --git a/plugins/discourse-hcaptcha/spec/lib/discourse_h_captcha/hcaptcha_provider_spec.rb b/plugins/discourse-captcha/spec/lib/discourse_captcha/hcaptcha_provider_spec.rb
similarity index 96%
rename from plugins/discourse-hcaptcha/spec/lib/discourse_h_captcha/hcaptcha_provider_spec.rb
rename to plugins/discourse-captcha/spec/lib/discourse_captcha/hcaptcha_provider_spec.rb
index 54d31c54d00..c46320b47d8 100644
--- a/plugins/discourse-hcaptcha/spec/lib/discourse_h_captcha/hcaptcha_provider_spec.rb
+++ b/plugins/discourse-captcha/spec/lib/discourse_captcha/hcaptcha_provider_spec.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-RSpec.describe DiscourseHcaptcha::HcaptchaProvider do
+RSpec.describe DiscourseCaptcha::HcaptchaProvider do
subject(:provider) { described_class.new }
describe "#captcha_verification_url" do
diff --git a/plugins/discourse-hcaptcha/spec/lib/discourse_h_captcha/recaptcha_provider_spec.rb b/plugins/discourse-captcha/spec/lib/discourse_captcha/recaptcha_provider_spec.rb
similarity index 89%
rename from plugins/discourse-hcaptcha/spec/lib/discourse_h_captcha/recaptcha_provider_spec.rb
rename to plugins/discourse-captcha/spec/lib/discourse_captcha/recaptcha_provider_spec.rb
index 1a374f865b6..4c1cdcbe2bc 100644
--- a/plugins/discourse-hcaptcha/spec/lib/discourse_h_captcha/recaptcha_provider_spec.rb
+++ b/plugins/discourse-captcha/spec/lib/discourse_captcha/recaptcha_provider_spec.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-RSpec.describe DiscourseHcaptcha::RecaptchaProvider do
+RSpec.describe DiscourseCaptcha::RecaptchaProvider do
subject(:provider) { described_class.new }
describe "#captcha_verification_url" do
@@ -43,7 +43,7 @@ RSpec.describe DiscourseHcaptcha::RecaptchaProvider do
before do
SiteSetting.enable_local_logins = true
SiteSetting.discourse_captcha_enabled = true
- SiteSetting.discourse_captcha_provider = DiscourseHcaptcha::CaptchaProvider::RECAPTCHA
+ SiteSetting.discourse_captcha_provider = DiscourseCaptcha::CaptchaProvider::RECAPTCHA
SiteSetting.recaptcha_site_key = "site-key"
SiteSetting.recaptcha_secret_key = "secret-key"
@@ -53,7 +53,7 @@ RSpec.describe DiscourseHcaptcha::RecaptchaProvider do
stub =
stub_request(
:post,
- DiscourseHcaptcha::RecaptchaProvider::CAPTCHA_VERIFICATION_URL,
+ DiscourseCaptcha::RecaptchaProvider::CAPTCHA_VERIFICATION_URL,
).to_return(
status: 200,
body: '{"success":true,"challenge_ts":"2024-01-01T00:00:00Z","hostname":"example.com"}',
diff --git a/plugins/discourse-hcaptcha/spec/requests/discourse_hcaptcha/hcaptcha_controller_spec.rb b/plugins/discourse-captcha/spec/requests/discourse_captcha/hcaptcha_controller_spec.rb
similarity index 86%
rename from plugins/discourse-hcaptcha/spec/requests/discourse_hcaptcha/hcaptcha_controller_spec.rb
rename to plugins/discourse-captcha/spec/requests/discourse_captcha/hcaptcha_controller_spec.rb
index 51f82d5797a..717007e4009 100644
--- a/plugins/discourse-hcaptcha/spec/requests/discourse_hcaptcha/hcaptcha_controller_spec.rb
+++ b/plugins/discourse-captcha/spec/requests/discourse_captcha/hcaptcha_controller_spec.rb
@@ -1,10 +1,10 @@
# frozen_string_literal: true
-RSpec.describe DiscourseHcaptcha::HcaptchaController do
+RSpec.describe DiscourseCaptcha::HcaptchaController do
describe "POST /captcha/hcaptcha/create" do
before do
SiteSetting.discourse_captcha_enabled = true
- SiteSetting.discourse_captcha_provider = DiscourseHcaptcha::CaptchaProvider::HCAPTCHA
+ SiteSetting.discourse_captcha_provider = DiscourseCaptcha::CaptchaProvider::HCAPTCHA
SiteSetting.hcaptcha_site_key = "test-site-key"
SiteSetting.hcaptcha_secret_key = "test-secret-key"
end
@@ -36,7 +36,7 @@ RSpec.describe DiscourseHcaptcha::HcaptchaController do
context "when hCaptcha is not the selected provider" do
before do
- SiteSetting.discourse_captcha_provider = DiscourseHcaptcha::CaptchaProvider::RECAPTCHA
+ SiteSetting.discourse_captcha_provider = DiscourseCaptcha::CaptchaProvider::RECAPTCHA
SiteSetting.recaptcha_site_key = "test-site-key"
SiteSetting.recaptcha_secret_key = "test-secret-key"
end
@@ -49,7 +49,7 @@ RSpec.describe DiscourseHcaptcha::HcaptchaController do
end
context "when captcha provider is none" do
- before { SiteSetting.discourse_captcha_provider = DiscourseHcaptcha::CaptchaProvider::NONE }
+ before { SiteSetting.discourse_captcha_provider = DiscourseCaptcha::CaptchaProvider::NONE }
it "returns 404 error" do
post "/captcha/hcaptcha/create.json", params: { token: "test-token" }
diff --git a/plugins/discourse-hcaptcha/spec/requests/discourse_hcaptcha/recaptcha_controller_spec.rb b/plugins/discourse-captcha/spec/requests/discourse_captcha/recaptcha_controller_spec.rb
similarity index 86%
rename from plugins/discourse-hcaptcha/spec/requests/discourse_hcaptcha/recaptcha_controller_spec.rb
rename to plugins/discourse-captcha/spec/requests/discourse_captcha/recaptcha_controller_spec.rb
index 9f6abe4514f..809bca83b4d 100644
--- a/plugins/discourse-hcaptcha/spec/requests/discourse_hcaptcha/recaptcha_controller_spec.rb
+++ b/plugins/discourse-captcha/spec/requests/discourse_captcha/recaptcha_controller_spec.rb
@@ -1,10 +1,10 @@
# frozen_string_literal: true
-RSpec.describe DiscourseHcaptcha::RecaptchaController do
+RSpec.describe DiscourseCaptcha::RecaptchaController do
describe "POST /captcha/recaptcha/create" do
before do
SiteSetting.discourse_captcha_enabled = true
- SiteSetting.discourse_captcha_provider = DiscourseHcaptcha::CaptchaProvider::RECAPTCHA
+ SiteSetting.discourse_captcha_provider = DiscourseCaptcha::CaptchaProvider::RECAPTCHA
SiteSetting.recaptcha_site_key = "test-site-key"
SiteSetting.recaptcha_secret_key = "test-secret-key"
end
@@ -36,7 +36,7 @@ RSpec.describe DiscourseHcaptcha::RecaptchaController do
context "when reCaptcha is not the selected provider" do
before do
- SiteSetting.discourse_captcha_provider = DiscourseHcaptcha::CaptchaProvider::HCAPTCHA
+ SiteSetting.discourse_captcha_provider = DiscourseCaptcha::CaptchaProvider::HCAPTCHA
SiteSetting.hcaptcha_site_key = "test-site-key"
SiteSetting.hcaptcha_secret_key = "test-secret-key"
end
@@ -49,7 +49,7 @@ RSpec.describe DiscourseHcaptcha::RecaptchaController do
end
context "when captcha provider is none" do
- before { SiteSetting.discourse_captcha_provider = DiscourseHcaptcha::CaptchaProvider::NONE }
+ before { SiteSetting.discourse_captcha_provider = DiscourseCaptcha::CaptchaProvider::NONE }
it "returns 404 error" do
post "/captcha/recaptcha/create.json", params: { token: "test-token" }
diff --git a/plugins/discourse-hcaptcha/spec/services/problem_check/hcaptcha_configuration_spec.rb b/plugins/discourse-captcha/spec/services/problem_check/hcaptcha_configuration_spec.rb
similarity index 91%
rename from plugins/discourse-hcaptcha/spec/services/problem_check/hcaptcha_configuration_spec.rb
rename to plugins/discourse-captcha/spec/services/problem_check/hcaptcha_configuration_spec.rb
index 0fd7d7c8f6d..3a50548e8c1 100644
--- a/plugins/discourse-hcaptcha/spec/services/problem_check/hcaptcha_configuration_spec.rb
+++ b/plugins/discourse-captcha/spec/services/problem_check/hcaptcha_configuration_spec.rb
@@ -18,7 +18,7 @@ RSpec.describe ProblemCheck::HcaptchaConfiguration do
context "when discourse_captcha_provider siteSetting is HCaptcha" do
before do
SiteSetting.discourse_captcha_enabled = true
- SiteSetting.discourse_captcha_provider = DiscourseHcaptcha::CaptchaProvider::HCAPTCHA
+ SiteSetting.discourse_captcha_provider = DiscourseCaptcha::CaptchaProvider::HCAPTCHA
end
describe "`hcaptcha_site_key` is not set" do
@@ -47,7 +47,7 @@ RSpec.describe ProblemCheck::HcaptchaConfiguration do
end
context "when discourse_captcha_provider siteSetting is HCaptcha" do
- before { SiteSetting.discourse_captcha_provider = DiscourseHcaptcha::CaptchaProvider::HCAPTCHA }
+ before { SiteSetting.discourse_captcha_provider = DiscourseCaptcha::CaptchaProvider::HCAPTCHA }
describe "`hcaptcha_site_key` is not set" do
before { SiteSetting.hcaptcha_secret_key = "just a string" }
diff --git a/plugins/discourse-hcaptcha/spec/services/problem_check/recaptcha_configuration_spec.rb b/plugins/discourse-captcha/spec/services/problem_check/recaptcha_configuration_spec.rb
similarity index 92%
rename from plugins/discourse-hcaptcha/spec/services/problem_check/recaptcha_configuration_spec.rb
rename to plugins/discourse-captcha/spec/services/problem_check/recaptcha_configuration_spec.rb
index 753bb2f43ee..2f89a5df8c9 100644
--- a/plugins/discourse-hcaptcha/spec/services/problem_check/recaptcha_configuration_spec.rb
+++ b/plugins/discourse-captcha/spec/services/problem_check/recaptcha_configuration_spec.rb
@@ -18,7 +18,7 @@ RSpec.describe ProblemCheck::RecaptchaConfiguration do
context "when discourse_captcha_provider siteSetting is ReCaptcha" do
before do
SiteSetting.discourse_captcha_enabled = true
- SiteSetting.discourse_captcha_provider = DiscourseHcaptcha::CaptchaProvider::RECAPTCHA
+ SiteSetting.discourse_captcha_provider = DiscourseCaptcha::CaptchaProvider::RECAPTCHA
end
describe "`recaptcha_site_key` is not set" do
@@ -47,7 +47,7 @@ RSpec.describe ProblemCheck::RecaptchaConfiguration do
end
context "when discourse_captcha_provider siteSetting is none" do
- before { SiteSetting.discourse_captcha_provider = DiscourseHcaptcha::CaptchaProvider::NONE }
+ before { SiteSetting.discourse_captcha_provider = DiscourseCaptcha::CaptchaProvider::NONE }
describe "`recaptcha_site_key` is not set" do
before { SiteSetting.recaptcha_secret_key = "just a string" }
diff --git a/plugins/discourse-hcaptcha/spec/system/core_features_spec.rb b/plugins/discourse-captcha/spec/system/core_features_spec.rb
similarity index 100%
rename from plugins/discourse-hcaptcha/spec/system/core_features_spec.rb
rename to plugins/discourse-captcha/spec/system/core_features_spec.rb
diff --git a/plugins/discourse-hcaptcha/spec/system/page_objects/components/captcha.rb b/plugins/discourse-captcha/spec/system/page_objects/components/captcha.rb
similarity index 100%
rename from plugins/discourse-hcaptcha/spec/system/page_objects/components/captcha.rb
rename to plugins/discourse-captcha/spec/system/page_objects/components/captcha.rb
diff --git a/plugins/discourse-hcaptcha/spec/system/signup_with_captcha_spec.rb b/plugins/discourse-captcha/spec/system/signup_with_captcha_spec.rb
similarity index 91%
rename from plugins/discourse-hcaptcha/spec/system/signup_with_captcha_spec.rb
rename to plugins/discourse-captcha/spec/system/signup_with_captcha_spec.rb
index d062514ce87..b3eb48b8f92 100644
--- a/plugins/discourse-hcaptcha/spec/system/signup_with_captcha_spec.rb
+++ b/plugins/discourse-captcha/spec/system/signup_with_captcha_spec.rb
@@ -11,7 +11,7 @@ RSpec.describe "Signup with captcha" do
context "with hCaptcha", allow_network: %w[hcaptcha.com *.hcaptcha.com] do
before do
- SiteSetting.discourse_captcha_provider = DiscourseHcaptcha::CaptchaProvider::HCAPTCHA
+ SiteSetting.discourse_captcha_provider = DiscourseCaptcha::CaptchaProvider::HCAPTCHA
SiteSetting.hcaptcha_site_key = "10000000-ffff-ffff-ffff-000000000001"
SiteSetting.hcaptcha_secret_key = "0x0000000000000000000000000000000000000000"
end
@@ -68,7 +68,7 @@ RSpec.describe "Signup with captcha" do
context "with reCaptcha", allow_network: %w[www.google.com www.gstatic.com] do
before do
- SiteSetting.discourse_captcha_provider = DiscourseHcaptcha::CaptchaProvider::RECAPTCHA
+ SiteSetting.discourse_captcha_provider = DiscourseCaptcha::CaptchaProvider::RECAPTCHA
SiteSetting.recaptcha_site_key = "6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI"
SiteSetting.recaptcha_secret_key = "6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe"
end
@@ -90,7 +90,7 @@ RSpec.describe "Signup with captcha" do
end
context "when captcha provider is none" do
- before { SiteSetting.discourse_captcha_provider = DiscourseHcaptcha::CaptchaProvider::NONE }
+ before { SiteSetting.discourse_captcha_provider = DiscourseCaptcha::CaptchaProvider::NONE }
it "does not display any captcha widget" do
signup_page.open
diff --git a/plugins/discourse-hcaptcha/tsconfig.json b/plugins/discourse-captcha/tsconfig.json
similarity index 66%
rename from plugins/discourse-hcaptcha/tsconfig.json
rename to plugins/discourse-captcha/tsconfig.json
index 4cf812eba72..6d0e0d47361 100644
--- a/plugins/discourse-hcaptcha/tsconfig.json
+++ b/plugins/discourse-captcha/tsconfig.json
@@ -7,8 +7,8 @@
],
"compilerOptions": {
"paths": {
- "discourse/plugins/discourse-hcaptcha/*": ["./assets/javascripts/*"],
- "discourse/plugins/discourse-hcaptcha/admin/*": [
+ "discourse/plugins/discourse-captcha/*": ["./assets/javascripts/*"],
+ "discourse/plugins/discourse-captcha/admin/*": [
"./admin/assets/javascripts/admin/*"
]
}
diff --git a/plugins/discourse-hcaptcha/README.md b/plugins/discourse-hcaptcha/README.md
deleted file mode 100644
index 4cbe85db8c2..00000000000
--- a/plugins/discourse-hcaptcha/README.md
+++ /dev/null
@@ -1,20 +0,0 @@
-# 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/assets/javascripts/.gitkeep b/plugins/discourse-hcaptcha/assets/javascripts/.gitkeep
deleted file mode 100644
index e69de29bb2d..00000000000
diff --git a/plugins/discourse-hcaptcha/assets/stylesheets/.gitkeep b/plugins/discourse-hcaptcha/assets/stylesheets/.gitkeep
deleted file mode 100644
index e69de29bb2d..00000000000
diff --git a/plugins/discourse-hcaptcha/config/locales/client.ar.yml b/plugins/discourse-hcaptcha/config/locales/client.ar.yml
deleted file mode 100644
index 6e2ce0abc1f..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.ar.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-# 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_captcha:
- placeholder: عنصر نائب
- 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
deleted file mode 100644
index 2ea77a0d350..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.be.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 52333529d3c..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.bg.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 828a7e65af8..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.bs_BA.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index ec737bc1a5b..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.ca.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index f14b17f7bc3..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.cs.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-# 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:
- js:
- discourse_captcha:
- placeholder: zástupný symbol
- admin_js:
- admin:
- site_settings:
- categories:
- discourse_hcaptcha: "Discourse hCaptcha"
diff --git a/plugins/discourse-hcaptcha/config/locales/client.da.yml b/plugins/discourse-hcaptcha/config/locales/client.da.yml
deleted file mode 100644
index f39c727c594..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.da.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index c309aaaee7b..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.de.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-# 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_captcha:
- placeholder: Platzhalter
- 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
deleted file mode 100644
index a48a372a71c..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.el.yml
+++ /dev/null
@@ -1,12 +0,0 @@
-# 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:
- admin_js:
- admin:
- site_settings:
- categories:
- discourse_hcaptcha: "Discourse hCaptcha"
diff --git a/plugins/discourse-hcaptcha/config/locales/client.en_GB.yml b/plugins/discourse-hcaptcha/config/locales/client.en_GB.yml
deleted file mode 100644
index 2d4fa180ec7..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.en_GB.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index c2002ed636f..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.es.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-# 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_captcha:
- placeholder: marcador de posición
- 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
deleted file mode 100644
index 0ea0b6d554b..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.et.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 56512089fb5..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.fa_IR.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 0406adc283d..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.fi.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-# 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_captcha:
- placeholder: paikkamerkki
- 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
deleted file mode 100644
index 27c146f7f81..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.fr.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-# 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_captcha:
- placeholder: espace réservé
- admin_js:
- admin:
- site_settings:
- categories:
- discourse_hcaptcha: "Discourse hCaptcha"
diff --git a/plugins/discourse-hcaptcha/config/locales/client.gl.yml b/plugins/discourse-hcaptcha/config/locales/client.gl.yml
deleted file mode 100644
index fb911ce1635..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.gl.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index b7d297a8fb9..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.he.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-# 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_captcha:
- placeholder: ממלא מקום
- 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
deleted file mode 100644
index 93343ce6e19..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.hr.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 7c4d7de8e69..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.hu.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-# 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:
- js:
- discourse_captcha:
- placeholder: helyőrző
- admin_js:
- admin:
- site_settings:
- categories:
- discourse_hcaptcha: "Discourse hCaptcha"
diff --git a/plugins/discourse-hcaptcha/config/locales/client.hy.yml b/plugins/discourse-hcaptcha/config/locales/client.hy.yml
deleted file mode 100644
index cb18f64d356..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.hy.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 596e36b2e13..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.id.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index fcbb22a3424..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.it.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-# 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_captcha:
- placeholder: segnaposto
- 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
deleted file mode 100644
index 5c42c3963ae..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.ja.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-# 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_captcha:
- placeholder: プレースホルダー
- 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
deleted file mode 100644
index 18dd77fd3ec..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.ko.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 16bb19758dc..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.lt.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 59e0ef6f4ed..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.lv.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 2e2224d1472..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.nb_NO.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index ccb91f3deaf..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.nl.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-# 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_captcha:
- placeholder: tijdelijke aanduiding
- 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
deleted file mode 100644
index cb53d3c708a..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.pl_PL.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-# 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_captcha:
- missing_token: "Wypełnij zadanie CAPTCHA."
- verification_failed: "Weryfikacja CAPTCHA nie powiodła się. Spróbuj jeszcze raz."
- placeholder: symbol zastępczy
- contact_system_administrator: "Wystąpił problem z dostawcą CAPTCHA. Jeśli problem będzie się powtarzał, skontaktuj się z administratorem systemu."
- admin_js:
- admin:
- site_settings:
- categories:
- discourse_hcaptcha: "hCaptcha Discourse"
diff --git a/plugins/discourse-hcaptcha/config/locales/client.pt.yml b/plugins/discourse-hcaptcha/config/locales/client.pt.yml
deleted file mode 100644
index 298ba523c1d..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.pt.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 41eb8b08440..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.pt_BR.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-# 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_captcha:
- placeholder: espaço reservado
- 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
deleted file mode 100644
index 35c888856f0..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.ro.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-# 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_captcha:
- placeholder: substituent
- admin_js:
- admin:
- site_settings:
- categories:
- discourse_hcaptcha: "hCaptcha Discourse"
diff --git a/plugins/discourse-hcaptcha/config/locales/client.ru.yml b/plugins/discourse-hcaptcha/config/locales/client.ru.yml
deleted file mode 100644
index f44a9fcbc90..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.ru.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-# 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_captcha:
- missing_token: "Пожалуйста, пройдите проверку капчи."
- verification_failed: "Проверка капчи не удалась. Пожалуйста, попробуйте еще раз."
- placeholder: заполнитель
- contact_system_administrator: "Возникла проблема с вашим поставщиком капчи. Если проблема сохраняется, пожалуйста, свяжитесь с системным администратором."
- 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
deleted file mode 100644
index 04057013d4a..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.sk.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-# 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:
- js:
- discourse_captcha:
- placeholder: zástupný symbol
- admin_js:
- admin:
- site_settings:
- categories:
- discourse_hcaptcha: "Discourse hCaptcha"
diff --git a/plugins/discourse-hcaptcha/config/locales/client.sl.yml b/plugins/discourse-hcaptcha/config/locales/client.sl.yml
deleted file mode 100644
index 23489a48b1f..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.sl.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 7f051b7a7cf..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.sq.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 88d63d6ae1a..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.sr.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index b165aa293c0..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.sv.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 0d7cdd075bf..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.sw.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 03967bdbb07..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.te.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 7de85ff91c4..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.th.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 055935558c0..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.tr_TR.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-# 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_captcha:
- placeholder: yer tutucu
- 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
deleted file mode 100644
index a6bf0185ae2..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.ug.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index f0705a1aa23..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.uk.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-# 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:
- js:
- discourse_captcha:
- missing_token: "Будь ласка, завершіть виклик captcha."
- verification_failed: "Не вдалося перевірити капчу. Спробуйте ще раз."
- placeholder: заповнювач
- contact_system_administrator: "Виникла проблема з вашим постачальником капчі. Якщо проблема не зникає, зверніться до системного адміністратора."
- admin_js:
- admin:
- site_settings:
- categories:
- discourse_hcaptcha: "Обговорення hCaptcha"
diff --git a/plugins/discourse-hcaptcha/config/locales/client.ur.yml b/plugins/discourse-hcaptcha/config/locales/client.ur.yml
deleted file mode 100644
index b4a9c21ee2f..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.ur.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 824698af431..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.vi.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-# 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:
- js:
- discourse_captcha:
- placeholder: chỗ trống
- admin_js:
- admin:
- site_settings:
- categories:
- discourse_hcaptcha: "Discourse hCaptcha"
diff --git a/plugins/discourse-hcaptcha/config/locales/client.zh_CN.yml b/plugins/discourse-hcaptcha/config/locales/client.zh_CN.yml
deleted file mode 100644
index 31b2eccb86f..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.zh_CN.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-# 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_captcha:
- missing_token: "请完成验证码挑战。"
- verification_failed: "验证码验证失败,请重试。"
- placeholder: 占位符
- contact_system_administrator: "您的验证码提供商出现问题,如果问题仍然存在,请联系系统管理员。"
- 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
deleted file mode 100644
index 7e15fab0018..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/client.zh_TW.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index d54e0c600d9..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.ar.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-# 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:
- 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> الخاص بك"
diff --git a/plugins/discourse-hcaptcha/config/locales/server.be.yml b/plugins/discourse-hcaptcha/config/locales/server.be.yml
deleted file mode 100644
index 2ea77a0d350..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.be.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 52333529d3c..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.bg.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 828a7e65af8..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.bs_BA.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index ec737bc1a5b..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.ca.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index fdf4a5da0ea..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.cs.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-# 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:
- dashboard:
- problem:
- hcaptcha_configuration: "V konfiguraci hCaptcha `site_key` nebo `secret_key` došlo k problému."
- admin:
- site_settings:
- categories:
- discourse_hcaptcha: "hCaptcha Plugin"
- site_settings:
- hcaptcha_site_key: "hCaptcha Site Key z vašeho účtu <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a>"
- hcaptcha_secret_key: "hCaptcha Secret Key z vašeho <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a> účtu"
diff --git a/plugins/discourse-hcaptcha/config/locales/server.da.yml b/plugins/discourse-hcaptcha/config/locales/server.da.yml
deleted file mode 100644
index f39c727c594..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.da.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index f9e1f9625d1..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.de.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-# 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:
- 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"
diff --git a/plugins/discourse-hcaptcha/config/locales/server.el.yml b/plugins/discourse-hcaptcha/config/locales/server.el.yml
deleted file mode 100644
index 6e290eb9d08..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.el.yml
+++ /dev/null
@@ -1,8 +0,0 @@
-# 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:
- captcha_verification_failed: "Η επαλήθευση Captcha απέτυχε."
diff --git a/plugins/discourse-hcaptcha/config/locales/server.en_GB.yml b/plugins/discourse-hcaptcha/config/locales/server.en_GB.yml
deleted file mode 100644
index 2d4fa180ec7..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.en_GB.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 50bbf5284e2..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.es.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-# 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:
- 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>"
diff --git a/plugins/discourse-hcaptcha/config/locales/server.et.yml b/plugins/discourse-hcaptcha/config/locales/server.et.yml
deleted file mode 100644
index 0ea0b6d554b..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.et.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 56512089fb5..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.fa_IR.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 606f53c6e41..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.fi.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-# 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:
- 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"
diff --git a/plugins/discourse-hcaptcha/config/locales/server.fr.yml b/plugins/discourse-hcaptcha/config/locales/server.fr.yml
deleted file mode 100644
index 40ca91a8df4..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.fr.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-# 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:
- 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>"
diff --git a/plugins/discourse-hcaptcha/config/locales/server.gl.yml b/plugins/discourse-hcaptcha/config/locales/server.gl.yml
deleted file mode 100644
index fb911ce1635..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.gl.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 99b9ac81e65..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.he.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-# 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:
- 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> שלך"
diff --git a/plugins/discourse-hcaptcha/config/locales/server.hr.yml b/plugins/discourse-hcaptcha/config/locales/server.hr.yml
deleted file mode 100644
index 93343ce6e19..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.hr.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index d3f72b11dd3..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.hu.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-# 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:
- dashboard:
- problem:
- hcaptcha_configuration: "Probléma van a hCaptcha `site_key` vagy `secret_key` konfigurációjával"
- admin:
- site_settings:
- categories:
- discourse_hcaptcha: "hCaptcha bővítmény"
- site_settings:
- hcaptcha_site_key: "hCaptcha webhelykulcs a <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a> fiókodból"
- hcaptcha_secret_key: "hCaptcha titkos kulcs a <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a> fiókodból"
diff --git a/plugins/discourse-hcaptcha/config/locales/server.hy.yml b/plugins/discourse-hcaptcha/config/locales/server.hy.yml
deleted file mode 100644
index cb18f64d356..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.hy.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 596e36b2e13..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.id.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 0bba777061c..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.it.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-# 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:
- 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>"
diff --git a/plugins/discourse-hcaptcha/config/locales/server.ja.yml b/plugins/discourse-hcaptcha/config/locales/server.ja.yml
deleted file mode 100644
index 635f71ce3e6..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.ja.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-# 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:
- 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 シークレットキー"
diff --git a/plugins/discourse-hcaptcha/config/locales/server.ko.yml b/plugins/discourse-hcaptcha/config/locales/server.ko.yml
deleted file mode 100644
index 18dd77fd3ec..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.ko.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 16bb19758dc..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.lt.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 59e0ef6f4ed..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.lv.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 2e2224d1472..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.nb_NO.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 8e058c24b35..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.nl.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-# 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:
- 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"
diff --git a/plugins/discourse-hcaptcha/config/locales/server.pl_PL.yml b/plugins/discourse-hcaptcha/config/locales/server.pl_PL.yml
deleted file mode 100644
index 03a92d154c6..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.pl_PL.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-# 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 konfiguracją `site_key` lub `secret_key` hCaptcha"
- recaptcha_configuration: "Wystąpił problem z konfiguracją `site_key` lub `secret_key` ReCaptcha"
- admin:
- site_settings:
- categories:
- discourse_hcaptcha: "Wtyczka hCaptcha"
- site_settings:
- discourse_captcha_enabled: "Włącz weryfikację CAPTCHA dla nowych rejestracji użytkowników. Wymaga konfiguracji hCaptcha lub reCaptcha poniżej."
- discourse_captcha_provider: "Wybierz dostawcę CAPTCHA. Wymaga konta u wybranego dostawcy."
- 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>"
- recaptcha_site_key: "Klucz witryny ReCaptcha z Twojego konta <a target='blank' href='https://www.google.com/recaptcha'>ReCaptcha</a>"
- recaptcha_secret_key: "Klucz tajny ReCaptcha z Twojego konta <a target='blank' href='https://www.google.com/recaptcha'>ReCaptcha</a>"
- captcha_verification_failed: "Weryfikacja CAPTCHA nie powiodła się"
- captcha_not_configured: "CAPTCHA jest włączona, ale niepoprawnie skonfigurowana. Prosimy o kontakt z administratorem witryny."
diff --git a/plugins/discourse-hcaptcha/config/locales/server.pt.yml b/plugins/discourse-hcaptcha/config/locales/server.pt.yml
deleted file mode 100644
index 298ba523c1d..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.pt.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index d993c6955fb..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.pt_BR.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-# 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:
- 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"
diff --git a/plugins/discourse-hcaptcha/config/locales/server.ro.yml b/plugins/discourse-hcaptcha/config/locales/server.ro.yml
deleted file mode 100644
index b3e0dc7538b..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.ro.yml
+++ /dev/null
@@ -1,14 +0,0 @@
-# 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"
diff --git a/plugins/discourse-hcaptcha/config/locales/server.ru.yml b/plugins/discourse-hcaptcha/config/locales/server.ru.yml
deleted file mode 100644
index 7ff21acec22..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.ru.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-# 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"
- recaptcha_configuration: "Возникла проблема с конфигурацией `site_key` или `secret_key` вашей ReCaptcha."
- admin:
- site_settings:
- categories:
- discourse_hcaptcha: "Плагин hCaptcha"
- site_settings:
- discourse_captcha_enabled: "Включите проверку капчи при регистрации новых пользователей. Для этого необходимо настроить либо hCaptcha, либо reCaptcha, как указано ниже."
- discourse_captcha_provider: "Выберите поставщика капчи. Для этого вам потребуется иметь учетную запись выбранного поставщика."
- 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>"
- recaptcha_site_key: "Ключ сайта ReCaptcha из вашей учетной записи <a target='blank' href='https://www.google.com/recaptcha'>ReCaptcha</a>"
- recaptcha_secret_key: "Секретный ключ ReCaptcha из вашей учетной записи <a target='blank' href='https://www.google.com/recaptcha'>ReCaptcha</a>"
- captcha_verification_failed: "Проверка капчи не удалась"
- captcha_not_configured: "Функция Captcha включена, но настроена неправильно. Пожалуйста, свяжитесь с администратором сайта."
diff --git a/plugins/discourse-hcaptcha/config/locales/server.sk.yml b/plugins/discourse-hcaptcha/config/locales/server.sk.yml
deleted file mode 100644
index 9d27a3df942..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.sk.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-# 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:
- dashboard:
- problem:
- hcaptcha_configuration: "Nastal problém s konfiguráciou hCaptcha `site_key` alebo `secret_key`"
- admin:
- site_settings:
- categories:
- discourse_hcaptcha: "Plugin hCaptcha"
- site_settings:
- hcaptcha_site_key: "Kľúč stránky hCaptcha z vášho účtu <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a>"
- hcaptcha_secret_key: "Tajný kľúč hCaptcha z vášho účtu <a target='blank' href='https://hcaptcha.com'>hcaptcha.com</a>"
diff --git a/plugins/discourse-hcaptcha/config/locales/server.sl.yml b/plugins/discourse-hcaptcha/config/locales/server.sl.yml
deleted file mode 100644
index 23489a48b1f..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.sl.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 7f051b7a7cf..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.sq.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 88d63d6ae1a..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.sr.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index b165aa293c0..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.sv.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 0d7cdd075bf..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.sw.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 03967bdbb07..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.te.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 7de85ff91c4..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.th.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index e162422cd21..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.tr_TR.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-# 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:
- 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ı"
diff --git a/plugins/discourse-hcaptcha/config/locales/server.ug.yml b/plugins/discourse-hcaptcha/config/locales/server.ug.yml
deleted file mode 100644
index a6bf0185ae2..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.ug.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index a85ff6df5b0..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.uk.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-# 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:
- dashboard:
- problem:
- hcaptcha_configuration: "Виникла проблема з конфігурацією HCaptcha `site_key` або `secret_key`"
- recaptcha_configuration: "Виникла проблема з конфігурацією вашого ReCaptcha `site_key` або `secret_key`"
- admin:
- site_settings:
- categories:
- discourse_hcaptcha: "Плагін hCaptcha"
- site_settings:
- discourse_captcha_enabled: "Увімкнути перевірку капчі для реєстрації нових користувачів. Потрібна настройка hCAPTCHA або reCAPTCHA нижче."
- discourse_captcha_provider: "Виберіть постачальника капчі. Це вимагає, щоб ви володіли обліковим записом обраного провайдера"
- 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>"
- recaptcha_site_key: "Ключ сайту ReCaptcha з вашого облікового запису <a target='blank' href='https://www.google.com/recaptcha'>ReCaptcha</a>"
- recaptcha_secret_key: "Секретний ключ ReCaptcha з вашого облікового запису <a target='blank' href='https://www.google.com/recaptcha'>ReCaptcha</a>"
- captcha_verification_failed: "Не вдалося перевірити капчу"
- captcha_not_configured: "Captcha увімкнено, але не налаштовано належним чином. Зверніться до адміністратора сайту."
diff --git a/plugins/discourse-hcaptcha/config/locales/server.ur.yml b/plugins/discourse-hcaptcha/config/locales/server.ur.yml
deleted file mode 100644
index b4a9c21ee2f..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.ur.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index f629dcf5329..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.vi.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 3755035a021..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.zh_CN.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-# 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` 配置存在问题"
- recaptcha_configuration: "您的 ReCaptcha `site_key` 或 `secret_key` 配置存在问题。"
- admin:
- site_settings:
- categories:
- discourse_hcaptcha: "hCaptcha 插件"
- site_settings:
- discourse_captcha_enabled: "启用新用户注册的验证码验证。需要配置以下 hCaptcha 或 reCaptcha。"
- discourse_captcha_provider: "选择验证码提供商。这需要您拥有所选提供商的帐户。"
- 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 密钥"
- recaptcha_site_key: "来自您的 ReCaptcha <a target='blank' href='https://www.google.com/recaptcha'>ReCaptcha</a> 帐户的 ReCaptcha 网站密钥"
- recaptcha_secret_key: "来自您的 ReCaptcha <a target='blank' href='https://www.google.com/recaptcha'>ReCaptcha</a> 帐户的 ReCaptcha 密钥"
- captcha_verification_failed: "验证码验证失败"
- captcha_not_configured: "验证码已启用,但配置不正确。请联系网站管理员。"
diff --git a/plugins/discourse-hcaptcha/config/locales/server.zh_TW.yml b/plugins/discourse-hcaptcha/config/locales/server.zh_TW.yml
deleted file mode 100644
index 7e15fab0018..00000000000
--- a/plugins/discourse-hcaptcha/config/locales/server.zh_TW.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
deleted file mode 100644
index 0f28e58d241..00000000000
--- a/plugins/discourse-hcaptcha/config/routes.rb
+++ /dev/null
@@ -1,8 +0,0 @@
-# frozen_string_literal: true
-
-Discourse::Application.routes.draw { mount DiscourseHcaptcha::Engine, at: "captcha" }
-
-DiscourseHcaptcha::Engine.routes.draw do
- post "/hcaptcha/create" => "hcaptcha#create"
- post "/recaptcha/create" => "recaptcha#create"
-end
diff --git a/plugins/discourse-hcaptcha/db/.gitkeep b/plugins/discourse-hcaptcha/db/.gitkeep
deleted file mode 100644
index e69de29bb2d..00000000000
diff --git a/plugins/discourse-hcaptcha/spec/.gitkeep b/plugins/discourse-hcaptcha/spec/.gitkeep
deleted file mode 100644
index e69de29bb2d..00000000000
diff --git a/plugins/discourse-hcaptcha/test/javascripts/.gitkeep b/plugins/discourse-hcaptcha/test/javascripts/.gitkeep
deleted file mode 100644
index e69de29bb2d..00000000000
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index a2717cf6d2f..85e39ddec54 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -744,6 +744,12 @@ importers:
specifier: npm:@discourse/types@*
version: '@discourse/[email protected]'
+ plugins/discourse-captcha:
+ dependencies:
+ discourse:
+ specifier: npm:@discourse/types@*
+ version: '@discourse/[email protected]'
+
plugins/discourse-chat-integration:
dependencies:
discourse:
@@ -780,12 +786,6 @@ importers:
specifier: npm:@discourse/types@*
version: '@discourse/[email protected]'
- plugins/discourse-hcaptcha:
- dependencies:
- discourse:
- specifier: npm:@discourse/types@*
- version: '@discourse/[email protected]'
-
plugins/discourse-lazy-videos:
dependencies:
discourse:
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index f5cb7103d59..086e7cadadd 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -31,7 +31,7 @@ packages:
- "plugins/discourse-gamification"
- "plugins/discourse-github"
- "plugins/discourse-graphviz"
-- "plugins/discourse-hcaptcha"
+- "plugins/discourse-captcha"
- "plugins/discourse-lazy-videos"
- "plugins/discourse-local-dates"
- "plugins/discourse-login-with-amazon"
diff --git a/translator.yml b/translator.yml
index 6d909e401ad..a1fa8cbb721 100644
--- a/translator.yml
+++ b/translator.yml
@@ -229,12 +229,12 @@ files:
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
+ - source_path: plugins/discourse-captcha/config/locales/client.en.yml
+ destination_path: plugins/captcha/client.yml
+ label: captcha
+ - source_path: plugins/discourse-captcha/config/locales/server.en.yml
+ destination_path: plugins/captcha/server.yml
+ label: captcha
- source_path: plugins/discourse-gamification/config/locales/client.en.yml
destination_path: plugins/gamification/client.yml
diff --git a/tsconfig.json b/tsconfig.json
index 27948613ed9..1bea23fcb10 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -18,7 +18,7 @@
{ "path": "plugins/discourse-gamification" },
{ "path": "plugins/discourse-github" },
{ "path": "plugins/discourse-graphviz" },
- { "path": "plugins/discourse-hcaptcha" },
+ { "path": "plugins/discourse-captcha" },
{ "path": "plugins/discourse-lazy-videos" },
{ "path": "plugins/discourse-local-dates" },
{ "path": "plugins/discourse-login-with-amazon" },