You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I really appreciate what you did with this package.
It is really useful and very simple to use. I would like to create a custom template to display language selection in a different (and more complicated) way, for example with Bootstrap Button dropdowns http://getbootstrap.com/components/#btn-dropdowns
var requestedLanguage = event.target.getAttribute('data-language');
if(requestedLanguage) {
console.log("setting language as: " + requestedLanguage);
TAPi18n.setLanguage(requestedLanguage);
}
with
TAPi18n.setLanguageAmplify(this.tag)
And it should work. The context of this (or @ in coffee) will contain all the information about the language, so this.tag is the language tab. We use setLanguageAmplify in order to make it 'sticky' so if a user navigates back at a later date it remembers the language.
By the way, feel free to submit a Pull Request if you add this and we can include it in the main package!
Hi,
I really appreciate what you did with this package.
It is really useful and very simple to use. I would like to create a custom template to display language selection in a different (and more complicated) way, for example with Bootstrap Button dropdowns
http://getbootstrap.com/components/#btn-dropdowns
I see I can create a static template, starting from this
https://github.com/TAPevents/tap-i18n-ui/blob/master/frameworks/i18n_ui_bootstrap.html
such as
But I cannot understand I can bind language changing on click
Can you suggest me how to start?
Thanks!!
The text was updated successfully, but these errors were encountered: