How to use LanguageManager for best performance?
Versions:
n/a,
FAQ number:
39,
Old FAQ number: 970
Q: How should I use the LanguageManager for best performance?
A: The fastest way to translate labels etc is to use the built-in LanguageManager object in EPiServer. The object is loaded and cached at the same time the EPiServer application is warmed up and it is always available and ready to be used.
Here is an example that translates a button label to the current language: