CodBi
    Preparing search index...

    Function formMessage

    • Similar to pluginMessage, but attempts to take the localized message from the I18N variables configured in the formcycle application, if available.

      This allows users to add custom translations for other languages that frontend forms should support.

      Parameters

      • lang: string

        Target language

      • key:
            | "apiDoc.dialog.input.label.prefix"
            | "designer.category.codbi_panel"
            | "designer.property.config_template"
            | "designer.property.config_template.option.default"
            | "designer.property.config_template.option.xtensible"
            | "designer.property.enable_codbi"
            | "designer.property.standards"
            | "form.test_string"
            | "plugin.form_designer_resource.desc"
            | "plugin.form_designer_resource.name"
            | "plugin.form_properties_extension.desc"
            | "plugin.form_properties_extension.name"
            | "plugin.form_render_callback.desc"
            | "plugin.form_render_callback.name"
            | "plugin.form_resources.desc"
            | "plugin.form_resources.name"

        Message key.

      • formI18n: Record<string, string>

        Map with the I18N variables configured in the formcycle application.

      Returns string

      Localized message.