<p>BERT is not a machine translation model, BERT is designed to provide a contextual sentence representation that should be useful for various NLP tasks. Although there exist ways how BERT can be incorporated into machine translation (<a href="https://openreview.net/forum?id=Hyl7ygStwB" rel="nofollow noreferrer">https://openreview.net/forum?id=Hyl7ygStwB</a>), it is not an easy problem and there are doubts if it really pays off.</p>
<p>From your question, it seems that you are not really machine translation, but automatic summarization. Similarly to machine translation, it can be approached using sequence-to-sequence models, but we do not call it translation in NLP.
For sequence-to-sequence modeling, there are different pre-trained models, such as <a href="https://arxiv.org/abs/1910.13461" rel="nofollow noreferrer">BART</a> or <a href="https://arxiv.org/abs/1905.02450" rel="nofollow noreferrer">MASS</a>. These should be much more useful than BERT.</p>
<hr />
<p>Update in September 2022: There are multilingual BERT-like models, the most famous are <a href="https://huggingface.co/bert-base-multilingual-cased" rel="nofollow noreferrer">multilingual BERT</a> and <a href="https://huggingface.co/xlm-roberta-base" rel="nofollow noreferrer">XLM-RoBERTa</a>. When fine-tuned carefully, they can be used as a universal encoder for machine translation and enable so-called zero-shot machine translation. The model is trained to translate from several source languages into English, but in the end, it can translate from all languages covered by the multilingual BERT-like models. The method is called <a href="https://arxiv.org/abs/2104.08757v1" rel="nofollow noreferrer">SixT</a>.</p>
How can i use BERT fo machine Translation?
<p>I got a big problem. For my bachelor thesis I have to make a machine tranlation model with BERT. 
But I am not getting anywhere right now. 
Do you know a documentation or something that can help me here? 
I have read some papers in that direction but maybe there is a documentation or tutorial that can help me.</p>

<p>For my bachelor thesis I have to translate from a summary of a text into a title.
I hope someone can help me.</p>