public function compile()
{
$output = "\n System.register('locale', [], function(_export) {\n return {\n execute: function() {\n _export('default', function(app) {\n app.translator.translations = " . json_encode($this->translations) . ";\n";
foreach ($this->files as $filename) {
$output .= file_get_contents($filename);
}
$output .= '
});
}
};
});';
return $this->format($output);
}