private function getTranslationData(MutableBag $tr)
    {
        $translation = new TranslationFile($this->app, $tr->get('domain'), $tr->get('locale'));

        list($tr['path'], $tr['shortPath']) = $translation->path();
        $tr->set('writeallowed', $translation->isWriteAllowed());

        $this->app['logger.system']->info('Editing translation: ' . $tr->get('shortPath'), ['event' => 'translation']);

        return ['contents' => $translation->content()];
    }