AdonisJS API
    Preparing search index...

    Interface TranslationsFormatterContract

    A translations formatter is responsible for formatting a string based translation to an output value.

    Custom formatters must implement the following interface

    interface TranslationsFormatterContract {
        name: string;
        format(message: string, locale: string, data?: Record<string, any>): string;
    }
    Index
    name: string
    • Formats a message for the current locale

      Parameters

      • message: string
      • locale: string
      • Optionaldata: Record<string, any>

      Returns string