@@ -33,6 +33,7 @@ import {
3333import { config } from '../config' ;
3434import './parser' ;
3535import { RegionParser , RegionEntry , RegionType } from './parser' ;
36+ import { $t } from '../../l10n/host' ;
3637
3738type RegionPair = [ RegionEntry , RegionEntry ] ;
3839
@@ -285,9 +286,17 @@ implements DocumentSymbolProvider, FoldingRangeProvider, RenameProvider
285286 ) ;
286287
287288 const command = `command:outline-map.context.goToLocation?${ GoToPairArgs } ` ;
288- const commandLabel = `Jump to ${
289- index === 0 ? 'end' : 'start'
290- } (Line ${ region [ 1 - index ] . identifier ?. range . start . line } )`;
289+
290+
291+ const commandLabel = $t (
292+ 'Jump to {anchor} ({line})' ,
293+ {
294+ anchor : index === 0 ? $t ( 'end' ) : $t ( 'start' ) ,
295+ line : $t ( 'Line {line}' , {
296+ line : region [ 1 - index ] . identifier ?. range . start . line ,
297+ } ) ,
298+ }
299+ ) ;
291300
292301 hoverMessage . appendMarkdown (
293302 `[${ commandLabel } ](${ command } )`
@@ -462,9 +471,9 @@ export class RegionCompletionProvider implements CompletionItemProvider {
462471 `${ this . startRegion } $\{1:name} $\{2:description}\n$0\n${ this . endRegion } $\{1:name}`
463472 ) ;
464473 const mdDocument = new MarkdownString (
465- 'Insert a region pair to fold the content between them'
474+ $t ( 'Insert a region pair to fold the content between them' )
466475 ) ;
467- const detail = 'Code Region (Outline-Map)' ;
476+ const detail = $t ( 'Code Region (Outline-Map)' ) ;
468477 mdDocument . appendCodeblock (
469478 `${ this . startRegion } name description\n...\n${ this . endRegion } name`
470479 ) ;
@@ -480,9 +489,9 @@ export class RegionCompletionProvider implements CompletionItemProvider {
480489 `${ this . tag } $\{1:name} $\{2:description}`
481490 ) ;
482491 const mdDocument = new MarkdownString (
483- 'Insert a tag to mark a specific point in the source code'
492+ $t ( 'Insert a tag to mark a specific point in the source code' )
484493 ) ;
485- const detail = 'Code Tag (Outline-Map)' ;
494+ const detail = $t ( 'Code Tag (Outline-Map)' ) ;
486495 mdDocument . appendCodeblock ( `${ this . tag } name description` ) ;
487496 const item = new CompletionItem ( this . tag , CompletionItemKind . Issue ) ;
488497 item . insertText = insertText ;
0 commit comments