No commit activity in last 3 years
No release in over 3 years
This gem adds a few methods to switch between locales, and a helper to be used with jquery tabs or some other js tabbing behavior, to be able to change locales within a view for Rails
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 2.0.0.beta.13

Runtime

>= 3.0.0.beta4
 Project Readme

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.