l10n
Namespace for localization-related functionality in the extension API. To use this properly, you must have l10n
defined in your extension manifest and have bundle.l10n.
Note: Built-in extensions (for example, Git, TypeScript Language Features, GitHub Authentication) are excluded from the l10n
property requirement. In other words, they do not need to specify a l10n
in the extension manifest because their translated strings come from Language Packs.
Functions
Marks a string for localization. If a localized bundle is available for the language specified by env.language and the bundle has a localized value for this message, then that localized value will be returned (with injected args values for any templated values).
Marks a string for localization. If a localized bundle is available for the language specified by env.language and the bundle has a localized value for this message, then that localized value will be returned (with injected args values for any templated values).