-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using "Keywords" to keep the native block name #11370
Comments
Also the Slash function has some difficulties for non English user. See #10961. For example, Japanese user have to type a series of keys to select the Image block (=画像 block) Japanese off -> Keeping native block name is good idea. |
Related discussion: #6633. |
#13848 has landed which removes the limit of 3 keywords altogether. Now, the question is how to solve this particular issue. What if we take also the machine-generated name used in the process of the registration, apply some sanitization and include it as a keyword? E.g.:
|
/cc @mcsf @youknowriad |
I'd prefer if we start with keywords added manually instead. Some plugins might generate random names for blocks (dynamically) and these names serve as identifiers which means we shouldn't assume they are meaningful. |
Adding non-translatable keywords is also an option. We can start with it. |
I agree, this seems smaller and more predictable. Riad makes a good point about issues in automated generation of keywords. |
That sounds very dangerous as it might not work for all locales. Keywords simply being a comma separated list (as proposed #6633) is way better as it's more universally applicable. |
If #6633 yields a PR, feel free to close this one in favour of it, @swissspidy. |
Let's close this issue in favor of #6633. |
Hello,
I'm using WordPress in French but read lots of articles and Tutorials about Gutenberg project in English where Blocks name are the native (English) block name.
When we're using a WordPress in another language than english, it is not easy to find the block as the english name isn't show (it has been translated)
My idea is to automaticcaly add the native name of the block in the
keywords
params ofregisterBlockType()
The text was updated successfully, but these errors were encountered: