Although the name may be confusing for those in the image processing world (where ‘transformations’ are commonly used) the Transformer is an architecture for machine translation.
‘Translator’ is a general term; ‘Transformer’ is the name of a popular machine translation architecture and the implementation that you see in torch.nn.modules.transformer.py.