mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
10 lines
221 B
CoffeeScript
10 lines
221 B
CoffeeScript
i18n = require '../i18n.coffee'
|
|
t = (string, vars) ->
|
|
func = (lang) ->
|
|
vars ?= {a: 'a'}
|
|
i18n.t(string, vars, lang)
|
|
func.i18nLangFunc = true #Trick to recognize this type of function
|
|
func
|
|
|
|
module.exports = t
|