Skip to content
main
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

GlotPress - Local development environment

Prerequisites

  • Git
  • Docker
  • Node/NPM

Setup

  1. git clone https://github.com/amieiro/glotpress-env
  2. cd glotpress-env
  3. npm install
  4. npm run start (This will provision some git checkouts as needed).
  5. Visit site at http://localhost:8888 .
  6. To access to GlotPress, please, click here.

Import data

Execute:

npm run wp-env run cli wp glotpress import-originals core wp-content/uploads/wordpress.po &&

npm run wp-env run cli wp glotpress import-originals themes/twenty-twenty wp-content/uploads/twenty-twenty.po &&

npm run wp-env run cli wp glotpress import-originals themes/twenty-twenty-one wp-content/uploads/twenty-twenty-one.po &&

npm run wp-env run cli wp glotpress import-originals plugins/akismet wp-content/uploads/akismet.po &&

npm run wp-env run cli wp glotpress import-originals plugins/woocommerce wp-content/uploads/woocommerce.po &&

npm run wp-env run cli wp glotpress import-originals plugins/jetpack wp-content/uploads/jetpack.po

Useful commands

  • Start and provision the environment: npm run start
  • Stop the environment: npm run stop
  • Destroy the environment: npm run destroy
  • Destroy and reprovision the environment: npm run destroy-and-provision

More info

This tool is based on WordPress Theme Directory - Local development environment.

This tool uses the @wordpress/env Docker environment.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published