I don’t think that would be any different from the way every other object gets tagged with its name(s), really? There’s nothing special about railway lines in that regard.
Things can have names in multiple languages, alternative names, former names… There are tags for all these things.