I am having a span tag like below.
<span translate="footer.copyright">Copyright</span>
In my Json file I have data like below,
"footer": {
"copyright": "Copyright ©"
},
Its working fine too. But if the json file is not having the data, I want translate to show whatever content is available in between the span tag, in this case Copyright. But its not taking the content instead its showing empty tag. Please help me with this.
Just simply add translate-default
to your tag:
<span translate="footer.copyright" translate-default="Copyright">Copyright</span>
You can read more here.