Sha256: 8004c66ca9f03b1f78c109e15371a931d50410f999ae414b14c919ffc168b4cc
Contents?: true
Size: 405 Bytes
Versions: 3
Compression:
Stored size: 405 Bytes
Contents
class StaticController < ApplicationController NAMES = { :en => "UK English", # default is US, but we priorize en_GB in app/initializers/fb-localizer.rb :es => "Spain's Spanish", :it => "Italian", :ca => "Catalan", :pt => "Portugal's Portuguese", :tl => "Klingon" } def index @locale = params[:locale] ? params[:locale].to_sym : I18n.locale @names = NAMES end end
Version data entries
3 entries across 3 versions & 1 rubygems