Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

Localization

Jonathan Channon edited this page Oct 25, 2013 · 8 revisions

Nancy has localization built into it.

There are a set of conventions on how to determine the current culture and also a set of razor view conventions based on culture.

So if culture is de-DE it will look for a view called Home-de-DE.cshtml which you can then add your localized content.

It will also use resx files eg/Text.resx, Text.de-DE.resx (but can be overridden to be a database or whatever) to get translations out so you can in your view call @Text.Greeting and it will find the relevant item.

Here is a Razor demo showing Localization

Clone this wiki locally