Dev Roar Lab API Documentation - v1.6.0
    Preparing search index...
    • Retrieves all projects from the projects content directory

      Main entry point for fetching project data with optional locale filtering. Automatically resolves the projects directory path from the project root.

      Parameters

      • Optionallocale: string

        Optional locale code (e.g., 'ja', 'en') to filter projects by language

      Returns { metadata: Metadata; slug: string; content: string }[]

      Array of project objects with metadata, slug, and content

      // Get all projects
      const allProjects = getProjects()

      // Get only English projects
      const enProjects = getProjects('en')

      // Access project data
      allProjects.forEach(project => {
      console.log(project.metadata.title)
      console.log(project.slug)
      console.log(project.content)
      })