Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n Support #109

Closed
DysonMa opened this issue Mar 13, 2023 · 2 comments
Closed

i18n Support #109

DysonMa opened this issue Mar 13, 2023 · 2 comments

Comments

@DysonMa
Copy link

DysonMa commented Mar 13, 2023

Hi there,

I was wondering if you have any plans to support i18n or any multi-language feature in your project's roadmap?

I understand that there are various i18n packages available, but since I have forked this project and added customized features, it would be difficult to merge with your new features in the future. Therefore, it would be greatly appreciated if you could consider adding i18n support to make the integration process easier.

For this Next.js project, perhaps the next-i18next package could be used to achieve this goal.

For example:

import { useTranslation } from 'next-i18next'

export const Footer = () => {
  const { t } = useTranslation('footer')

  return (
    <footer>
      <p>{t('description')}</p>
    </footer>
  )
}

Thank you for your consideration!

@kasperkristensen
Copy link
Collaborator

Hi @DysonMa, there are no plans to add this to the starter. The starter is simply meant as a starting point or a source of inspiration for how you can build a storefront for a Medusa server.

We will most likely be revisiting the starter at some point later this year when we start working on implementing a storefront component library - medusajs/medusa#2856. When we do that we will definitely consider it, but I can't make any promises 🙂

My suggestion to you would be to implement it in your own storefront.

Closing for now

@mjaimes-madbius
Copy link

Hello, I am currently working with this template, practicing a little and I would like to know what the root file (_app.js) is so I can configure the i18n https://www.i18next.com/overview/getting-started tool to use it as you propose, friend, could you explain to me where I can locate the configuration in the template?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants