Polyglot Language Switcher is a JavaScript component which allows you to display a popup with the languages supported by your website.
This component has 3 implementations:
- jQuery Plugin
- AngularJS Directive
- ReactJS Component
License: MIT License
Can you please add an arab flag? Like Saudi Arabia
Is there any documentation? I could not find anything. The provided link does not work...
It would be good for the user experience if the popup closed when the user clicks on the language selector once more
change required:
Line 163 replace
openPopup($popup, settings);
with
if ( settings._model.status == 'opened') {
closePopup($popup, settings);
} else {
openPopup($popup, settings);
}
Please remove all the href="#" from the anchors.
It interferes with the states, since the url will get changes on click and an update will redirect.
Hi there,
Thank you for this plugin. It is very useful.I am facing a problem i will try to describe.
I am making an $http() call, in which i get the current users language.
When i receive this language i wan't the language switcher to change to the selected language.
I have tried doing this by setting a $scope variable to the current language when the request is finish and databind this to the selected-lang attribute:
selected-lang="{{languagePreference}}"
This approach does not work. Can you point me in the right direction of getting the behaviour i want?
Thank you.
Hi, I'm from cdnjs, we have hosted your lib on our CDN service site. Recently, we want to add auto-update config for your lib, our auto-update mechanism depend on git tags, so could you please add git tags for this lib?
Thank you!
Would it be possible to add the functionality that the currently selected language is not displayed in the dropdown list of available languages?
I believe v1 of your plugin offered this and this is really the only thing I'm missing from v2 of your great plugin. Thanks.
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.