Sha256: 74cfbb390f640f47ddfe510b735ab44b5cf41c737ad8450c71120319d960782a
Contents?: true
Size: 954 Bytes
Versions: 4
Compression:
Stored size: 954 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 Shared class LanguagesRenderer < TwitterCldr::Js::Renderers::Base def language_data TwitterCldr.get_locale_resource(@locale, :languages)[@locale][:languages] end def rtl_data TwitterCldr.supported_locales.inject({}) do |ret, locale| ret[locale] = TwitterCldr.get_locale_resource(locale, :layout)[locale][:layout][:orientation][:character_order] == "right-to-left" ret end end def get_data { :Languages => { :all => language_data(), :rtl_data => rtl_data() } } end end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems