fix(i18n): another possible hotfix for wrong language, @lefnire this one works on my local computer but maybe it will not work on prod like the other one

This commit is contained in:
Matteo Pagliazzi 2014-05-18 20:19:50 +02:00
parent 65da01cd2a
commit 893164c535

View file

@ -4,7 +4,7 @@ moment = require 'moment'
i18n = require './i18n.coffee'
t = (string, vars) ->
func = (lang) ->
vars ?= lang
vars ?= {a: 'a'}
i18n.t(string, vars, lang)
func.i18nLangFunc = true #Trick to recognize this type of function
func