Comments (3)
@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.
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:
- https://github.com/wp-cli/i18n-command
- https://www.smashingmagazine.com/2018/01/internationalize-your-wordpress-website/
- ahmadawais/create-guten-block#24 (comment)
- https://github.com/swissspidy/gutenberg-i18n-block
- https://pascalbirchler.com/internationalization-in-wordpress-5-0/
- https://wordpress.org/gutenberg/handbook/designers-developers/developers/internationalization/
- https://developer.wordpress.org/plugins/internationalization/how-to-internationalize-your-plugin/
from theme-scaffold.
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)
- Consider Adopting Parcel HOT 5
- Inline global declarations in the config files generate eslint errors. HOT 3
- Avoid transpiling upstream dependencies HOT 1
- Add `@wordpress/scripts` like auto generation of wp script dependencies HOT 3
- Add styling for wide and full alignment
- Change default alignment of the `core/media-text` block to `none`
- Add .env to support things like overriding the proxied url HOT 1
- Remove eslint from webpack. HOT 2
- Update loading for the block CSS file
- Is `TenUpScaffold\ Overrides\setup();` missing on purpose HOT 2
- Update stylelint HOT 2
- Add ARIA Landmarks to Skeleton HTML
- Add Gutenberg Specific CSS Partial
- Implement Asynchronous CSS HOT 8
- editor-style.css path
- node_modules added to eslintignore HOT 3
- Gutenberg block set up structure.
- SVGs are cropped upon deployment HOT 1
- Add Dynamic Import and Code Splitting Support to Webpack
- PHP warning: function 'FbSustainability\Core\js_disabled_stylesheets' not found
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from theme-scaffold.