I'm trying to set up i18n.
I created a JSON file to store the key-value, but the i18n prints the key instead of the value.
For example:
JSON file:
{
"hi": "Welcome {{name}}"
}
The code:
__({ phrase: 'hi', locale: 'en' }, { name: 'Marcus' });
It prints hi instead of Welcome Marcus.
What is the problem?
Thanks.