Git Product home page Git Product logo

wpapps / wp-pot-generator Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 0.0 81 KB

Github Actions WordPress Pot Generator

Home Page: https://wpapps.github.io/wp-pot-generator/

License: MIT License

Dockerfile 62.74% Shell 37.26%
wordpress-localization wordpress-pot wordpress-plugin wordpress-theme wordpress-i18n wordpress-pot-generator github-action github-wordpress github-actions-wordpress wordpress-translation

wp-pot-generator's Introduction

โš ๏ธ Note: To use this GitHub Action, you must have access to GitHub Actions. GitHub Actions are currently only available in public beta. You can apply for Github Actions beta access here.

WordPress Pot Generator - Github Action

This Action Generates POT Files for your wordpress Plugin / Theme based on the content inside Github Repo

Configuration

  • SAVE_PATH - Location / Path to save POT File Required
  • ITEM_SLUG - Slug of your WordPress Theme / Plugin Slug Required
  • DOMAIN - WordPress Theme / Plugin TextDomain
  • PACKAGE_NAME - WordPress Theme / Plugin Name
  • GITHUB_TOKEN - you do not need to generate one but you do have to explicitly make it available to the Action
  • HEADERS - Array in JSON format of custom headers which will be added to the POT file. Defaults to empty array.

Example Workflow File

workflow "Deploy" {
  resolves = ["WordPress Pot Generator"]
  on = "push"
}

action "WordPress Pot Generator" {
  uses = "varunsridharan/wordpress-pot-generator@master"
  env = {
    SAVE_PATH = "langs/filename.pot"
    ITEM_SLUG = "your-textdomain"
  }
  secrets = ["GITHUB_TOKEN"]
}

Contribute

If you would like to help, please take a look at the list of issues or the To Do checklist.

License

Our GitHub Actions are available for use and remix under the MIT license.

Copyright

2017 - 2018 Varun Sridharan, varunsridharan.in

If you find it useful, let me know ๐Ÿ˜‰

You can contact me on Twitter or through my email.

Backed By

DigitalOcean JetBrains Tidio Chat

wp-pot-generator's People

Contributors

varunsridharan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.