jnicklas / gibberish_attributes
gibberish_attributes
PublicAn extension that adds attributes in different languages to Gibberish, ohh, the fun!
8 filesupdated Jun 18, 2026
files7Download
./libJun 17, 2026./specJun 17, 2026.gitignoreJun 17, 2026init.rbJun 17, 2026LICENSEJun 17, 2026RakefileJun 17, 2026READMEJun 18, 2026README
templater
Gibberish attributes is an extension to the gibberish localization plugin, which allows a class's attributes to automatically map to different language versions, like this:
class MyClass
include GibberishAttributes
attr_accessor :title_en, :title_es, :title_de
translate :title
end
a = MyClass.new
a.title #=> nil
a.title = "monkey"
a.title #=> "monkey"
Gibberish.current_language = :de
a.title #=> nil
a.title = "affe"
a.title #=> "affe"
Gibberish.current_language = :en
a.title #=> "monkey"
And that is it