This is a template and library files for Webmaker’s Language picker which is being used in all Webmaker’s tools.
Install
bower install webmaker-language-picker --save
JS Dependencies:
requirejs
selectizejs
fuzzySearch
listjs
CSS Dependencies:
font-awesome
hint.css
What’s included?
# Main js file
js/
languages.js
# Language Picker
template/
languages.html // Main file for full page
partial.html // Use in header or footer
alllanguages.html // dropdown with all languages/locales
# LESS file
styles/
languages.less
Webmaker Language Picker
This is a template and library files for Webmaker’s Language picker which is being used in all Webmaker’s tools.
Install
JS Dependencies:
CSS Dependencies:
What’s included?
Usage for language.html
Include these in your require-config paths:
Initialize:
// Call this when the element is ready languages.ready({ position: “top”, arrow: “left” });
Usage for partial.html
Include these in your require-config paths:
Initialize:
Usage for supportedLanguages.html
Include these in your require-config paths:
“selectize”: “path/to/selectize/dist/js/standalone/selectize.min”,
Initialize:
NOTE:
supportedLanguages.htmltemplate expect list of locales, see the file here.Usage for alllanguages.html
Include these in your require-config paths:
Initialize:
NOTE:
alllanguages.htmltemplate expect list of locales, see the file here.