Skip to content

Commit

Permalink
show raw error msg on web, fix #524, fix #636
Browse files Browse the repository at this point in the history
  • Loading branch information
ffdfgdfg committed Oct 5, 2020
1 parent b5c0b4d commit 2c3126c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/static/js/language.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ var postsubmit;

function langreply(langstr) {
var langobj = languages['content']['reply'][langstr.replace(/[\s,\.\?]*/g,"").toLowerCase()];
if ($.type(langobj) == 'undefined') return langobj
if ($.type(langobj) == 'undefined') return langstr
langobj = (langobj[languages['current']] || langobj[languages['default']] || langstr);
return langobj
}
Expand Down

0 comments on commit 2c3126c

Please sign in to comment.