Skip to content

ngtools/webpack: document i18n parameters #7599

@bwasty

Description

@bwasty

Bug Report or Feature Request (mark with an x)

- [ ] bug report -> please search issues before submitting
- [x] feature request

The readme doesn't mention any i18n parameters, so we were quite surprised when translations were partially broken after adding the AotPlugin. Digging through the code a bit, we found that these parameters work:

  plugins: [
    new AotPlugin({
      ...
      locale: 'XX',
      i18nFile: helpers.root('src/locale/messages.XX.xlf'),
      i18nFormat: 'xlf',
    }),
  ]

Please document them. An open question is whether it's possible to generate a single bundle with all languages (that's what we're doing now without AOT). My guess after looking through the code is no.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions