Skip to content

Commit 1e554a2

Browse files
committed
Fix CR issues
1 parent 21be0dd commit 1e554a2

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

string.rst

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -611,13 +611,8 @@ Convert Slack short codes to emojis with the ``slack-emoji`` locale::
611611
Text Emoji Transliteration
612612
..........................
613613

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::
621616

622617
$transliterator = EmojiTransliterator::create('text-emoji');
623618
// Github short codes
@@ -628,6 +623,12 @@ Convert Github, Gitlab and Slack short codes to emojis with the ``text-emoji`` l
628623
$transliterator->transliterate('Breakfast with :kiwifruit: or :glass-of-milk:');
629624
// => 'Breakfast with 🥝 or 🥛'
630625

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+
631632
Removing Emojis
632633
~~~~~~~~~~~~~~~
633634

0 commit comments

Comments
 (0)