private string getPhrase(string key, string language, string defaultValue) { Phrase phrase = localizationRepository.GetPhrases().Where(p => p.Key == key && p.Language == language).FirstOrDefault(); if (phrase != null) { return(phrase.Value); } if (defaultValue == null) { return(key); } return(defaultValue); }
public ICollection <Phrase> GetTranslations() { return(repository.GetPhrases().ToList()); }
public IEnumerable <Phrase> GetTranslations() { return(repository.GetPhrases()); }