Skip to content

Multi-language support#163

Merged
BHess2653 merged 59 commits intoRelease3from
multiLang_Hess
May 22, 2018
Merged

Multi-language support#163
BHess2653 merged 59 commits intoRelease3from
multiLang_Hess

Conversation

@BHess2653
Copy link

currently uses English(en), Spanish(es), and Alien(al).

.env example: LANGUAGE=en

messages are located in bot/locale/messages.json sorted by controllers.

@BHess2653
Copy link
Author

Ready for Review and Release 3!

@brennondenny
Copy link
Contributor

brennondenny commented May 21, 2018

en, es, and al are all working with every command if it's in the scope add a check for the user's defined LANGUAGE in the .evn that it is an available option.

Other than that your good to merge! 👍

Copy link

@mattpezzente mattpezzente left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure to implement the default fallback in-case the LANGUAGE is not set int he .env, or incase an incorrect LANGUAGE is set.

const msg = require('../locale/messages.json');

const LANGUAGE = process.env.LANGUAGE;
const lang = process.env.LANGUAGE;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make a provision for setting the default language to en, incase no language is set in the .env.

return msg.verify.verifyEmailDenied[lang];
}
}
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure to default all languages to en. If none are set, or if an incorrect langauge is set, all messages appear as underfined in Discord.

@mpeck99
Copy link

mpeck99 commented May 22, 2018

Besides the changes requested above overall looks good!

@BHess2653
Copy link
Author

Changes have been made default Language is now en!

@brennondenny
Copy link
Contributor

brennondenny commented May 22, 2018

Looks like CircleCI found some ESLint Issues.

@BHess2653 BHess2653 merged commit 56aa120 into Release3 May 22, 2018
@reactivepixel reactivepixel deleted the multiLang_Hess branch August 21, 2019 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants