Skip to content

I18n - #121

Closed
maximebj wants to merge 2 commits into
CommandCodeAI:masterfrom
maximebj:i18n
Closed

I18n#121
maximebj wants to merge 2 commits into
CommandCodeAI:masterfrom
maximebj:i18n

Conversation

@maximebj

Copy link
Copy Markdown

Hi !

A small PR to handle i18n into CGB.
It doesn't need a lot of things in order to work:

  • a textdomain
  • the news function wp_set_script_translation to send translations to JS file

Docs:
https://make.wordpress.org/core/2018/11/09/new-javascript-i18n-support-in-wordpress/

I used <% blockName %> to auto generate textdomain name. I just hope it create a dashed separated name (but I think so, as it's already used for CSS).

Tell me if you see anything wrong.
Hope it's useful !

@maximebj

Copy link
Copy Markdown
Author

Any news?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants