public async Task <IEnumerable <Locale> > GetLocales([FromServices] ILocalizationProvider localizationProvider) { return(await localizationProvider.GetLocalesAsync()); }