How do I use the translator in the system

How do I add the code I need for translation
I need a tutorial on how to customize this feature using translation