Skip to content

Added docs about auto-add-missing #16

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
Dec 27, 2016
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ They all live in the php-translation/platform-adapter repository.
Symfony Profiler UI <symfony/profiler-ui>
Edit in place <symfony/edit-in-place>
Auto translate <symfony/auto-translate>
Auto add missing translations <symfony/auto-add-missing>

.. toctree::
:hidden:
Expand Down
24 changes: 24 additions & 0 deletions symfony/auto-add-missing.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Automatically Add Missing Translations
======================================

When you are visiting a page the Symfony ``TranslationDataCollector`` will
record what translations are being used. The translations marked as "Missing" will
be added to the storage.

Configuration
-------------

.. code-block:: yaml

# config/config.yml
translation:
# ..
auto_add_missing_translations:
config_name: 'default'
# ..

Usage
-----

That's it. You do not have to do anything more. Translations will automatically
pop up in your storage.