-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
Description
Hi! Thanks for the library, it has been pretty useful.
I just have one question... Would it be possible to "expose" the json file loader? I'd like to overwrite it and return my custom object.
Use case: I wrote a translation driver to make better use of the opcache, but I can't do the same for the json files.
Other issues that I had:
- The default translation driver doesn't work for me: I tried to load data from different locales, but it was just returning data in
en_US(I didn't inspect much as I can't use thegettextextension anyway). - SymfonyTranslationDriver: as I consume different data, it keeps growing in memory, it would be nice to have a setting to discard it.
- SymfonyTranslationDriver: when I try to load inexistent translations, it throws an
InvalidArgumentException(so I had to fallback to theDummyDriver), that's ok! But the default driver doesn't throw, so it would be good to have the same behavior and maybe a setting to retrieve a default value (en_US).