Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

material-ui : i18n files were not imported #2298

Merged
merged 1 commit into from
May 11, 2019

Conversation

Julien-Sytadelle
Copy link
Contributor

No description provided.

@eric-burel
Copy link
Contributor

I am not sure we should load them systematically, except maybe for english in order to get a fallback. I think the correct pattern would be to require those files in your own app, so that they are only loaded if necessary. Not 100% sure how it's handled in my own apps though, I may have misunderstood the issue you are trying to solve.

@ErikDakoda
Copy link
Contributor

I have been thinking about how do deal with this too. I guess en_US should be loaded by default as the fallback, though I usually use api.addFiles('en_US.js', ['client', 'server']); in package.js.

Don't know if we have a standard way to load other languages dynamically.

@Julien-Sytadelle
Copy link
Contributor Author

Julien-Sytadelle commented May 7, 2019 via email

@ErikDakoda
Copy link
Contributor

Yes, I have the same bug with the search input. I say we might as well include both EN and FR, since they are quite small. But they should be added to package.js for consistency:

  api.addFiles([
    'accounts.css', 
    'forms.css',
    'en_US.js',
    'fr_FR.js',
  ], ['client', 'server']);

@Julien-Sytadelle
Copy link
Contributor Author

Julien-Sytadelle commented May 7, 2019 via email

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

Successfully merging this pull request may close these issues.

3 participants