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

Localization

visualjoel edited this page Aug 27, 2017 · 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 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


« Part 11. View location conventions  —  Documentation overview  —  Part 13. Testing your application »

Clone this wiki locally