How you do i18n in react apps?

Hi people, like the title says, how you guys do i18n in react apps? I have react app (vite), and I thought about implementing it with react-i18n anyway I have few question while looking through open source repositories I saw two different approaches with languages files 1.
"Welcome to homepage": "Welcome to homepage"
"Welcome to homepage": "Welcome to homepage"
2.
"home": {
"title": "Welcome to homepage",
}
"home": {
"title": "Welcome to homepage",
}
Which one do you prefer, with first approach I'm worried about changing value that key should be changed too? and the last there any tool that can automate process of changing text?
0 Replies
No replies yetBe the first to reply to this messageJoin