Sha256: 81a3016086482752f9eec9a9cb78502313e250490c68b89dd04f49fda2b38c8f
Contents?: true
Size: 763 Bytes
Versions: 4
Compression:
Stored size: 763 Bytes
Contents
# encoding: UTF-8 # Copyright 2012 Twitter, Inc # http://www.apache.org/licenses/LICENSE-2.0 module TwitterCldr module Js module Renderers module Shared class LanguagesRenderer < TwitterCldr::Js::Renderers::Base set_template "mustache/shared/languages.coffee" def language_data TwitterCldr.get_locale_resource(@locale, :languages)[@locale][:languages].to_json 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.to_json end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems