Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ghost-theme-locales

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ghost-theme-locales

CLI tool to create locale json files in Ghost themes

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Ghost Theme Locales (gtl)

CLI tool to create locale json files in Ghost themes.

Table of Contents

  • Installation
  • Preparation
  • Usage
  • Commands
  • Developer Setup
  • Copyright & License

Installation

Ensure you have Node.js installed. Then, install GTL globally using npm:

npm install -g ghost-theme-locales

or install locally in your project:

npm install -D ghost-theme-locales

Preparation

Before using this tool prepare your theme files. Use {{t}} in your .hbs files to make the hard coded strings translatable. Know more about {{t}} helper here at Ghost official documentation.

After preparing your theme you can use this tool to generate your language file.

Usage

gtl <command> [options]

Commands

gtl

gtl [option]
OptionDescription
--versionOutput the version number
--helpOutput usage information

gtl create

gtl c [options]

or

gtl create [options]
OptionDescriptionDefault
-l , --languageLanguage codeen
-f , --forceRewriteForce rewrite existing locales file even if it has no new stringsfalse

Developer Setup

  1. Fork this repo
  2. git clone https://github.com/<your-username>/ghost-theme-locales.git path/to/your/workspace
  3. cd path/to/your/workspace
  4. npm install

To run the CLI using your workspace files

  1. npm link
  2. gtl <command> [options] ( you can run anywhere on your system)

Keywords

FAQs

Package last updated on 25 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc