I've stumbled on i18next while exploring thing topic. If I remember correctly, it's more complete library. Here I used Rosetta—it felt pretty simple/basic. It's good or bad depending on your needs. For small projects, I would start simple.
Are you working on a study project, or something bigger?