@ascentbv/ts-common - v1.0.123
    Preparing search index...

    Class RawtextUtilAbstract

    Index

    Constructors

    Methods

    • Creates a translatable raw message using the given translation key and optional arguments.

      Parameters

      • translateKey: string

        The language key (e.g., "example.key")

      • OptionalwithArray: WithArray

        Optional arguments for the translation

      Returns RawMessage

      A RawMessage with translate and optionally with

    • Shorthand for translating keys under the configured namespace.

      Parameters

      • translateKey: string | string[]

        Either a string key or array of keys (e.g., "confirm", ["yes", "no"])

      • OptionalwithArray: WithArray

        Optional replacement values

      Returns RawMessage

      A RawMessage for the translation

    • Shorthand for translating UI keys under the configured namespace.

      Parameters

      • translateKey: string | string[]

        Either a string key or array of keys (e.g., "confirm", ["yes", "no"])

      • OptionalwithArray: WithArray

        Optional replacement values

      Returns RawMessage

      A RawMessage for the UI translation

    • Shorthand for translating text keys under the configured namespace.

      Parameters

      • translateKey: string | string[]

        Either a string key or array of keys (e.g., "confirm", ["yes", "no"])

      • OptionalwithArray: WithArray

        Optional replacement values

      Returns RawMessage

      A RawMessage for the text translation

    • Shorthand for translating actionbar keys under the configured namespace.

      Parameters

      • translateKey: string | string[]

        Either a string key or array of keys (e.g., "confirm", ["yes", "no"])

      • OptionalwithArray: WithArray

        Optional replacement values

      Returns RawMessage

      A RawMessage for the actionbar translation

    • Resolves a UI translation into a readable string. Falls back to [Missing lang: key] or [Invalid rawtext: key] if unresolved.

      Parameters

      • key: string

        The UI translation key

      • OptionalwithArray: WithArray

        Optional replacements

      Returns string

      The resolved string or fallback