Skip to content

Commit 7efb02d

Browse files
committed
minor #12021 [Translation] Mention that you don't have to clear the cache for translation files (javiereguiluz)
This PR was merged into the 4.3 branch. Discussion ---------- [Translation] Mention that you don't have to clear the cache for translation files Mentions the nice new behavior implemented in symfony/symfony#28937. Commits ------- ddf97c7 [Translation] Mention that you don't have to clear the cache for translation files
2 parents 725d8e4 + ddf97c7 commit 7efb02d

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

translation.rst

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -366,15 +366,12 @@ For more options, see :ref:`component-translator-message-catalogs`.
366366
:class:`Symfony\\Component\\Translation\\Loader\\LoaderInterface` interface.
367367
See the :ref:`dic-tags-translation-loader` tag for more information.
368368

369-
.. caution::
370-
371-
Each time you create a *new* translation resource (or install a bundle
372-
that includes a translation resource), be sure to clear your cache so
373-
that Symfony can discover the new translation resources:
374-
375-
.. code-block:: terminal
369+
.. versionadded:: 4.3
376370

377-
$ php bin/console cache:clear
371+
Starting from Symfony 4.3, when you create a new translation file (or
372+
install a bundle that includes translation files), you don't have to clear
373+
the cache with the command ``php bin/console cache:clear`` as you had to do
374+
in previous Symfony versions.
378375

379376
Handling the User's Locale
380377
--------------------------

0 commit comments

Comments
 (0)