Localization - NancyFx/Nancy GitHub Wiki
Nancy has localization built into it.
There are a set of conventions on how to determine the current culture and also a set of view conventions based on culture.
So if culture is de-DE
it will look for a view called Home-de-DE
, 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 put in your view call @Text.Greeting
and it will find the relevant item.
Here is a Razor demo showing Localization