Make URL to connect app translatable

Instance managers can now change the URL in Transifex to use their own
API endpoint.
This commit is contained in:
Maikel Linke
2024-04-05 14:57:13 +11:00
parent fa03de33e1
commit e00156a8d4
2 changed files with 3 additions and 1 deletions

View File

@@ -4,7 +4,7 @@ class ConnectAppJob < ApplicationJob
include CableReady::Broadcaster
def perform(app, token, channel: nil)
url = "https://n8n.openfoodnetwork.org.uk/webhook/regen/connect-enterprise"
url = I18n.t("connect_app.url")
event = "connect-app"
enterprise = app.enterprise
payload = {

View File

@@ -265,6 +265,8 @@ en:
community_forum_url: "Community forum URL"
customer_instructions: "Customer instructions"
additional_information: "Additional Information"
connect_app:
url: "https://n8n.openfoodnetwork.org.uk/webhook/regen/connect-enterprise"
devise:
passwords:
spree_user: