Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.

I18n #121

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

I18n #121

wants to merge 2 commits into from

Conversation

maximebj
Copy link
Contributor

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
Contributor Author

Any news?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant