mirror of
https://github.com/reality/dbot.git
synced 2024-11-23 20:39:25 +01:00
change default lang to en so no crash
This commit is contained in:
parent
238e204d85
commit
e648068b1c
2
run.js
2
run.js
@ -90,7 +90,7 @@ DBot.prototype.t = function(string, formatData) {
|
|||||||
if(_.has(this.strings, string)) {
|
if(_.has(this.strings, string)) {
|
||||||
var lang = this.config.language;
|
var lang = this.config.language;
|
||||||
if(!_.has(this.strings[string], lang)) {
|
if(!_.has(this.strings[string], lang)) {
|
||||||
lang = "english";
|
lang = "en";
|
||||||
}
|
}
|
||||||
|
|
||||||
formattedString = this.strings[string][lang].format(formatData);
|
formattedString = this.strings[string][lang].format(formatData);
|
||||||
|
Loading…
Reference in New Issue
Block a user