H5P NodeJS Library
    Preparing search index...

    Scans a semantic structure and localizes the label, placeholder and description fields. You can also localize all fields by passing the respective option.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Localizes all localizable fields in the semantic structure.

      Parameters

      • semantics: any

        the semantics object

      • language: string

        the language to localize to

      • OptionallocalizeAllFields: boolean

        true if not only label, placeholder and description should be localized but all fields

      Returns any

      a copy of the semantic structure with localized fields