Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Adapter local-json

Adapter local-json is used to work with local JSON files.

Locales Directory

Example structure

.
└── locales
    ├── layout.json
    └── pages
        ├── index.json
        ├── page-1.json
        └── top-page
            ├── index.json
            └── sub-page-json

Pages

Path: ./locales/pages

The directory 'pages' defines the route structure.

Each file contains a route object from the 📖 Adapter Docs

Layout

Path: ./locales/layout.json

Contains all data required in the layout layer.

Example: Header, Footer

Configuration

Paths to the locales directory can be customized in the config.js of the adapter.