turquoiseowl / i18n

Smart internationalization for ASP.NET
Other
556 stars 156 forks source link

Is it possible to keep default Url #245

Closed phat1234 closed 8 years ago

phat1234 commented 8 years ago

Hello Im trying to url like this http://project/Signin, i don't want to change http://project/en/SignIn or http://project/zh/Signin. if a language changed

Is it possible to do that? Thanks

berniezhao commented 8 years ago

Check i18n.UrlLocalizer.UrlLocalizationScheme?

turquoiseowl commented 8 years ago

That's right, it sounds like i18n.UrlLocalizationScheme.Void. See https://github.com/turquoiseowl/i18n#project-configuration.

phat1234 commented 8 years ago

Thank you very much, the problem have solved. I do not know what happened, i try to do before and maybe cookie i18n.langtag is not expires.

miemengniao commented 6 years ago

I guess it cause by the sample code. in startup sample code, the cookies's name:i18n_langtag, but in the change language sample code. the cookie's name is :i18n.langtag