Skip to content

Conversation

@pweyrich
Copy link
Contributor

@pweyrich pweyrich commented Aug 11, 2025

BREAKING CHANGE:
L10nIntlModule doesn't ship with a provider for L10nIntlService anymore. Use L10nIntlModule.forRoot() or provideL10nIntl() instead to include a provider for L10nIntlService.

BREAKING CHANGE:
L10nIntlModule doesn't ship with a provider for L10nIntlService anymore. Use L10nIntlModule.forRoot() instead to include a provider for L10nIntlService.
@robisim74
Copy link
Owner

Sorry, I haven't had a chance to try this pr.

But I don't see the benefit of having a forRoot here.

@pweyrich
Copy link
Contributor Author

Hey @robisim74

This aims to:

  1. align L10nIntlModule with L10nTranslationModule, as L10nTranslationModule comes with a forRoot method but L10nIntlModule does not.
  2. follow Angular Guidelines on how to ship root level providers with modules (see https://angular.dev/guide/ngmodules/overview#the-forroot-and-forchild-pattern).

Best regards

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

Successfully merging this pull request may close these issues.

2 participants