API

 

TranspileExtender

This interface defines a method that a custom transpile extender has to implement:

interface TranspileExtender {
  transpile(
    format: string,
    data: FormatData
  ): string | undefined;
}

transpile()

Creates a localized string for the provided value.

format
A name that identifies the format to apply.
data
The localization information for the parameter interpolation.

Returns the value formatted according to the active language and the provided parameters.