Sha256: b2933ec1869b5c114c85702bc0fa11d4fe507e54fd63736dd391076435b986c0

Contents?: true

Size: 1.14 KB

Versions: 1

Compression:

Stored size: 1.14 KB

Contents

###
// Copyright 2012 Twitter, Inc
// http://www.apache.org/licenses/LICENSE-2.0

// TwitterCLDR (JavaScript) v{{version}}
// Authors:     Cameron Dutro [@camertron]
                Kirill Lashuk [@KL_7]
                portions by Sven Fuchs [@svenfuchs]
// Homepage:    https://twitter.com
// Description: Provides date, time, number, and list formatting functionality for various Twitter-supported locales in Javascript.
###

{{#source_map}}
###
//@ sourceMappingURL={{locale}}.map
###
{{/source_map}}

# required alias definition that adds twitter_cldr to Twitter's static build process
###<<module_def>>###

TwitterCldr = {}
{{> utilities}}
{{{contents}}}

TwitterCldr.get_available_locales = -> {{{available_locales}}}

TwitterCldr.set_data = (bundle) ->
  TwitterCldr.data = bundle
  null

TwitterCldr.get_data = ->
  if (TwitterCldr.data)?
  	TwitterCldr.data
  else
  	throw 'Data not set'

TwitterCldr.is_data_set = ->
  return (TwitterCldr.data)?

root = if exports?
  exports
else
  this.TwitterCldr = {}
  this.TwitterCldr

root[key] = obj for key, obj of TwitterCldr

if this.TwitterCldrDataBundle?
  TwitterCldr.set_data(this.TwitterCldrDataBundle)


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
twitter_cldr_js-3.3.0 lib/twitter_cldr/js/mustache/bundle.coffee