medusa icon indicating copy to clipboard operation
medusa copied to clipboard

Multilanguage

Open markus-gx opened this issue 1 year ago • 6 comments

Is your feature request related to a problem? Please describe. If I would setup a medusa store for local clients e.g in Austria it would be possible that someone does not know English as well as his/her native language German.

Describe the solution you'd like A language switch in the admin panel and maybe a default lang setting (.env) when initially setting up the admin panel. For future contributors, every language outsourced in a file.

markus-gx avatar Aug 17 '22 08:08 markus-gx

Is it possible to have localized names for each product? And the shoppers could switch the site's language

Keith-Hon avatar Aug 23 '22 05:08 Keith-Hon

I'm also interested in localized names and description for products. Thanks!

yaariyuval avatar Sep 14 '22 08:09 yaariyuval

I'm literally unable to use MedusaJS because I need multi language support. If anyone would like to point me in the direction of how I can fix this myself / and or contribute this feature to Medusa I would appreciate it!

I think it's important to have a planned out how this feature is supposed to work rather than implementing it haphazardly.

Could we start a dialogue on this perhaps?

schoening avatar Sep 16 '22 06:09 schoening

@markus-gx @Keith-Hon @yaariyuval @schoening

Your feedback is highly appreciated. Supporting multiple locales natively in Medusa has been discussed previously but was put on hold as we prioritized other, to us, more impactful features. And really, the same goes for now. We've already planned a tentative roadmap for Q4, and multi-language support is unfortunately not part of it.

Though, one approach you should consider is to connect a CMS to Medusa (e.g. our Contentful plugin), that allows you to configure multiple locales for all the content. We've helped several large-scale merchants with such a setup, which has worked out quite successfully. Check out some of our setup guides here.

That being said, we'd love to plan out native support with you (+ community) and assist in the implementation process as much as possible. To kick things off, it would be great to know your exact requirements for the feature and a couple of comments on how you imagine the setup would play out; configurable in admin, configurable in medusa-config.js or a third option.

Finally, I think it's worth mentioning that we are currently scoping an extensible Entity API allowing you to add custom attributes to resources in Medusa starting with Product as it is the most obvious one. This feature should give you a set of tools to achieve multi-language content, but it might not be a super intuitive developer experience from a frontend perspective.

Looking forward to hearing from you!

olivermrbl avatar Sep 16 '22 06:09 olivermrbl

The initial requirement for the feature was for the admin panel. Integrating react-i18n or whatever its called in GatsbyJS. I would have done it myself but unfortunately I am coming from Nuxt/VueJS.

So it should be quite simple to add locale files and a lang-switch in the Admin Panel. The rest like product translations etc can be easily managed via CMS as @olivermrbl already mentioned.

markus-gx avatar Sep 16 '22 08:09 markus-gx

@olivermrbl I would like to know how you solved it for your clients. Do they have to maintain both the medusa admin items and a seperate cms where they have translations for the products?

schoening avatar Sep 16 '22 10:09 schoening