@kkdev92/vscode-ext-kit - v4.1.1
    Preparing search index...

    Interface FakeLocalization

    In-memory localization capability for tests.

    interface FakeLocalization {
        language: string;
        requested: readonly LocalizedMessage[];
        _addBundle(entries: Readonly<Record<string, string>>): void;
        _setLanguage(language: string): void;
        translate(message: LocalizedMessage): string;
    }

    Hierarchy

    • LocalizationCapability
      • FakeLocalization
    Index
    language: string

    The host's display language, as a BCP 47 tag ('en', 'ja-JP', ...).

    requested: readonly LocalizedMessage[]

    Every message asked for, in order, before placeholders were filled.

    • Adds bundle entries, keyed by the source message the code passes to t. A message with no entry falls through untranslated, as VS Code's own bundle lookup does. Translator comments are still recorded in requested but do not form a second lookup key in this focused fake.

      Parameters

      • entries: Readonly<Record<string, string>>

      Returns void