Skip to content

[Translation] Mention that you don't have to clear the cache for translation files #12021

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 29, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions translation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
--------------------------
Expand Down