Skip to content

An custom element for landing pages that provides the preference language from browser via javascript

Notifications You must be signed in to change notification settings

horacioibrahim/lp-ugettext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lp-ugettext

lp-ugettext provides the language from browser via javascript. It's based in the piece of code of the Hamid posted in StackOverflow. It's was polymered! Stack

Usage

<body unresolved>


        <!-- end elements -->
        <lp-ugettext></lp-ugettext>

        <script>
          window.addEventListener('polymer-ready', function(e) {
            var uget = document.querySelector('lp-ugettext');
            console.log("mylanguage" + uget.language);
          });
        </script>
</body>

About

An custom element for landing pages that provides the preference language from browser via javascript

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages