-
-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
Hi, I’m trying to use translation with this setup:
extensions:
translation: Contributte\Translation\DI\TranslationExtension
translation:
debug: true
locales:
whitelist:
- en
- cs
default: en
dirs:
- %appDir%/Model/Translation
returnOriginalMessage: false
localeResolvers:
- Contributte\Translation\LocalesResolvers\Router
Nothing special. However, Tracy does not show missing translations because TracyPanel is not set in Translator.
I discovered that adding the following code to TranslationExtension makes it work:
$translator->addSetup('setTracyPanel', [$tracyPanel]);
Alternatively, I can set the debug option to false and manually add the panel to Tracy:
tracy:
emailSnooze: '10 minute'
bar:
- Contributte\Translation\Tracy\Panel
Am I missing something?
Composer dependencies:
nette/application 3.2.6
nette/di 3.2.5
tracy/tracy 2.10.9
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Waiting