Skip to content

Commit

Permalink
Merge pull request #332 from matheustav/br-lang
Browse files Browse the repository at this point in the history
Added 'br' language for Brazilian Portuguese, since 'languages' package doesn't handle it
  • Loading branch information
DoctorMcKay authored Jul 7, 2023
2 parents 0364310 + cb50fda commit 3652b13
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ function TradeOfferManager(options) {
} else if (this._language == 'tzh') {
this._language = 'zh';
this._languageName = 'tchinese';
} else if (this._language == 'br') {
this._language = 'pt-BR';
this._languageName = 'brazilian';
} else {
var lang = require('languages').getLanguageInfo(this._language);
if (!lang.name) {
Expand Down

0 comments on commit 3652b13

Please sign in to comment.