Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ddf97c7

Browse filesBrowse files
committed
[Translation] Mention that you don't have to clear the cache for translation files
1 parent 60f9821 commit ddf97c7
Copy full SHA for ddf97c7

File tree

1 file changed

+5
-8
lines changed
Filter options

1 file changed

+5
-8
lines changed

‎translation.rst

Copy file name to clipboardExpand all lines: translation.rst
+5-8Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.