@@ -35,7 +35,6 @@ This component provides the following ICU data:
35
35
* `Locales `_
36
36
* `Currencies `_
37
37
* `Timezones `_
38
- * `Emoji Transliteration `_
39
38
40
39
Language and Script Names
41
40
~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -357,51 +356,6 @@ to catching the exception, you can also check if a given timezone ID is valid::
357
356
358
357
$isValidTimezone = Timezones::exists($timezoneId);
359
358
360
- .. _component-intl-emoji-transliteration :
361
-
362
- Emoji Transliteration
363
- ~~~~~~~~~~~~~~~~~~~~~
364
-
365
- .. versionadded :: 6.2
366
-
367
- The Emoji transliteration feature was introduced in Symfony 6.2.
368
-
369
- The ``EmojiTransliterator `` class provides a utility to translate emojis into
370
- their textual representation in all languages based on the `Unicode CLDR dataset `_::
371
-
372
- use Symfony\Component\Intl\Transliterator\EmojiTransliterator;
373
-
374
- // describe emojis in English
375
- $transliterator = EmojiTransliterator::create('en');
376
- $transliterator->transliterate('Menus with 🍕 or 🍝');
377
- // => 'Menus with pizza or spaghetti'
378
-
379
- // describe emojis in Ukrainian
380
- $transliterator = EmojiTransliterator::create('uk');
381
- $transliterator->transliterate('Menus with 🍕 or 🍝');
382
- // => 'Menus with піца or спагеті'
383
-
384
- The ``EmojiTransliterator `` class also provides two extra catalogues: ``github ``
385
- and ``slack `` that converts any emojis to the corresponding short code in those
386
- platforms::
387
-
388
- use Symfony\Component\Intl\Transliterator\EmojiTransliterator;
389
-
390
- // describe emojis in Slack short code
391
- $transliterator = EmojiTransliterator::create('slack');
392
- $transliterator->transliterate('Menus with 🥗 or 🧆');
393
- // => 'Menus with :green_salad: or :falafel:'
394
-
395
- // describe emojis in Github short code
396
- $transliterator = EmojiTransliterator::create('github');
397
- $transliterator->transliterate('Menus with 🥗 or 🧆');
398
- // => 'Menus with :green_salad: or :falafel:'
399
-
400
- .. tip ::
401
-
402
- Combine this emoji transliterator with the :ref: `Symfony String slugger <string-slugger-emoji >`
403
- to improve the slugs of contents that include emojis (e.g. for URLs).
404
-
405
359
Learn more
406
360
----------
407
361
@@ -424,4 +378,3 @@ Learn more
424
378
.. _`daylight saving time (DST)` : https://en.wikipedia.org/wiki/Daylight_saving_time
425
379
.. _`ISO 639-1 alpha-2` : https://en.wikipedia.org/wiki/ISO_639-1
426
380
.. _`ISO 639-2 alpha-3 (2T)` : https://en.wikipedia.org/wiki/ISO_639-2
427
- .. _`Unicode CLDR dataset` : https://github.com/unicode-org/cldr
0 commit comments