Localization of a game

How my game to know where is a key word and where is a translated word?