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);
        }
Exemple #2
0
 public string GetLocaleString()
 {
     return(Locale.GetCode());
 }