#Gkiokan-invoice
1 messages · Page 1 of 1 (latest)
Hi! So if I understand correctly you want to localize the invoice item description, like "trial period for premium" on your screenshot?
This is correct
Fun fact is. When I checkout the Dashboard - as it is in german - it shows me the customer invoice information in german
This is from the Stripe Dashboard.
I guess there meight be an language property for the invoices API maybe?
Or on the customer object itself when I create /update them?
I guess there meight be an language property for the invoices API maybe?
The customer object has apreferred_localesproperty https://stripe.com/docs/api/customers/object#customer_object-preferred_locales
Is there an global configuration? Just curious?
I don't think so.
I had to refactor my customer creation and update methods but now it does say that the customer has German language but the existing invoice is description is still in english
I will try to order a new tier and see if it still is in english
Invoice data description is still in English. Does this affect computed item description from stripe?
You are right, I just tested this and the description is still in English. Hum...
I mean, I could compute the description string on my own, but would be nice if it would work out of the box as it does on the dashboard
Any hint maybe?
Can you share the Invoice ID?
The customer preferred_locales field will have no impact on the subscription/invoice items. They're not localised according to that setting
If you want localised product/price data, then you'll need to create product/prices in each of the languages you need
prod_LmPKpnXEtgQqHuthis is the product that I am using for that tier. However I can't see any language options on the product edit page. This wouldn't matter as we would only deploy the application in germany, so therefor I thought maybe a general settings for the lang would be a fit but it doesn't seem to exist
The Description field is generated on the invoice list entry automatically. The Description field from the product has no impact on that either
If this is not possible it's not a big deal to make a custom computed* property on my application but would be great help for sure
Yep, there's no language setting/field on the product. You'd just use whichever language you require
The Description field is generated on the invoice list entry automatically. The Description field from the product has no impact on that either
Indeed, I don't believe that can't be localised. let me confirm
Sure. If there is any config on stripe side to do let me know as we use the dashboard also only in german.
Thanks for your help.
Np!