I am using the i18n-js library to internationalize my app.
When a not defined scope is passed to it, it displays a message "missing translation...", and I want to use a fallback value when the scope is not found.
For example:
// JSON file
{
hello: "Hello!",
fallback: "Ups",
};
// JS CODE
i18n.t("texts.bye"); // Not found...
How can I display the texts.fallback of my JSON file if the scope is not found?