This is the nuxt 3 link with i18n
<NuxtLink :to="`${localePath('ser')}/${$t('est')}/${$t('pro')}`">
The question is: when it use i got the error 404 but and
No match found for location with path "/fa/%D8%AE%D8%AAA/تن/ج"
but when the page refreshed it appears correctly. why and what is the solution?
You are using localePath incorrectly, with custom routes you should use it like this:
With a configuration like this:
This way you can define whatever custom route you want and avoid messy patchworks in your code.
i18n custom routes reference: https://v8.i18n.nuxtjs.org/guide/custom-paths