Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bd4c57f

Browse filesBrowse files
bug #49147 [Intl] Generate all emoji short name returned by slack api (adnen-chouibi)
This PR was squashed before being merged into the 6.2 branch. Discussion ---------- [Intl] Generate all emoji short name returned by slack api | Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | no | License | MIT | Doc PR | NA I have been utilizing the slack-emoji helper to convert country codes to flag emojis. I propose to standardize all flags by using the format :flag-countryCode: for all flags, or maybe create another helper especially for flags. Additionally, I suggest incorporating all emojis returned in the 'short_names' array, rather than relying solely on the 'short_name' value. I have improved the file naming process by generating the file name in the builder, rather than in the 'saveRules' method. Commits ------- 86742ce [Intl] Generate all emoji short name returned by slack api
2 parents 840fd5c + 86742ce commit bd4c57f
Copy full SHA for bd4c57f

File tree

3 files changed

+82
-13
lines changed
Filter options

3 files changed

+82
-13
lines changed

‎src/Symfony/Component/Intl/Resources/data/transliterator/emoji/slack-emoji.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Intl/Resources/data/transliterator/emoji/slack-emoji.php
+61Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@
6060
':female-police-officer:' => '👮‍♀️',
6161
':male-police-officer:' => '👮‍♂️',
6262
':women-with-bunny-ears-partying:' => '👯‍♀️',
63+
':woman-with-bunny-ears-partying:' => '👯‍♀️',
6364
':men-with-bunny-ears-partying:' => '👯‍♂️',
65+
':man-with-bunny-ears-partying:' => '👯‍♂️',
6466
':woman_with_veil:' => '👰‍♀️',
6567
':man_with_veil:' => '👰‍♂️',
6668
':blond-haired-woman:' => '👱‍♀️',
@@ -290,6 +292,7 @@
290292
':flag-cl:' => '🇨🇱',
291293
':flag-cm:' => '🇨🇲',
292294
':cn:' => '🇨🇳',
295+
':flag-cn:' => '🇨🇳',
293296
':flag-co:' => '🇨🇴',
294297
':flag-cp:' => '🇨🇵',
295298
':flag-cr:' => '🇨🇷',
@@ -300,6 +303,7 @@
300303
':flag-cy:' => '🇨🇾',
301304
':flag-cz:' => '🇨🇿',
302305
':de:' => '🇩🇪',
306+
':flag-de:' => '🇩🇪',
303307
':flag-dg:' => '🇩🇬',
304308
':flag-dj:' => '🇩🇯',
305309
':flag-dk:' => '🇩🇰',
@@ -313,6 +317,7 @@
313317
':flag-eh:' => '🇪🇭',
314318
':flag-er:' => '🇪🇷',
315319
':es:' => '🇪🇸',
320+
':flag-es:' => '🇪🇸',
316321
':flag-et:' => '🇪🇹',
317322
':flag-eu:' => '🇪🇺',
318323
':flag-fi:' => '🇫🇮',
@@ -321,8 +326,11 @@
321326
':flag-fm:' => '🇫🇲',
322327
':flag-fo:' => '🇫🇴',
323328
':fr:' => '🇫🇷',
329+
':flag-fr:' => '🇫🇷',
324330
':flag-ga:' => '🇬🇦',
325331
':gb:' => '🇬🇧',
332+
':uk:' => '🇬🇧',
333+
':flag-gb:' => '🇬🇧',
326334
':flag-gd:' => '🇬🇩',
327335
':flag-ge:' => '🇬🇪',
328336
':flag-gf:' => '🇬🇫',
@@ -357,10 +365,12 @@
357365
':flag-ir:' => '🇮🇷',
358366
':flag-is:' => '🇮🇸',
359367
':it:' => '🇮🇹',
368+
':flag-it:' => '🇮🇹',
360369
':flag-je:' => '🇯🇪',
361370
':flag-jm:' => '🇯🇲',
362371
':flag-jo:' => '🇯🇴',
363372
':jp:' => '🇯🇵',
373+
':flag-jp:' => '🇯🇵',
364374
':flag-ke:' => '🇰🇪',
365375
':flag-kg:' => '🇰🇬',
366376
':flag-kh:' => '🇰🇭',
@@ -369,6 +379,7 @@
369379
':flag-kn:' => '🇰🇳',
370380
':flag-kp:' => '🇰🇵',
371381
':kr:' => '🇰🇷',
382+
':flag-kr:' => '🇰🇷',
372383
':flag-kw:' => '🇰🇼',
373384
':flag-ky:' => '🇰🇾',
374385
':flag-kz:' => '🇰🇿',
@@ -438,6 +449,7 @@
438449
':flag-ro:' => '🇷🇴',
439450
':flag-rs:' => '🇷🇸',
440451
':ru:' => '🇷🇺',
452+
':flag-ru:' => '🇷🇺',
441453
':flag-rw:' => '🇷🇼',
442454
':flag-sa:' => '🇸🇦',
443455
':flag-sb:' => '🇸🇧',
@@ -482,6 +494,7 @@
482494
':flag-um:' => '🇺🇲',
483495
':flag-un:' => '🇺🇳',
484496
':us:' => '🇺🇸',
497+
':flag-us:' => '🇺🇸',
485498
':flag-uy:' => '🇺🇾',
486499
':flag-uz:' => '🇺🇿',
487500
':flag-va:' => '🇻🇦',
@@ -503,12 +516,17 @@
503516
':u6708:' => '🈷️',
504517
':thermometer:' => '🌡️',
505518
':mostly_sunny:' => '🌤️',
519+
':sun_small_cloud:' => '🌤️',
506520
':barely_sunny:' => '🌥️',
521+
':sun_behind_cloud:' => '🌥️',
507522
':partly_sunny_rain:' => '🌦️',
523+
':sun_behind_rain_cloud:' => '🌦️',
508524
':rain_cloud:' => '🌧️',
509525
':snow_cloud:' => '🌨️',
510526
':lightning:' => '🌩️',
527+
':lightning_cloud:' => '🌩️',
511528
':tornado:' => '🌪️',
529+
':tornado_cloud:' => '🌪️',
512530
':fog:' => '🌫️',
513531
':wind_blowing_face:' => '🌬️',
514532
':hot_pepper:' => '🌶️',
@@ -627,6 +645,7 @@
627645
':snowman:' => '☃️',
628646
':comet:' => '☄️',
629647
':phone:' => '☎️',
648+
':telephone:' => '☎️',
630649
':ballot_box_with_check:' => '☑️',
631650
':shamrock:' => '☘️',
632651
':point_up:' => '☝️',
@@ -653,6 +672,7 @@
653672
':hammer_and_pick:' => '⚒️',
654673
':crossed_swords:' => '⚔️',
655674
':medical_symbol:' => '⚕️',
675+
':staff_of_aesculapius:' => '⚕️',
656676
':scales:' => '⚖️',
657677
':alembic:' => '⚗️',
658678
':gear:' => '⚙️',
@@ -676,6 +696,7 @@
676696
':scissors:' => '✂️',
677697
':airplane:' => '✈️',
678698
':email:' => '✉️',
699+
':envelope:' => '✉️',
679700
':v:' => '✌️',
680701
':writing_hand:' => '✍️',
681702
':pencil2:' => '✏️',
@@ -747,6 +768,7 @@
747768
':waxing_crescent_moon:' => '🌒',
748769
':first_quarter_moon:' => '🌓',
749770
':moon:' => '🌔',
771+
':waxing_gibbous_moon:' => '🌔',
750772
':full_moon:' => '🌕',
751773
':waning_gibbous_moon:' => '🌖',
752774
':last_quarter_moon:' => '🌗',
@@ -829,6 +851,7 @@
829851
':bento:' => '🍱',
830852
':stew:' => '🍲',
831853
':fried_egg:' => '🍳',
854+
':cooking:' => '🍳',
832855
':fork_and_knife:' => '🍴',
833856
':tea:' => '🍵',
834857
':sake:' => '🍶',
@@ -896,6 +919,7 @@
896919
':checkered_flag:' => '🏁',
897920
':snowboarder:' => '🏂',
898921
':runner:' => '🏃',
922+
':running:' => '🏃',
899923
':surfer:' => '🏄',
900924
':sports_medal:' => '🏅',
901925
':trophy:' => '🏆',
@@ -923,6 +947,7 @@
923947
':department_store:' => '🏬',
924948
':factory:' => '🏭',
925949
':izakaya_lantern:' => '🏮',
950+
':lantern:' => '🏮',
926951
':japanese_castle:' => '🏯',
927952
':european_castle:' => '🏰',
928953
':waving_black_flag:' => '🏴',
@@ -964,7 +989,9 @@
964989
':bug:' => '🐛',
965990
':ant:' => '🐜',
966991
':bee:' => '🐝',
992+
':honeybee:' => '🐝',
967993
':ladybug:' => '🐞',
994+
':lady_beetle:' => '🐞',
968995
':fish:' => '🐟',
969996
':tropical_fish:' => '🐠',
970997
':blowfish:' => '🐡',
@@ -979,6 +1006,7 @@
9791006
':dromedary_camel:' => '🐪',
9801007
':camel:' => '🐫',
9811008
':dolphin:' => '🐬',
1009+
':flipper:' => '🐬',
9821010
':mouse:' => '🐭',
9831011
':cow:' => '🐮',
9841012
':tiger:' => '🐯',
@@ -997,6 +1025,7 @@
9971025
':panda_face:' => '🐼',
9981026
':pig_nose:' => '🐽',
9991027
':feet:' => '🐾',
1028+
':paw_prints:' => '🐾',
10001029
':eyes:' => '👀',
10011030
':ear:' => '👂',
10021031
':nose:' => '👃',
@@ -1007,17 +1036,21 @@
10071036
':point_left:' => '👈',
10081037
':point_right:' => '👉',
10091038
':facepunch:' => '👊',
1039+
':punch:' => '👊',
10101040
':wave:' => '👋',
10111041
':ok_hand:' => '👌',
10121042
':+1:' => '👍',
1043+
':thumbsup:' => '👍',
10131044
':-1:' => '👎',
1045+
':thumbsdown:' => '👎',
10141046
':clap:' => '👏',
10151047
':open_hands:' => '👐',
10161048
':crown:' => '👑',
10171049
':womans_hat:' => '👒',
10181050
':eyeglasses:' => '👓',
10191051
':necktie:' => '👔',
10201052
':shirt:' => '👕',
1053+
':tshirt:' => '👕',
10211054
':jeans:' => '👖',
10221055
':dress:' => '👗',
10231056
':kimono:' => '👘',
@@ -1027,6 +1060,7 @@
10271060
':handbag:' => '👜',
10281061
':pouch:' => '👝',
10291062
':mans_shoe:' => '👞',
1063+
':shoe:' => '👞',
10301064
':athletic_shoe:' => '👟',
10311065
':high_heel:' => '👠',
10321066
':sandal:' => '👡',
@@ -1040,8 +1074,12 @@
10401074
':woman:' => '👩',
10411075
':family:' => '👪',
10421076
':man_and_woman_holding_hands:' => '👫',
1077+
':woman_and_man_holding_hands:' => '👫',
1078+
':couple:' => '👫',
10431079
':two_men_holding_hands:' => '👬',
1080+
':men_holding_hands:' => '👬',
10441081
':two_women_holding_hands:' => '👭',
1082+
':women_holding_hands:' => '👭',
10451083
':cop:' => '👮',
10461084
':dancers:' => '👯',
10471085
':bride_with_veil:' => '👰',
@@ -1098,10 +1136,13 @@
10981136
':bomb:' => '💣',
10991137
':zzz:' => '💤',
11001138
':boom:' => '💥',
1139+
':collision:' => '💥',
11011140
':sweat_drops:' => '💦',
11021141
':droplet:' => '💧',
11031142
':dash:' => '💨',
11041143
':hankey:' => '💩',
1144+
':poop:' => '💩',
1145+
':shit:' => '💩',
11051146
':muscle:' => '💪',
11061147
':dizzy:' => '💫',
11071148
':speech_balloon:' => '💬',
@@ -1147,13 +1188,15 @@
11471188
':notebook_with_decorative_cover:' => '📔',
11481189
':closed_book:' => '📕',
11491190
':book:' => '📖',
1191+
':open_book:' => '📖',
11501192
':green_book:' => '📗',
11511193
':blue_book:' => '📘',
11521194
':orange_book:' => '📙',
11531195
':books:' => '📚',
11541196
':name_badge:' => '📛',
11551197
':scroll:' => '📜',
11561198
':memo:' => '📝',
1199+
':pencil:' => '📝',
11571200
':telephone_receiver:' => '📞',
11581201
':pager:' => '📟',
11591202
':fax:' => '📠',
@@ -1229,6 +1272,7 @@
12291272
':hammer:' => '🔨',
12301273
':nut_and_bolt:' => '🔩',
12311274
':hocho:' => '🔪',
1275+
':knife:' => '🔪',
12321276
':gun:' => '🔫',
12331277
':microscope:' => '🔬',
12341278
':telescope:' => '🔭',
@@ -1278,6 +1322,7 @@
12781322
':clock1230:' => '🕧',
12791323
':man_dancing:' => '🕺',
12801324
':middle_finger:' => '🖕',
1325+
':reversed_hand_with_middle_finger_extended:' => '🖕',
12811326
':spock-hand:' => '🖖',
12821327
':black_heart:' => '🖤',
12831328
':mount_fuji:' => '🗻',
@@ -1292,6 +1337,7 @@
12921337
':smile:' => '😄',
12931338
':sweat_smile:' => '😅',
12941339
':laughing:' => '😆',
1340+
':satisfied:' => '😆',
12951341
':innocent:' => '😇',
12961342
':smiling_imp:' => '😈',
12971343
':wink:' => '😉',
@@ -1389,6 +1435,7 @@
13891435
':taxi:' => '🚕',
13901436
':oncoming_taxi:' => '🚖',
13911437
':car:' => '🚗',
1438+
':red_car:' => '🚗',
13921439
':oncoming_automobile:' => '🚘',
13931440
':blue_car:' => '🚙',
13941441
':truck:' => '🚚',
@@ -1482,12 +1529,14 @@
14821529
':robot_face:' => '🤖',
14831530
':hugging_face:' => '🤗',
14841531
':the_horns:' => '🤘',
1532+
':sign_of_the_horns:' => '🤘',
14851533
':call_me_hand:' => '🤙',
14861534
':raised_back_of_hand:' => '🤚',
14871535
':left-facing_fist:' => '🤛',
14881536
':right-facing_fist:' => '🤜',
14891537
':handshake:' => '🤝',
14901538
':crossed_fingers:' => '🤞',
1539+
':hand_with_index_and_middle_fingers_crossed:' => '🤞',
14911540
':i_love_you_hand_sign:' => '🤟',
14921541
':face_with_cowboy_hat:' => '🤠',
14931542
':clown_face:' => '🤡',
@@ -1498,20 +1547,29 @@
14981547
':face_palm:' => '🤦',
14991548
':sneezing_face:' => '🤧',
15001549
':face_with_raised_eyebrow:' => '🤨',
1550+
':face_with_one_eyebrow_raised:' => '🤨',
15011551
':star-struck:' => '🤩',
1552+
':grinning_face_with_star_eyes:' => '🤩',
15021553
':zany_face:' => '🤪',
1554+
':grinning_face_with_one_large_and_one_small_eye:' => '🤪',
15031555
':shushing_face:' => '🤫',
1556+
':face_with_finger_covering_closed_lips:' => '🤫',
15041557
':face_with_symbols_on_mouth:' => '🤬',
1558+
':serious_face_with_symbols_covering_mouth:' => '🤬',
15051559
':face_with_hand_over_mouth:' => '🤭',
1560+
':smiling_face_with_smiling_eyes_and_hand_covering_mouth:' => '🤭',
15061561
':face_vomiting:' => '🤮',
1562+
':face_with_open_mouth_vomiting:' => '🤮',
15071563
':exploding_head:' => '🤯',
1564+
':shocked_face_with_exploding_head:' => '🤯',
15081565
':pregnant_woman:' => '🤰',
15091566
':breast-feeding:' => '🤱',
15101567
':palms_up_together:' => '🤲',
15111568
':selfie:' => '🤳',
15121569
':prince:' => '🤴',
15131570
':person_in_tuxedo:' => '🤵',
15141571
':mrs_claus:' => '🤶',
1572+
':mother_christmas:' => '🤶',
15151573
':shrug:' => '🤷',
15161574
':person_doing_cartwheel:' => '🤸',
15171575
':juggling:' => '🤹',
@@ -1834,18 +1892,21 @@
18341892
':fountain:' => '',
18351893
':golf:' => '',
18361894
':boat:' => '',
1895+
':sailboat:' => '',
18371896
':tent:' => '',
18381897
':fuelpump:' => '',
18391898
':white_check_mark:' => '',
18401899
':fist:' => '',
18411900
':hand:' => '',
1901+
':raised_hand:' => '',
18421902
':sparkles:' => '',
18431903
':x:' => '',
18441904
':negative_squared_cross_mark:' => '',
18451905
':question:' => '',
18461906
':grey_question:' => '',
18471907
':grey_exclamation:' => '',
18481908
':exclamation:' => '',
1909+
':heavy_exclamation_mark:' => '',
18491910
':heavy_plus_sign:' => '',
18501911
':heavy_minus_sign:' => '',
18511912
':heavy_division_sign:' => '',

‎src/Symfony/Component/Intl/Resources/emoji/Makefile

Copy file name to clipboardExpand all lines: src/Symfony/Component/Intl/Resources/emoji/Makefile
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ update: ## Update sources
55
@composer update
66
@curl https://api.github.com/emojis > vendor/github-emojis.json
77
@curl https://raw.githubusercontent.com/iamcal/emoji-data/master/emoji.json > vendor/slack-emojis.json
8-
@curl https://unicode.org/Public/emoji/latest/emoji-test.txt > vendor/emoji-test.txt
8+
@curl -L https://unicode.org/Public/emoji/latest/emoji-test.txt > vendor/emoji-test.txt
99

1010
build: ## Build rules
1111
@./build.php

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.