File tree 1 file changed +8
-7
lines changed
1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -611,13 +611,8 @@ Convert Slack short codes to emojis with the ``slack-emoji`` locale::
611
611
Text Emoji Transliteration
612
612
..........................
613
613
614
- Convert Github, Gitlab and Slack emojis to short codes with the ``emoji-text `` locale::
615
-
616
- $transliterator = EmojiTransliterator::create('emoji-text');
617
- $transliterator->transliterate('Breakfast with 🥝 or 🥛');
618
- // => 'Breakfast with :kiwifruit: or :milk-glass:
619
-
620
- Convert Github, Gitlab and Slack short codes to emojis with the ``text-emoji `` locale::
614
+ If you don't know where short codes come from, you can use the ``text-emoji `` locale.
615
+ This locale will convert Github, Gitlab and Slack short codes to emojis::
621
616
622
617
$transliterator = EmojiTransliterator::create('text-emoji');
623
618
// Github short codes
@@ -628,6 +623,12 @@ Convert Github, Gitlab and Slack short codes to emojis with the ``text-emoji`` l
628
623
$transliterator->transliterate('Breakfast with :kiwifruit: or :glass-of-milk:');
629
624
// => 'Breakfast with 🥝 or 🥛'
630
625
626
+ You can convert emojis to short codes with the ``emoji-text `` locale::
627
+
628
+ $transliterator = EmojiTransliterator::create('emoji-text');
629
+ $transliterator->transliterate('Breakfast with 🥝 or 🥛');
630
+ // => 'Breakfast with :kiwifruit: or :milk-glass:
631
+
631
632
Removing Emojis
632
633
~~~~~~~~~~~~~~~
633
634
You can’t perform that action at this time.
0 commit comments