diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 620981e664..19de7789ef 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -67,7 +67,7 @@ The challenge hints and articles will still be available on the forum which we h We do intend to make the curriculum available in more languages, right now we do not have a timeline for this. -We will begin by making the curriculum available in *Chinese* first. This will help us understand the caveats and the streamline the development workflows. China is one of the largest demographic regions in terms of our non-english audience. It is hence an ideal candiate for the internationalization (i18n). We currently have hundreds of thousands of users using an old version of the platform. +We will begin by making the curriculum available in *Chinese* first. This will help us understand the caveats and the streamline the development workflows. China is one of the largest demographic regions in terms of our non-english audience. It is hence an ideal candidate for the internationalization (i18n). We currently have hundreds of thousands of users using an old version of the platform. The next languages to follow would be *Arabic, Portuguese, Russian and Spanish* in no particular order. For Portuguese and Spanish we will focus on Latin America as our target demographic region based on the audience we have. diff --git a/api-server/public/json/bootcamps.json b/api-server/public/json/bootcamps.json index 19b016607c..1bbbaea491 100644 --- a/api-server/public/json/bootcamps.json +++ b/api-server/public/json/bootcamps.json @@ -39,7 +39,7 @@ "chicago" ] }, { - "name": "General Asssembly", + "name": "General Assembly", "cost": "11500", "housing": "500", "finance": true, diff --git a/api-server/server/boot/certificate.js b/api-server/server/boot/certificate.js index 88cb48772d..81e4768bfd 100644 --- a/api-server/server/boot/certificate.js +++ b/api-server/server/boot/certificate.js @@ -70,7 +70,7 @@ function ifNoSuperBlock404(req, res, next) { return res.status(404).end(); } -const renderCertifedEmail = loopback.template( +const renderCertifiedEmail = loopback.template( path.join(__dirname, '..', 'views', 'emails', 'certified.ejs') ); @@ -186,7 +186,7 @@ function sendCertifiedEmail( Congratulations on completing all of the freeCodeCamp certifications! `, - text: renderCertifedEmail({ + text: renderCertifiedEmail({ username, name }) diff --git a/api-server/server/boot/randomAPIs.js b/api-server/server/boot/randomAPIs.js index 4990728ff5..2c9d8e3efe 100644 --- a/api-server/server/boot/randomAPIs.js +++ b/api-server/server/boot/randomAPIs.js @@ -13,8 +13,8 @@ module.exports = function(app) { const User = app.models.User; router.get('/api/github', githubCalls); - router.get('/u/:email', unsubscribeDepricated); - router.get('/unsubscribe/:email', unsubscribeDepricated); + router.get('/u/:email', unsubscribeDeprecated); + router.get('/unsubscribe/:email', unsubscribeDeprecated); router.get('/ue/:unsubscribeId', unsubscribeById); router.get( '/the-fastest-web-page-on-the-internet', @@ -48,7 +48,7 @@ module.exports = function(app) { }); } - function unsubscribeDepricated(req, res) { + function unsubscribeDeprecated(req, res) { req.flash( 'info', 'We are no longer able to process this unsubscription request. ' + diff --git a/api-server/server/boot_tests/challenge.test.js b/api-server/server/boot_tests/challenge.test.js index 8f574698c3..a481fdd23d 100644 --- a/api-server/server/boot_tests/challenge.test.js +++ b/api-server/server/boot_tests/challenge.test.js @@ -164,7 +164,7 @@ describe('boot/challenge', () => { expect(result).toEqual(requestedChallengeUrl); }); - it('can handle non-url-complient challenge names', () => { + it('can handle non-url-compliant challenge names', () => { const challenge = { ...mockChallenge, superBlock: 'my awesome' }; const expected = '/learn/my-awesome/actual/challenge'; const result = buildChallengeUrl(challenge); diff --git a/api-server/server/middlewares/error-reporter.js b/api-server/server/middlewares/error-reporter.js index f3d338d421..d9af236994 100644 --- a/api-server/server/middlewares/error-reporter.js +++ b/api-server/server/middlewares/error-reporter.js @@ -33,7 +33,7 @@ export function reportError(err) { : console.error(err); } -export default function errrorReporter() { +export default function errorReporter() { if ( process.env.FREECODECAMP_NODE_ENV !== 'production' && process.env.ERROR_REPORTER === 'true' diff --git a/api-server/server/models/donation.js b/api-server/server/models/donation.js index 6b8db5ea89..5f43c8067e 100644 --- a/api-server/server/models/donation.js +++ b/api-server/server/models/donation.js @@ -43,7 +43,7 @@ export default function(Donation) { function seedTheCache() { return new Promise((resolve, reject) => Observable.defer(activeDonationsQuery$).subscribe(count => { - log('activeDonator count: %d', count); + log('activeDonor count: %d', count); activeDonationCountCache.update(() => count); return resolve(); }, reject) @@ -55,7 +55,7 @@ export default function(Donation) { () => Observable.defer(activeDonationsQuery$).subscribe( count => { - log('activeDonator count: %d', count); + log('activeDonor count: %d', count); return activeDonationCountCache.update(() => count); }, err => { diff --git a/api-server/server/models/donation.json b/api-server/server/models/donation.json index 1ae4684821..c1280e8db3 100644 --- a/api-server/server/models/donation.json +++ b/api-server/server/models/donation.json @@ -1,6 +1,6 @@ { "name": "Donation", - "description": "A representaion of a donation to freeCodeCamp", + "description": "A representation of a donation to freeCodeCamp", "plural": "donations", "base": "PersistedModel", "idInjection": true, @@ -46,7 +46,7 @@ "customerId": { "type": "string", "required": true, - "description": "The providers reference for the donator" + "description": "The providers reference for the donor" } }, "validations": [ diff --git a/client/plugins/gatsby-remark-node-identity/gatsby-node.js b/client/plugins/gatsby-remark-node-identity/gatsby-node.js index 531ca54ef5..c92927b05e 100644 --- a/client/plugins/gatsby-remark-node-identity/gatsby-node.js +++ b/client/plugins/gatsby-remark-node-identity/gatsby-node.js @@ -7,7 +7,7 @@ exports.onCreateNode = function remarkNodeIdentityOnCreateNode( 'Please supply a predicate function to `gatsby-plugin-identity`' ); } - if (typeof identity !== 'string' || identity.lenght === 0) { + if (typeof identity !== 'string' || identity.length === 0) { reporter.panic( '`gatsby-plugin-identity` requires an identify string to add to nodes ' + 'that match the predicate' diff --git a/client/src/components/AppMountNotifier.js b/client/src/components/AppMountNotifier.js index 5d921c577c..af32321c71 100644 --- a/client/src/components/AppMountNotifier.js +++ b/client/src/components/AppMountNotifier.js @@ -9,7 +9,7 @@ const mapStateToProps = () => ({}); const mapDispatchToProps = dispatch => bindActionCreators({ appMount }, dispatch); -class AppMountNotifer extends Component { +class AppMountNotifier extends Component { componentDidMount() { return this.props.appMount(); } @@ -18,8 +18,8 @@ class AppMountNotifer extends Component { } } -AppMountNotifer.displayName = 'AppMountNotifier'; -AppMountNotifer.propTypes = { +AppMountNotifier.displayName = 'AppMountNotifier'; +AppMountNotifier.propTypes = { appMount: PropTypes.func.isRequired, render: PropTypes.func.isRequired }; @@ -27,4 +27,4 @@ AppMountNotifer.propTypes = { export default connect( mapStateToProps, mapDispatchToProps -)(AppMountNotifer); +)(AppMountNotifier); diff --git a/client/src/components/Donation/DonateFormChildViewForHOC.js b/client/src/components/Donation/DonateFormChildViewForHOC.js index db57f7e9a7..8e73e1b578 100644 --- a/client/src/components/Donation/DonateFormChildViewForHOC.js +++ b/client/src/components/Donation/DonateFormChildViewForHOC.js @@ -53,7 +53,7 @@ class DonateFormChildViewForHOC extends Component { ...initialState, donationAmount: this.props.donationAmount, donationDuration: this.props.donationDuration, - isSubmitionValid: null, + isSubmissionValid: null, email: null, isEmailValid: true, isFormValid: false @@ -96,12 +96,12 @@ class DonateFormChildViewForHOC extends Component { if ((!isEmailValid, !isFormValid)) { return this.setState({ - isSubmitionValid: false + isSubmissionValid: false }); } this.setState({ - isSubmitionValid: null + isSubmissionValid: null }); const email = this.getUserEmail(); @@ -228,12 +228,12 @@ class DonateFormChildViewForHOC extends Component { } renderDonateForm() { - const { isEmailValid, isSubmitionValid, email } = this.state; + const { isEmailValid, isSubmissionValid, email } = this.state; const { getDonationButtonLabel, theme, defaultTheme } = this.props; return (