#hakiros
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
Hi, let me help you with this.
What's the error exactly?
You could try uppercase, e.g. PL, EN
or pl-PL en-GB
im just getting Error: Invalid string: {:"0"=>"pl-PL"} with this code
const locale: any = ['pl-PL'];
const portalSession = await stripe.billingPortal.sessions.create({
customer: user.stripe_customer_id,
configuration: configuration.id,
locale: locale,
return_url: returnUrl,
});
idealy I would like to avoid using any but without it Im getting
Type 'string[]' is not assignable to type 'Locale | undefined'.
So I guess I somehow have to create Locale object? But have no idea how
👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!