Skip to content

Commit

Permalink
Added 'br' language for Brazilian Portuguese, since 'languages' packa…
Browse files Browse the repository at this point in the history
…ge doesn't handle it
  • Loading branch information
matheustav committed Jan 4, 2023
1 parent c32dc57 commit cb50fda
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 cb50fda

Please sign in to comment.