πNested texts with inheritance
{
"app_name": "Niro Health",
"text_1": "I'm Love $1",
}locale.translate('text_1', '.app_name');
// output: I'm Love Niro Health{
"fallback": "Sorry the code is not working due to an error: $1",
"users": {
"get": {
"error": "$1"
}
},
}locale.translate('users.get.error', '.fallback', 'Bad Line 404');
// output: Sorry the code is not working due to an error: Bad Line 404{
"fallback": "Sorry the code is not working due to an error: $1 and $2. Testing ? $3",
"users": {
"get": {
"error": "$1"
}
},
}Last updated