Skip to content

Instantly share code, notes, and snippets.

@trnktms
Created June 7, 2021 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trnktms/c378a2307f2b03ec1e99eda1a183d6c6 to your computer and use it in GitHub Desktop.
Save trnktms/c378a2307f2b03ec1e99eda1a183d6c6 to your computer and use it in GitHub Desktop.
public class NoCacheApplicationDictionaryReader : ApplicationDictionaryReader
{
public NoCacheApplicationDictionaryReader(
IDictionaryDomainResolver dictionaryDomainResolver,
ITranslationDictionaryReader translationDictionaryReader,
HttpContextBase httpContext)
: base(dictionaryDomainResolver, translationDictionaryReader, httpContext)
{
}
public override IDictionary<string, string> GetPhrases(AppConfiguration application, Language language)
{
var dictionaryDomain = this.DictionaryDomainResolver.GetDictionaryDomain(application);
if (dictionaryDomain == null)
{
return null;
}
return this.TranslationDictionaryReader.GetPhrases(dictionaryDomain, language);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment