Skip to content

Missing translations (TracyPanel) #137

@abyoko

Description

@abyoko

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Waiting

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions