Code Monkey home page Code Monkey logo

polyglot-language-switcher-2's Introduction

Polyglot Language Switcher 2

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:

  1. jQuery Plugin
  2. AngularJS Directive
  3. ReactJS Component

polyglot-language-switcher-2's People

Contributors

ixtendio avatar poqdavid avatar mbriskar avatar

Stargazers

 avatar Ajinkya Puar avatar bo2lin avatar  avatar AntScript avatar Emre avatar Darryle Steplight avatar Lukas Pradel avatar ali yeganeh avatar Joseph Kesisoglou avatar Adam-Michal-Prague avatar Vladimir avatar Washaweb avatar Peter Eberle avatar  avatar  avatar  avatar Christian Leicht  avatar  avatar  avatar Viraj G. Kulkarni (विराज गु. कुलकर्णी) avatar Suriyaa Sundararuban avatar Troy Rollins avatar  avatar maitokuwahara avatar  avatar Jiri Melcak avatar Eric Ting avatar

Watchers

James Cloos avatar  avatar

polyglot-language-switcher-2's Issues

Arab flag

Can you please add an arab flag? Like Saudi Arabia

Documentation?

Is there any documentation? I could not find anything. The provided link does not work...

Jquery plugin, close popup behaviour

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);
}

Change language based on async HTTP call

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.

Add git tags

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!

cdnjs/cdnjs#5771

Hide currently selected language from dropdown list

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.