fix mispell

This commit is contained in:
Keyi Xie 2019-04-09 13:21:46 +08:00
parent 56f1b4795f
commit 172a32d5c6
No known key found for this signature in database
GPG key ID: 70E97BC5AD9C6E3E
5 changed files with 9 additions and 9 deletions

View file

@ -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';
}
}

View file

@ -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);

View file

@ -54,7 +54,7 @@ async function _doExecute(task: Task): Promise<void> {
// 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;
}
}

View file

@ -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);

View file

@ -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/**"
]
}
}