Is there a way to check whether an entry is existing?
I am using i18n for a Chatbots natural language classification. When a certain case can not be handled with the saved i18n statements I want either to check wether it exists or return a default statement.
Just like this:
i18n.__('i18n_statement_missing', {default: 'default.statement'})
Is there a way to check whether an entry is existing?
I am using i18n for a Chatbots natural language classification. When a certain case can not be handled with the saved i18n statements I want either to check wether it exists or return a default statement.
Just like this:
i18n.__('i18n_statement_missing', {default: 'default.statement'})
or like this:
if !i18n.__('i18n_statement_missing').exists ...