Hellou,
API已经实现,因此我必须调整前面的功能以匹配API响应。我必须在React应用程序中实现翻译。来自API的响应是(对于传递的语言“ en”,“ de”等),我得到了:
[
{
"key": "app.name",
"translation": "Chainium Platform",
"context": ""
},
{
"key": "app.login.text",
"translation": "Enter your credentials below to login",
"context": ""
},
{
"key": "app.login.message.success",
"translation": "Login successful !\nWelcome back %s !",
"context": ""
},
]
适合此API响应并实施翻译的最佳方法是什么?