Closed GekkeGlennDev closed 1 year ago
Extra info: In a vue file i'm doing this to load a translation:
<script setup>
import { trans } from 'laravel-vue-i18n';
</script>
<template>
{{ trans('pages.dashboard.head.title') }}
</template>
Interesting case, will take a look on that shortly.
Thanks.
We have a similar case and it's also not reading the php files recursively. It only works for php translation files in the root locale directory.
Translations from auth.php
work, but translations from store-admin/store-employee-questions/overview.php
are not parsed and placed in the php_de_DE.json
file.
As this is a blocking issue for us, how can we help to implement this? JS package dev isn't my strength 😄
Sorry guys, I will need to have a bit more free time to tackle this one.
If anyone want to do a PR for that, it would be lovely ❤️
I used this plugin but i'm running into a issue.
My lang folder structure is as follow:
But if i read the json files, i only see the translations from the files of the root dir of a languages and not the sub folder translations.
Or is there any fix for it?
App.js:
Vite Config:
Versions: Laravel 9.38 PHP: 8.1.0 Yarn: 1.22.19 Vite: 3.0.0 Vue: 3.2.41