Flarum (v1.8.10)
    Preparing search index...
    Index

    Constructors

    Properties

    formatter: RichMessageFormatter = ...

    The underlying ICU MessageFormatter util.

    translations: Translations = {}

    A map of translation keys to their translated values.

    Methods

    • An extensible entrypoint for extenders to register type handlers for translations.

      Returns {
          plural: (
              value: string,
              matches: string,
              locale: string,
              values: Record<string, any>,
              format: (text: string, values: Record<string, any>) => string,
          ) => string;
          select: (
              value: string,
              matches: string,
              locale: string,
              values: Record<string, any>,
              format: (text: string, values: Record<string, any>) => string,
          ) => string;
      }