xiCO2k / laravel-vue-i18n

Allows to connect your `Laravel` Framework translation files with `Vue`.
MIT License
621 stars 51 forks source link

Failed to resolve component i18n #86

Closed Quadrubo closed 1 year ago

Quadrubo commented 1 year ago

Hello, I tried to translate the privacy policy text from jetstream using this syntax from vue-i18n. Is it supported in here? The component doesn't seem to exist, are there alternatives?

<i18n path="I agree to the {terms_of_service} and {privacy_policy}" tag="div" class="ml-2">
    <template #terms_of_service>
        <a target="_blank" :href="route('terms.show')" class="underline text-sm text-gray-600 hover:text-gray-900">{{ $t('Terms of Service') }}</a>
    </template>

    <template #privacy_policy>
        <a target="_blank" :href="route('policy.show')" class="underline text-sm text-gray-600 hover:text-gray-900">{{ $t('Privacy Policy') }}</a>
    </template>
</i18n>
xiCO2k commented 1 year ago

Its not supported here.

Thanks for asking.