ligershark / javascriptlocalizer Goto Github PK
View Code? Open in Web Editor NEWLocalizes strings inside JavaScript files when they run though ASP.NET Optimization
Localizes strings inside JavaScript files when they run though ASP.NET Optimization
First: this is a great plugin. Thanks for providing it! :)
I'm a little bit confused with the result I'm seeing...
I use Quick Locale Switch with Firefox: https://addons.mozilla.org/en-us/firefox/addon/quick-locale-switcher/
When I select pt-BR (Portuguese-Brazil) and do a refresh in the page, the script keeps the English localization string... debugging with Firebug I can see the correct lang parameter being passed like this:
http://localhost:7777/Scripts/download?lang=pt-BR
If I stop debugging then restart, it'll pick the correct Portuguese localizations.
In my Web.config
I have this set:
<globalization enableClientBasedCulture="true" uiCulture="auto:pt-BR" culture="auto:pt-BR" fileEncoding="utf-8" requestEncoding="utf-8" responseEncoding="utf-8" />
Note: while debugging I disable Browser Cache through Firebug.
What can be happening? Shouldn't it go to the server and get the script again for the different locale passed in the querystring? Looks like there's some caching going on...
I was expecting to see the strings localized immediately after switching the language with Quick Locale Switch.����
Debugging I see that the Process method gets called only once when the ASP.NET MVC 5 app starts.
If you need any more info, just ask... let's keep this evolving!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.