Skip to content

Instantly share code, notes, and snippets.

View Tronix117's full-sized avatar

Jeremy TRUFIER Tronix117

View GitHub Profile
@Tronix117
Tronix117 / I18n.coffee
Created November 19, 2012 02:11
I18n - JavaScript and CoffeeScript
###
# I18n class
# Allow you to add Internationalization to your CoffeeScript application
#
# Just call it with a `require 'util/I18n'` or `new I18n` if you don't have a `require` system
# More informations here: https://github.com/Tronix117/tradify
# Translation files should be saved in `locales/{langage code}.coffee`
#
# Then you can translate everything with `tr('{0} day', numberOfDay)`
#