Sha256: fadf338835f0e477e0f9218c7fde58f8268af8e14e18e9b9a4329a6a0ae9d241
Contents?: true
Size: 712 Bytes
Versions: 4
Compression:
Stored size: 712 Bytes
Contents
# encoding: UTF-8 # Copyright 2012 Twitter, Inc # http://www.apache.org/licenses/LICENSE-2.0 module TwitterCldr module Js module Renderers module Data module Settings class SettingsRenderer < TwitterCldr::Js::Renderers::Base def is_rtl TwitterCldr::Shared::Languages.is_rtl?(self[:locale]) end def current_locale self[:locale] end def get_data { :Settings => { :is_rtl => is_rtl(), :locale => current_locale() } } end end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems