Skip to content

Commit 7f3a7ed

Browse files
authored
Localize emmet using l10n.t (microsoft#165568)
Ref microsoft#164438
1 parent 62ee5bf commit 7f3a7ed

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

extensions/emmet/src/abbreviationActions.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@
44
*--------------------------------------------------------------------------------------------*/
55

66
import * as vscode from 'vscode';
7-
import * as nls from 'vscode-nls';
87
import { Node, HtmlNode, Rule, Property, Stylesheet } from 'EmmetFlatNode';
98
import { getEmmetHelper, getFlatNode, getHtmlFlatNode, getMappingForIncludedLanguages, validate, getEmmetConfiguration, isStyleSheet, getEmmetMode, parsePartialStylesheet, isStyleAttribute, getEmbeddedCssNodeIfAny, allowedMimeTypesInScriptTag, toLSTextDocument, isOffsetInsideOpenOrCloseTag } from './util';
109
import { getRootNode as parseDocument } from './parseDocument';
1110

12-
const localize = nls.loadMessageBundle();
1311
const trimRegex = /[\u00a0]*[\d#\-\*\u2022]+\.?/;
1412
const hexColorRegex = /^#[\da-fA-F]{0,6}$/;
1513

@@ -250,7 +248,7 @@ export async function wrapWithAbbreviation(args: any): Promise<boolean> {
250248
return '';
251249
}
252250

253-
const prompt = localize('wrapWithAbbreviationPrompt', "Enter Abbreviation");
251+
const prompt = vscode.l10n.t("Enter Abbreviation");
254252
const inputAbbreviation = (args && args['abbreviation'])
255253
? (args['abbreviation'] as string)
256254
: await vscode.window.showInputBox({ prompt, validateInput: inputChanged });

0 commit comments

Comments
 (0)