Bolt\Translation\TranslationFile::contentContenttypes PHP Method

contentContenttypes() private method

Gets all translatable strings and returns a translationsfile for messages or contenttypes.
private contentContenttypes ( ) : string
return string
    private function contentContenttypes()
    {
        $savedTranslations = $this->readSavedTranslations();
        $this->gatherTranslatableStrings();
        $keygen = new ContenttypesKeygen($this->app, $this->translatables, $savedTranslations);
        $keygen->generate();
        $newTranslations = $keygen->translations();
        $hinting = $keygen->hints();
        ksort($newTranslations);
        return $this->buildNewContent($newTranslations, $savedTranslations, $hinting);
    }