From ddf97c71f21c4c2037601f4580620078c2a80ae1 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Wed, 24 Jul 2019 12:37:39 +0200 Subject: [PATCH] [Translation] Mention that you don't have to clear the cache for translation files --- translation.rst | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/translation.rst b/translation.rst index 343f0233bab..4682fddf059 100644 --- a/translation.rst +++ b/translation.rst @@ -366,15 +366,12 @@ For more options, see :ref:`component-translator-message-catalogs`. :class:`Symfony\\Component\\Translation\\Loader\\LoaderInterface` interface. See the :ref:`dic-tags-translation-loader` tag for more information. -.. caution:: - - Each time you create a *new* translation resource (or install a bundle - that includes a translation resource), be sure to clear your cache so - that Symfony can discover the new translation resources: - - .. code-block:: terminal +.. versionadded:: 4.3 - $ php bin/console cache:clear + Starting from Symfony 4.3, when you create a new translation file (or + install a bundle that includes translation files), you don't have to clear + the cache with the command ``php bin/console cache:clear`` as you had to do + in previous Symfony versions. Handling the User's Locale --------------------------