Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HostedPluginLocalizationService

Hierarchy

  • HostedPluginLocalizationService

Implements

  • BackendApplicationContribution

Index

Constructors

Properties

_ready: Deferred<void> = ...
envVariables: EnvVariablesServer
languagePackService: LanguagePackService
localizationDisposeMap: Map<string, Disposable> = ...
localizationProvider: LocalizationProvider
ready: Promise<void> = ...

This promise resolves when the cache has been cleaned up after starting the backend server. Once resolved, the service allows to cache localization files for plugins.

translationConfigFiles: Map<string, string> = ...

Methods

  • getLocalizationCacheDir(): Promise<string>
  • initialize(): MaybePromise<void>
  • Performs localization of the plugin model. Translates entries such as command names, view names and other items.

    Translatable items are indicated with a %id% value. The id is the translation key that gets replaced with the localized value for the currently selected language.

    Returns a copy of the plugin argument and does not modify the argument. This is done to preserve the original %id% values for subsequent invocations of this method.

    Parameters

    Returns Promise<DeployedPlugin>

  • undeployLocalizations(plugin: `${string}.${string}@${string}`): void
  • updateLanguagePackBundles(plugin: DeployedPlugin): Promise<Disposable>