Function transformPathToI18nPrefix

  • Transforms a given path to a prefix which can be used for i18n keys. Returns 'root' for empty paths and removes array indices

    Parameters

    • path: string

    Returns string