When looking at the JSON example provided, is there a method to automatically switch back to the parent object key if the child object does not contain the key?
// Example of i18n JSON
"parent": {
"foo": "foo",
"bar": "bar",
"child": {
"foo": "baz"
}
}
Is there a way (or feature) that allows for seamless fallback to the parent value for the same key?
// Intended usage
$t('parent.child.foo'); // should return "baz"
$t('parent.child.bar'); // should return "bar"