Comments (2)
For now, you can do const {__} = wp.i18n;
anywhere in your block and use the __()
method. Where are you wanting i18n at? If it's input field labels and placeholders, i can add it to those components automatically. But within your own block you will need to use the i18n function wordpress provides
from gutenblock.
Thank you very much, for me it's mainly in my custom blocks so the const {__} = wp.i18n;
will be perfect
from gutenblock.
Related Issues (17)
- Repeat - Delete Button -> Add a class for styling HOT 2
- Add ability to change ports HOT 7
- How to add css or scss? HOT 11
- InspectorControls HOT 7
- Updating plugin in docker WP erases folder and fails HOT 1
- Child/attribute based repeating inputs HOT 1
- webpack-serve deprecated HOT 2
- Error in watch in windows HOT 1
- Use with npx? HOT 2
- Gutenburg 4.x support HOT 1
- Missing loader? HOT 7
- Uncaught Error: only one instance of @babel/polyfill is allowed HOT 9
- Fix project prefix HOT 1
- MySql error on starting Docker HOT 4
- Repeat Field doesn't seem to work inside editor HOT 9
- WP Admin - Plugin update screen HOT 6
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 gutenblock.