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.
Optional
Optional locale code (e.g., 'ja', 'en') to filter projects by language
Array of project objects with metadata, slug, and content
// Get all projectsconst allProjects = getProjects()// Get only English projectsconst enProjects = getProjects('en')// Access project dataallProjects.forEach(project => { console.log(project.metadata.title) console.log(project.slug) console.log(project.content)}) Copy
// Get all projectsconst allProjects = getProjects()// Get only English projectsconst enProjects = getProjects('en')// Access project dataallProjects.forEach(project => { console.log(project.metadata.title) console.log(project.slug) console.log(project.content)})
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.