mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-12 23:08:35 +00:00
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:
parent
65da01cd2a
commit
893164c535
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue