Skip to content

Commit db222ca

Browse files
committed
add lang hack
1 parent d9e5001 commit db222ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/languages.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ function init(options) {
9999
}
100100

101101
Object.keys(srcLang).forEach(function(key) {
102-
dstLang[key] = strings.replaceParams(srcLang[key], [subs, options]);
102+
var src = process.env["HFT_LANG_" + key.toUpperCase()] || srcLang[key];
103+
dstLang[key] = strings.replaceParams(src, [subs, options]);
103104
});
104105

105106
g.langs[key] = dstLang;

0 commit comments

Comments
 (0)