Skip to content

Commit 4aad46f

Browse files
committed
minor #18301 [Intl] Document the compress binary (javiereguiluz)
This PR was merged into the 6.3 branch. Discussion ---------- [Intl] Document the compress binary Fixes #18222. Commits ------- 7a20fdf [Intl] Document the compress binary
2 parents 4bf34ca + 7a20fdf commit 4aad46f

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)