KnpLabs / DoctrineBehaviors

Doctrine2 behavior traits that help handling Blameable, Loggable, Sluggable, SoftDeletable, Uuidable, Timestampable, Translatable, Tree behavior
http://knplabs.com
MIT License
913 stars 293 forks source link

doc(translatable): Improve the LocaleSubscriber implementation #715

Open damienalexandre opened 1 year ago

damienalexandre commented 1 year ago

Also fix some English / improve the flow of the document.

At the start all I wanted to replace was the locale parsing / setLocale on the Request thing to use modern Symfony:

$request->setLocale(
    $request->getPreferredLanguage($this->availableLocales)
);
$request->attributes->set('_vary_by_language', true);
damienalexandre commented 12 months ago

Gentle ping about this pull request, is there anything I can do to help you review it?

Cheers