From 330f25a85e06b51f0adaab19ccc62d5f6964fd10 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sat, 17 Oct 2026 13:44:49 +0200 Subject: [PATCH] Fix type check of unsupported language codes in Stripe checkout session --- apps/api/src/app/subscription/subscription.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/api/src/app/subscription/subscription.service.ts b/apps/api/src/app/subscription/subscription.service.ts index 17beba0077..867df56c91 100644 --- a/apps/api/src/app/subscription/subscription.service.ts +++ b/apps/api/src/app/subscription/subscription.service.ts @@ -268,7 +268,8 @@ export class SubscriptionService { const unsupportedLanguageCodes: Record< Exclude< (typeof SUPPORTED_LANGUAGE_CODES)[number], - // Extract removes OtherString of Stripe, which matches every string + // Extract keeps only the Stripe locales that Ghostfolio supports. + // This also removes OtherString, which matches every string. Extract< Stripe.Checkout.SessionCreateParams.Locale, (typeof SUPPORTED_LANGUAGE_CODES)[number]