Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Brazilian Portuguese (pt-BR) language code to fix Issue #115 #153

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

paulorcvieira
Copy link

The value received in let { word, language, version } = req.params in app.js on line 70 is converted to lowercase on line 91 language = language.toLowerCase(); however when checking if this value exists on line 94 if (!utils.isLanguageSupported(language)) { return handleError.call(res, new errors.NoDefinitionsFound()); } is returned false due to the value being in capital letters in modules/utils.js ('pt-BR', // Brazilian Portuguese), thus an error is returned

img1
img2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant