feat: internationalize API error messages

This commit is contained in:
Julian Lam
2021-07-09 11:40:05 -04:00
parent a54a3ee1ca
commit 7036c3751e
4 changed files with 26 additions and 17 deletions

View File

@@ -65,7 +65,7 @@ module.exports = function (middleware) {
return true;
}
throw new Error('[[errors:api.master-token-no-uid]]');
throw new Error('[[error:api.master-token-no-uid]]');
} else {
winston.warn('[api/authenticate] Unable to find user after verifying token');
return true;