Sha256: 53b096c736bd119bbf5c63be423a20a2038f4b2bbce458944e745985cdd964be
Contents?: true
Size: 379 Bytes
Versions: 1
Compression:
Stored size: 379 Bytes
Contents
class GlobalizeTranslationsController < ApplicationController respond_to :json def index # returns {"default_locale":"en","pl":{"hello.world":"Witaj \u015bwiecie","hello.earth":"Witaj ziemio"},"en":{"hello.world":"Hello world","hello.earth":"Hello Earth"}} respond_with I18n.backend.available_translations.merge({ :default_locale => I18n.default_locale }) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
exvo_globalize-0.0.1 | app/controllers/globalize_translations_controller.rb |