private async Task Translate()
        {
            Console.WriteLine("Translate");
            Console.Write("Text");
            var text = Console.ReadLine();

            _stringLocalizerService.WithCulture(new System.Globalization.CultureInfo("es"));
            var translated = await _stringLocalizerService.Get(text);

            Console.WriteLine(translated);
            Console.ReadLine();
        }
 public static async Task <LocalizedString> GetError(this IStringLocalizerService stringLocalizer, string message)
 {
     return(await stringLocalizer.Get(message, TranslationType.Error));
 }