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

    Function calculateRelativePath

    • Calculates the relative path from the i18n projects directory to the l10n translations directory.

      Parameters

      • projectsDir: string

        Absolute path to i18n/projects (e.g. root/i18n/projects)

      • translationsDir: string

        Absolute path to l10n/translations (e.g. root/l10n/translations)

      Returns string

      Relative path string from projects to translations, suitable for import()