Skip to content

Commit 7a20fdf

Browse files
committed
[Intl] Document the compress binary
1 parent dc82263 commit 7a20fdf

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

components/intl.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,21 @@ platforms::
402402
Combine this emoji transliterator with the :ref:`Symfony String slugger <string-slugger-emoji>`
403403
to improve the slugs of contents that include emojis (e.g. for URLs).
404404

405+
The data needed to store the transliteration of all emojis (~5,000) into all
406+
languages take a considerable disk space. If you need to save disk space (e.g.
407+
because you deploy to some service with tight size constraints), run this command
408+
(e.g. as an automated script after ``composer install``) to compress the internal
409+
Symfony emoji files using the PHP ``zlib`` extension:
410+
411+
.. code-block:: terminal
412+
413+
# adjust the path to the 'compress' binary based on your application installation
414+
$ php ./vendor/symfony/intl/Resources/bin/compress
415+
416+
.. versionadded:: 6.3
417+
418+
The ``compress`` binary was introduced in Symfony 6.3.
419+
405420
Learn more
406421
----------
407422

0 commit comments

Comments
 (0)