Sha256: 33a615804a4cb5ad182d340d0ba5f456249555b893f618ec071f302ef3893e26
Contents?: true
Size: 420 Bytes
Versions: 20
Compression:
Stored size: 420 Bytes
Contents
# TODO list: # * load all locales # * pluralize @I18n = $.extend true, { locale: "en" translations: {} translate: (path, options = {}) -> path = path.split('.') if _.isString(path) scope = @translations for step in path scope = scope[step] return options['default'] ? path.join('.') unless scope? scope t: -> @translate arguments... }, @I18n
Version data entries
20 entries across 20 versions & 2 rubygems