public function export($file, $translations)
    {
        $bytes = false;

        if (pathinfo($file, PATHINFO_EXTENSION) === 'yml') {
            $ymlDumper = new Dumper();
            $ymlContent = '';
            $ymlContent .= $ymlDumper->dump($translations, 10);
            $bytes = file_put_contents($file, $ymlContent);
        }

        return ($bytes !== false);
    }