Skip to content

Lazy load translations #402

@danimoh

Description

@danimoh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions