Translation connection interface.

Hierarchy (view full)

Implements

Constructors

Properties

_serverSettings: undefined | ServerConnection.ISettings
_translationsUrl: string

Methods

  • Retrieve the list of items available from the data connector.

    Parameters

    • Optional query: string

      The optional query filter to apply to the connector request.

    Returns Promise<{
        ids: {
            language: string;
        }[];
        values: Language[];
    }>

    A promise that always rejects with an error.

    Notes

    Subclasses should reimplement if they support a back-end that can list.

  • Remove a value using the data connector.

    Parameters

    • id: {
          language: string;
      }

      The identifier for the data being removed.

      • language: string

    Returns Promise<any>

    A promise that always rejects with an error.

    Notes

    Subclasses should reimplement if they support a back-end that can remove.

  • Save a value using the data connector.

    Parameters

    • id: {
          language: string;
      }

      The identifier for the data being saved.

      • language: string
    • value: Language

      The data being saved.

    Returns Promise<any>

    A promise that always rejects with an error.

    Notes

    Subclasses should reimplement if they support a back-end that can save.