@grandlinex/bundle-multilang
    Preparing search index...

    Class GLang

    GLang class for managing language data.

    Index
    code: string
    doneSet: Set<string>
    map: Map<string, string>
    missingSet: Set<string>
    • Retrieves a translation for a given key. If the key is not found, it returns the key itself.

      Parameters

      • key: string

        The key to retrieve the translation for.

      Returns string

      The translation string or the key if not found.

    • Parameters

      • key: string
      • ...data: (string | number)[]

      Returns string

    • Loads a development language object into the GLang instance.

      Parameters

      • lang: Record<string, string>

        The development language object to load, where keys are strings and values are translations.

      Returns void