I think you can @Inject ThreadLocale and call ThreadLocale.setLocale(xxx). On 20 Apr 2015 10:09, "Geoff Callender" < geoff.callender.jumpst...@gmail.com> wrote:
> I'm generating a page link with PageRenderLinkSource. No problem. Now I'd > like to generate it for a specific locale. > > I've tried using LocalizationSetter#setNonPersistentLocaleFromLocaleName > immediately before PageRenderLinkSource#createPageRenderLinkWithContext , > but it has no effect. > > The aim is to produce a PDF in a specific language with PhantomJS. > PhantomJS is run in a command, with my page URL as a parameter. Without the > locale in the URL, the page prints in the default language. > > Geoff > >