Skip to content

teonimesic/language_switcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Language Switcher

This is a gem for Rails to easily change and iterate over languages defined in I18n.available_locales.

Usage

The most useful command should be language_switcher helper, which add a div and ul to allow to see an element in several different languages.

I also recommend using some tabbing with js, such as Jquery tabs:

$(document).ready(function(){                                                                   
   $('[data-tabs]').tabs();
});

language and each_language are also useful methods.

This is a pretty simple plugin, but i started to use the same set of methods in several projects and decided to make it a gem.

About

A gem to easily handling switching between I18n locales

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages