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

Issue with other Languages #13

Open
sparrow-chik-chrk opened this issue Jul 16, 2024 · 1 comment
Open

Issue with other Languages #13

sparrow-chik-chrk opened this issue Jul 16, 2024 · 1 comment

Comments

@sparrow-chik-chrk
Copy link

When using the plugin with languages other than the default ones (en, de, fr), the translations from i18n-iso-countries are not being applied correctly. The translation files are loaded in the browser as JavaScript files, but they are not populating the necessary fields. However, when switching to any of the default languages, the country translations load properly.

Steps to Reproduce:

  1. Use a non-default language (e.g., uk).
  2. Observe that the country translations are not applied.
  3. Switch to one of the default languages (en, de, fr).
  4. Observe that the country translations are applied correctly.

Expected Behavior:
Translations from i18n-iso-countries should be applied correctly for all supported languages, not just the default ones.

Actual Behavior:
Translations are not being applied for languages other than the default ones.

Environment:

  • Strapi version: 4.25.1
  • Node.js version: 20.15.0
  • Operating System: Windows 10
@sparrow-chik-chrk sparrow-chik-chrk changed the title Issue with other Languages in i18n-iso-countries Plugin Issue with other Languages Jul 16, 2024
@ChrisEbert
Copy link
Owner

Unfortunately Im unable to resolve this issue. As long as vite is unable to import dynamic files from node_modules folder, we have to use english by default. vitejs/vite#14102

I will have a look into that after vite adds support for dynamic imports from node_modules.

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

2 participants