Everyday thanks, heartfelt gratitude and polite speech
Start with a versatile expression that works with someone you have just met. When a person goes out of their way to help, a stronger expression or a few words about what they did can make your appreciation more personal. In Japanese, ありがとうございます (arigatō gozaimasu) is a polite choice, whereas ありがとう (arigatō) suits more familiar situations. The difference is about social context, not simply how grateful you feel.
Why one translation does not always fit
Gratitude can be built into the grammar of a language. In Portuguese, the traditional forms obrigado and obrigada agree with the person expressing thanks. In Hong Kong Cantonese, the choice is often about what you received: 唔該 (m4 goi1) commonly acknowledges a service or small favour, while 多謝 (do1 ze6) is typically used for gifts. Learning the situation behind an expression is often more helpful than memorising its literal translation.
What to say when someone thanks you
A reply can reassure someone that their request was no trouble or that you were happy to help. In English, you're welcome is a familiar courteous response, while no problem has a more relaxed feel. Other languages have their own conventions. Do not assume that translating either reply word for word will produce a natural expression. Listen to the response people use after small favours and learn one that suits everyday exchanges.
Gratitude is more than words
A 2018 study of informal conversations in eight languages found that people often helped one another without explicitly expressing thanks afterwards. This does not mean they were ungrateful, and the findings should not be treated as rules for encounters between strangers. As a visitor, pay attention to local habits rather than judging politeness by your own expectations. In Japan, for instance, a small bow can accompany your words of appreciation.