LexikTranslationBundle icon indicating copy to clipboard operation
LexikTranslationBundle copied to clipboard

Additional translation directories

Open ikoene opened this issue 2 years ago • 1 comments

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: https://github.com/lexik/LexikTranslationBundle/pull/356

Thanks.

ikoene avatar Feb 02 '22 09:02 ikoene

I would also need this.

matthiasseghers avatar Feb 03 '22 08:02 matthiasseghers