Module: Babilu
- Defined in:
- lib/babilu.rb
Defined Under Namespace
Modules: ControllerMethods
Classes: Railtie
Constant Summary
collapse
- JAVASCRIPT =
File.read(File.join(File.dirname(__FILE__), 'javascripts', 'babilu.js'))
Class Method Summary
collapse
Class Method Details
.default_locale ⇒ Object
20
21
22
|
# File 'lib/babilu.rb', line 20
def self.default_locale
I18n.default_locale
end
|
.generate ⇒ Object
7
8
9
10
11
12
13
14
|
# File 'lib/babilu.rb', line 7
def self.generate
Lucy.generate("locales") do |g|
g.namespace = "I18n"
g[:defaultLocale] = default_locale
g[:translations] = translations
g << methods
end
end
|
.methods ⇒ Object
24
25
26
|
# File 'lib/babilu.rb', line 24
def self.methods
JAVASCRIPT
end
|