Add double quotes for localize hygiene check (#6492)

* Add localize single quote hygiene task

* Update localize calls

* Update comment

* Fix build failures and remove test code
This commit is contained in:
Charles Gagnon
2019-07-25 10:35:14 -07:00
committed by GitHub
parent 69845b29ef
commit b2b2840990
141 changed files with 651 additions and 630 deletions

View File

@@ -279,7 +279,7 @@ export abstract class ContainerBase<T> extends ComponentBase {
} else if (!index) {
this.items.push(new ItemDescriptor(componentDescriptor, config));
} else {
throw new Error(nls.localize('invalidIndex', 'The index is invalid.'));
throw new Error(nls.localize('invalidIndex', "The index is invalid."));
}
this.modelStore.eventuallyRunOnComponent(componentDescriptor.id, component => component.registerEventHandler(event => {
if (event.eventType === ComponentEventType.validityChanged) {

View File

@@ -62,7 +62,7 @@ export default class InputBoxComponent extends ComponentBase implements ICompone
return undefined;
} else {
return {
content: this.inputElement.inputElement.validationMessage || nls.localize('invalidValueError', 'Invalid value'),
content: this.inputElement.inputElement.validationMessage || nls.localize('invalidValueError', "Invalid value"),
type: MessageType.ERROR
};
}

View File

@@ -25,7 +25,7 @@ import * as nls from 'vs/nls';
`
})
export default class LoadingComponent extends ComponentBase implements IComponent, OnDestroy, AfterViewInit {
private readonly _loadingTitle = nls.localize('loadingMessage', 'Loading');
private readonly _loadingTitle = nls.localize('loadingMessage', "Loading");
private _component: IComponentDescriptor;
@Input() descriptor: IComponentDescriptor;

View File

@@ -17,7 +17,7 @@ import * as nls from 'vs/nls';
`
})
export default class LoadingSpinner {
private readonly _loadingTitle = nls.localize('loadingMessage', 'Loading');
private readonly _loadingTitle = nls.localize('loadingMessage', "Loading");
@Input() loading: boolean;
}

View File

@@ -101,7 +101,7 @@ export class QueryTextEditor extends BaseTextEditor {
}
protected getAriaLabel(): string {
return nls.localize('queryTextEditorAriaLabel', 'modelview code editor for view model.');
return nls.localize('queryTextEditorAriaLabel', "modelview code editor for view model.");
}
public layout(dimension?: DOM.Dimension) {