Interface PostProcessorModule

Used to extend or manipulate the translated values before returning them in t function. Need to be a singleton object.

interface PostProcessorModule {
    name: string;
    type: "postProcessor";
    process(value, key, options, translator): string;
}

Hierarchy (view full)

Properties

Methods

Properties

name: string

Unique name

type: "postProcessor"

Methods

  • Parameters

    • value: string
    • key: string | string[]
    • options: TOptions
    • translator: any

    Returns string