public ProjectLocalizer(string projectFolder, ProjectLocalizerOptions options) { ProjectFolder = projectFolder; Options = options; try { // ReSharper disable once ObjectCreationAsStatement - Instantiating only to see if it is possible new CultureInfo(Options.Locale); LocaleIsSupported = true; } catch { Console.WriteLine("Warning: Culture name {0} is not supported.", Options.Locale); LocaleIsSupported = false; } }
protected virtual ProjectLocalizer CreateProjectLocalizer(string folder, ProjectLocalizerOptions options) { return(new ProjectLocalizer(folder, options)); }