diff --git a/build/lib/i18n.ts b/build/lib/i18n.ts index 2dbfe63bca2a80024839da69ea336dd8196ef637..ee75ac1ec01479878d52dbca72d0c25e5d97c7a2 100644 --- a/build/lib/i18n.ts +++ b/build/lib/i18n.ts @@ -24,7 +24,7 @@ function log(message: any, ...rest: any[]): void { } export interface Language { - id: string; // laguage id, e.g. zh-tw, de + id: string; // language id, e.g. zh-tw, de translationId?: string; // language id used in translation tools, e.g zh-hant, de (optional, if not set, the id is used) folderName?: string; // language specific folder name, e.g. cht, deu (optional, if not set, the id is used) } @@ -1370,4 +1370,4 @@ function decodeEntities(value: string): string { function pseudify(message: string) { return '\uFF3B' + message.replace(/[aouei]/g, '$&$&') + '\uFF3D'; -} \ No newline at end of file +} diff --git a/build/lib/task.js b/build/lib/task.js index 4555bbdd068c18847f5b97b46357f5fc58845a49..f1e6e3f6245ded770b71706abfb5f9a61da32fa6 100644 --- a/build/lib/task.js +++ b/build/lib/task.js @@ -32,7 +32,7 @@ async function _doExecute(task) { // Always invoke as if it were a callback task return new Promise((resolve, reject) => { if (task.length === 1) { - // this is a calback task + // this is a callback task task((err) => { if (err) { return reject(err); diff --git a/build/lib/task.ts b/build/lib/task.ts index b1a0c903f801872d6f9f4ec4929f91dc7c56152d..4e571ec9294cde9210d7a06ee649a889752ee5b9 100644 --- a/build/lib/task.ts +++ b/build/lib/task.ts @@ -54,7 +54,7 @@ async function _doExecute(task: Task): Promise { // Always invoke as if it were a callback task return new Promise((resolve, reject) => { if (task.length === 1) { - // this is a calback task + // this is a callback task task((err) => { if (err) { return reject(err); @@ -122,4 +122,4 @@ export function define(name: string, task: Task): Task { task.taskName = name; task.displayName = name; return task; -} \ No newline at end of file +} diff --git a/build/npm/update-localization-extension.js b/build/npm/update-localization-extension.js index 50dcaca3eb6d7e757140dc4bcdefaef6b830a988..b1656dc88f447d6930d53706cc5bafa44526f278 100644 --- a/build/npm/update-localization-extension.js +++ b/build/npm/update-localization-extension.js @@ -74,7 +74,7 @@ function update(options) { let translationPaths = []; i18n.pullI18nPackFiles(server, userName, apiToken, { id: languageId }, translationPaths) .on('error', (error) => { - console.log(`Error occured while importing translations:`); + console.log(`Error occurred while importing translations:`); translationPaths = undefined; if (Array.isArray(error)) { error.forEach(console.log); @@ -100,7 +100,7 @@ function update(options) { gulp.src(path.join(location, languageId, '**', '*.xlf')) .pipe(i18n.prepareI18nPackFiles(i18n.externalExtensionsWithTranslations, translationPaths, languageId === 'ps')) .on('error', (error) => { - console.log(`Error occured while importing translations:`); + console.log(`Error occurred while importing translations:`); translationPaths = undefined; if (Array.isArray(error)) { error.forEach(console.log); diff --git a/build/tsconfig.json b/build/tsconfig.json index 46ad745bc23d30040a83714b58066941aa2cb65c..df15ccdd1beb46f26b14096af41f6fdebea8be70 100644 --- a/build/tsconfig.json +++ b/build/tsconfig.json @@ -8,7 +8,7 @@ "resolveJsonModule": true, "experimentalDecorators": true, // enable JavaScript type checking for the language service - // use the tsconfig.build.json for compiling wich disable JavaScript + // use the tsconfig.build.json for compiling which disable JavaScript // type checking so that JavaScript file are not transpiled "allowJs": true, "checkJs": true, @@ -22,4 +22,4 @@ "exclude": [ "node_modules/**" ] -} \ No newline at end of file +}