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

    Function importMsgProject

    • Dynamically imports MsgProject from i18n/projects by project name.

      Parameters

      • projectsDir: string

        Absolute path to i18n/projects

      • projectName: string

        Project name (filename without extension)

      Returns Promise<{ locales: { targetLocales: Record<string, string[]> } }>

      Promise resolving to MsgProject-like object with targetLocales

      Error if project cannot be loaded