Options
All
  • Public
  • Public/Protected
  • All
Menu

Module translation

Index

Type Aliases

TranslationBundle: IRenderMime.TranslationBundle

Bundle of gettext-based translation functions for a specific domain.

Variables

ITranslator: Token<ITranslator>
ITranslatorConnector: Token<ITranslatorConnector>
nullTranslator: NullTranslator

The application null translator instance that just returns the same text. Also provides interpolation.

Functions

  • requestTranslationsAPI<T>(translationsUrl?: string, locale?: string, init?: RequestInit, serverSettings?: ServerConnection.ISettings): Promise<T>
  • Call the API extension

    Type Parameters

    • T

    Parameters

    • Optional translationsUrl: string
    • Optional locale: string

      API REST end point for the extension

    • Optional init: RequestInit

      Initial values for the request

    • Optional serverSettings: ServerConnection.ISettings

    Returns Promise<T>

    The response body interpreted as JSON

Generated using TypeDoc