This repository has been archived by the owner on Jan 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 »
- Introduction
- Exploring the Nancy module
- Routing
- Taking a look at the DynamicDictionary
- Async
- View Engines
- Using Models
- Managing static content
- Authentication
- Lifecycle of a Nancy Application
- Bootstrapper
- Adding a custom FavIcon
- Diagnostics
- Generating a custom error page
- Localization
- SSL Behind Proxy
- Testing your application
- The cryptography helpers
- Validation
- Hosting Nancy with ASP.NET
- Hosting Nancy with WCF
- Hosting Nancy with Azure
- Hosting Nancy with Suave.IO
- Hosting Nancy with OWIN
- Hosting Nancy with Umbraco
- Hosting Nancy with Nginx on Ubuntu
- Hosting Nancy with FastCgi
- Self Hosting Nancy
- Implementing a Host
- Accessing the client certificate when using SSL
- Running Nancy on your Raspberry Pi
- Running Nancy with ASP.NET Core 3.1