private string GetLocalePath(Locale location) { string result = Directory.GetDirectories(_repositoryPath).FirstOrDefault(x => string.Equals(new DirectoryInfo(x).Name, location.GetCode(), StringComparison.InvariantCultureIgnoreCase)); if (string.IsNullOrWhiteSpace(result)) { throw new DirectoryNotFoundException(_repositoryPath + "/" + location.GetCode()); } return(result); }
public string GetLocaleString() { return(Locale.GetCode()); }