Skip to content

Additional translation directories #411

@ikoene

Description

@ikoene

Hi,

I was wondering if there is a possibility to add additional translation directories?

So next to /translations, the LexikTranslationBundle would also look inside, for example, /my-translations for translations.

Possible solutions:

  • I've tried adding symlinks in the /translations directory, but the translations don't seem to be picked up.
  • Another possibility, is to fork the bundle and add the directories in LexikTranslationExtension.php (in registerTranslatorConfiguration()), that's a path I'd rather not take.

Symfony release: 5.4
LexikTranslationBundle release: 5.2

[edit] Basically, I'm looking for something like this: https://symfony.com/doc/current/translation.html
Also Addressed here if I'm correct: #356

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions