Giter Club home page Giter Club logo

Comments (3)

timwright12 avatar timwright12 commented on August 14, 2024

@ivanlopez What would this look like in practice? Is it something we can include on all projects or is it more conditional?

from theme-scaffold.

colorful-tones avatar colorful-tones commented on August 14, 2024

@ivanlopez @timwright12

I did some discovery on this today. Since this Issue was opened over a year ago a lot has changed, but not much at the same time 😄

It seems that WP-CLI (wp i18n) is the most practical means to generate POT files, and it covers PHP and JS. Whereas, there are other methods, but they take set up and either cover just JS (@wordpress/babel-plugin-makepot) or PHP.

I imagine that POT file generation for a project is something that is done later on in the build, and closer to the end. Automation is tricky. Probably not impossible, but current documentation is lacking.

I would think this is project specific and would surface as a conversation early on in the build if i18n is critical. I do not currently see it being something that would be practical, nor needed within the Theme Scaffold.

Resources:

from theme-scaffold.

dainemawer avatar dainemawer commented on August 14, 2024

I like the idea of using wp i18n here. Wondering if we can build this into the build-release NPM script? Or something similar? That we we don't have to worry about it every time. The other option, of course is to rather keep this out of the theme scaffold and rather include it in our deploy-scripts ? I'll defer to someone else for advice / insight there.

from theme-scaffold.

Related Issues (20)

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.