Adopt l10n for npm package (#165527)

For #164438
This commit is contained in:
Matt Bierner
2022-11-04 13:56:39 -07:00
committed by GitHub
parent ac26690ed8
commit 952bbb6720
9 changed files with 31 additions and 50 deletions

View File

@@ -12,13 +12,12 @@ import {
languages,
TextDocument,
Uri,
workspace
workspace,
l10n
} from 'vscode';
import * as nls from 'vscode-nls';
import { findPreferredPM } from './preferred-pm';
import { readScripts } from './readScripts';
const localize = nls.loadMessageBundle();
const enum Constants {
ConfigKey = 'debug.javascript.codelens.npmScripts',
@@ -71,7 +70,7 @@ export class NpmScriptLensProvider implements CodeLensProvider, Disposable {
return [];
}
const title = '$(debug-start) ' + localize('codelens.debug', 'Debug');
const title = '$(debug-start) ' + l10n.t("Debug");
const cwd = path.dirname(document.uri.fsPath);
if (this.lensLocation === 'top') {
return [