TM

I am translating my very first text, and do not understand how words end up in my TM in order not to translate them again if they occur later in the text, I read it is automatic but how?? I made a file-based TM for this translation