Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace Localization

Index

Functions

  • format(message: string, args: FormatType[]): string
  • format(message: string, args: Record<string | number, FormatType>): string
  • localize(localization: undefined | Localization, key: string, defaultValue: string, ...args: FormatType[]): string
  • normalize(value: string): string
  • This function normalizes values from VSCode's localizations, which often contain additional mnemonics (&&). The normalization removes the mnemonics from the input string.

    Parameters

    • value: string

      Localization value coming from VSCode

    Returns string

    A normalized localized value

  • transformKey(key: string): string