I am attempting to implement Interpolation with Vue3 and vue-i18n version 9.3. However, when I try to pass arguments, I encounter the following error:
Message compilation error: Not allowed nest placeholder
1 | Showing {{from}} to {{to}} of {{total}} entries
This is a snippet from my locale json file:
...
"showing_0_to_0_of_0_entries": "Showing {{from}} to {{to}} of {{total}} entries",
...
Within my component, I have implemented the interpolation as follows:
<div class="info">{{ $t('showing_0_to_0_of_0_entries',{ from: 0, to: 15, total:8 }) }}</div>
Unfortunately, this implementation is not working as expected. The text displayed on my page is:
Showing {{from}} to {{to}} of {{total}} entries
The variables are not being passed correctly. How can I fix this issue?