Skip to content

tarikkavaz/Payload-Localized-Website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Payload CMS Multi-Language Website Boilerplate

This is a website boilerplate for Payload CMS with localization. It is a modified version of the Payload CMS Localization Example

Setup

  1. git clone https://github.com/tarikkavaz/Payload-Localized-Website.git Clone the repository
  2. cd Payload-Localized-Website Navigate to the project directory
  3. cp .env.example .env (copy the .env.example file to .env)
  4. docker compose up
  5. Seed your database in the admin panel (see below)

Seed

To seed the database with a few pages and posts you can click the 'seed database' link from the admin panel. The seed contains English and Turkish pages and posts.

Add Locale

To add a locale to the app, edit the file src/i18n/localization.ts . Add your locale code and name as a label. The file is self-explanatory.

Difference

You can see the difference between the initial and current codebase in the difference.md file.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published