Skip to content
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

[TwigBridge] Add emojify twig filter #19773

Open
wants to merge 3 commits into
base: 7.1
Choose a base branch
from

Conversation

javiereguiluz
Copy link
Member

Fixes #19756.

@lyrixx if you can, please review this. Thanks!

@javiereguiluz javiereguiluz added this to the 7.1 milestone Apr 11, 2024
Copy link
Member

@lyrixx lyrixx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One little comment, otherwise 👍🏼

string.rst Outdated Show resolved Hide resolved
Copy link
Member

@lyrixx lyrixx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

Copy link
Contributor

@alamirault alamirault left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you Javier, I made some comments

``text``
**type**: ``string``

``catalog`` *(optional)*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When is null, default extension catalog is applied. It's "text" by default in construct.

I don't remember what is text behavior, but we should discribe this default ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

text locale must be documented first #19745

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I created #19919

.. code-block:: twig

{{ ':+1:'|emojify }} {# renders: 👍 #}
{{ ':+1:'|emojify('github') }} {# renders: 👍 #}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the rendering of an unknown value for the catalog ?

Adding an example could be great !

@OskarStark
Copy link
Contributor

Friendly ping @javiereguiluz

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

Successfully merging this pull request may close these issues.

[TwigBridge] Add emojify twig filter
4 participants