Comments (5)
Thanks Brent,
So you want to get a route param with culture info and then switch the culture of the current thread, yes?
From what I understand about changing the culture in the current thread, it might be too late to do that by the time AR handles a request. Usually I've set culture stuff for the thread in the Application_BeginRequest method in global.asax. There you'd have access to the current request and could pick off query string params, user languages, etc.
I had spiked out a localization solution, which I am not sure would be relevant here. You can view the localization branch in the github repo if you would like.
Let me know if I am missing the point.
t
On Aug 26, 2011, at 11:39 AM, bjubinville wrote:
Hi,
First off, this is a great library. Thanks so much for the investment of time and effort... very well put together.
Earlier this week I spent a bunch of time faffing around with culture switching based on locale route parameters. Any thoughts on adding some defaults into your library to help with this?
I'm a little crunched for time right now, but if you think it's a good idea, I wouldn't mind throwing a few hours towards a nice implementation.
Thanks again,
...brent
Reply to this email directly or view it on GitHub:
#14
from attributerouting.
It's true, with web apps you would set the culture in BeginRequest traditionally, but I've done a little work on a decent looking solution that I'm happy to share (and that I think my have a place here). I'll get back to you in a couple weeks with some more discussion points. Thanks for the response.
from attributerouting.
Any progress? Would like to include localization support but have been slammed recently with a job, of all things.
from attributerouting.
Sadly, I'm in the same boat. It's still on my list to look at, but I can't say when I'll be able to get a chance.
from attributerouting.
I just added the first crack at localization support in v1.5, now available on nuget. FYI.
from attributerouting.
Related Issues (20)
- Routes seemingly disappear on .NET 4.5.1 with default configuration
- Controller level attributes not being applied when using configuration.AddRoutesFromAssembly
- Same route with different Http Verbs does not work HOT 1
- Routes are not registering HOT 1
- Attribute Routing does not work after deloyment
- how to store subdomain each RouteValues?
- Bug: Route Name + Translation Key = Duplicate Keys
- MVC 5 incorporated? HOT 4
- Need help configuring subdomain area
- Integration with WebApi2?
- Route For Sitemap.xml Not Working in Production
- Poor handling of malformed route - Index was outside the bounds of the array.
- Unhelpful exception
- Custom Translator HOT 1
- Custom Route Translation and UiCulture Constraint
- Doesn't work with New Relic installed on server
- "vjscor" Missing
- "Site disabled · GitHub Pages" when loading attributerouting.net HOT 4
- Nuget.org missing most recent versions HOT 1
- Got System.NullReferenceException on routes.MapHttpAttributeRoutes(); HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from attributerouting.