@worldware/msg-cli
    Preparing search index...

    Function extractResourceFromXliffFile

    • Extracts MsgResource from parsed XLIFF 2.x object for a single file element.

      Parameters

      • fileEl: Record<string, unknown>

        Parsed file element

      • xliffTrgLang: string | undefined

        trgLang from xliff root (may be undefined for monolingual)

      • project: { locales: { targetLocales: Record<string, string[]> } }

        MsgProject instance

      • targetLocales: string[]

        Array of supported target locale keys

      Returns MsgResource | null

      MsgResource or null if file should be skipped (monolingual or unsupported locale)