Skip to content

Get locale from Translator service

Compare
Choose a tag to compare
@benr77 benr77 released this 13 May 13:12

Use the Translator service to provide the locale, instead of the RequestStack service.

The RequestStack cannot provide the locale when used in the CLI context, whereas the Translator service can.