Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Localization

Kai Eichinger edited this page · 5 revisions
Clone this wiki locally

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 in your view call @Text.Greeting and it will find the relevant item.

Here is a Razor demo showing Localization

<< Part 11. View location conventions - Documentation overview - Part 13. Testing your application >>

Something went wrong with that request. Please try again.