Using Language Dictionaries

Once you have your languages set up including your dictionaries, and you have set the culture of your pages. You can now pull out the correct language text for the page culture.

Just as you can get property values in your IContentView from the passed in Content parameter. There is also a passed in parameter called LanguageKeys.

To get the language text out, you just pass in the dictionary key like so

@(LanguageKeys?.Get("HelloText"))

Last updated