translate via i18next

This commit is contained in:
Gautier Pelloux-Prayer 2019-02-24 10:21:54 +01:00
parent a8c9bf0c6d
commit f54d72644b
20 changed files with 1410 additions and 155 deletions

View file

@ -22,7 +22,7 @@ BR.Util = {
},
getError: function(xhr) {
var msg = 'no response from server';
var msg = i18next.t('warning.no-response');
if (xhr.responseText) {
msg = xhr.responseText;
} else if (xhr.status || xhr.statusText) {