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

Lazy load translations #402

Open
danimoh opened this issue Jun 22, 2020 · 0 comments
Open

Lazy load translations #402

danimoh opened this issue Jun 22, 2020 · 0 comments

Comments

@danimoh
Copy link
Member

danimoh commented Jun 22, 2020

Lazy load requested translations instead of bundling them all.

Things to keep in mind:

  • Translation files should be fetched with an integrity checksum. This is supported by fetch directly. The hashes would need to be generated during build and bundled with the common snippet.
  • The checklangs script will need to be updated.
  • What to display until language is loaded? Keep the loading spinner spinning until language loaded? Or bundle English and display English first but translations manually translated via translatePhrase then do not update reactively.
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

1 participant