From cef9ca620a1fc10e104598a5b66d80d4377c1bf3 Mon Sep 17 00:00:00 2001 From: Sander Verkuil Date: Sat, 6 Jul 2024 09:24:06 +0200 Subject: [PATCH] Added a small note regarding the availability of the Translator --- src/Translator/doc/index.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Translator/doc/index.rst b/src/Translator/doc/index.rst index 4872d569f6d..011ce6ae068 100644 --- a/src/Translator/doc/index.rst +++ b/src/Translator/doc/index.rst @@ -71,6 +71,10 @@ For a better developer experience, TypeScript types definitions are also generat Then, you will be able to import those JavaScript translations in your assets. Don't worry about your final bundle size, only the translations you use will be included in your final bundle, thanks to the `tree shaking `_. +.. note:: + + This package requires the `translator` to be enabled in your Symfony application. If you don't use the `translator` service, the warmup command will not generate any translations. + Configuring the default locale ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~