forked from NancyFx/Nancy
-
Notifications
You must be signed in to change notification settings - Fork 0
Localization
Andreas Håkansson edited this page Oct 25, 2013
·
4 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 in your view call @Text.Greeting and it will find the relevant item.
Here is a Razor demo showing Localization
- Async
- Taking a look at the DynamicDictionary
- The before and after module hooks
- The Application Before, After and OnError pipelines
- Model binding
- Bootstrapper
- View Engines
- View location conventions
- Localization
- Testing your application
- The root path
- Managing static content
- Diagnostics
- Adding a custom FavIcon
- Generating a custom error page
- The cryptography helpers
- Content negotiation
- Authentication
- More to come