File tree 1 file changed +11
-5
lines changed
1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -613,6 +613,8 @@ Convert Slack short codes to emojis with the ``slack-emoji`` locale::
613
613
$transliterator->transliterate('Menus with :green_salad: or :falafel:');
614
614
// => 'Menus with 🥗 or 🧆'
615
615
616
+ .. _string-text-emoji :
617
+
616
618
Universal Emoji Short Codes Transliteration
617
619
###########################################
618
620
@@ -657,11 +659,15 @@ actual emoji thanks to the :ref:`emojify filter <reference-twig-filter-emojify>`
657
659
{{ 'My :turtle: loves to eat :green_salad:'|emojify('slack') }}
658
660
{# renders: My 🐢 loves to eat 🥗 #}
659
661
660
- {# if you are not sure about how the emojis were transliterated, you can
661
- use the 'text' catalog, which merges Slack, GitHub and GitLab text codes #}
662
- {{ 'I like :kiwi-fruit:'|emojify('text') }} {# renders: I like 🥝 #}
663
- {{ 'I like :kiwi:'|emojify('text') }} {# renders: I like 🥝 #}
664
- {{ 'I like :kiwifruit:'|emojify('text') }} {# renders: I like 🥝 #}
662
+ If you are not sure about how the emojis were transliterated, you can use the
663
+ :ref: `text-emoji catalog <string-text-emoji >`, which merges the emoji text codes
664
+ of all services:
665
+
666
+ .. code-block :: twig
667
+
668
+ {{ 'I like :kiwi-fruit:'|emojify('text-emoji') }} {# renders: I like 🥝 #}
669
+ {{ 'I like :kiwi:'|emojify('text-emoji') }} {# renders: I like 🥝 #}
670
+ {{ 'I like :kiwifruit:'|emojify('text-emoji') }} {# renders: I like 🥝 #}
665
671
666
672
Removing Emojis
667
673
~~~~~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments