Alessio Vietri

Results 12 comments of Alessio Vietri

I think the problem is that it doesn't get the correct locale from `app()->getLocale()` inside BladeTranslationGenerator: ``` private function makeMaticeObject(?string $locale): string { $translations = json_encode($this->translations($locale)); $appLocale = $locale ??...

Ok, I think I fixed it this way: - using `@translations(app()->getLocale())` - and setting `$useCache = 'false';` inside MaticeServiceProvider's `boot()` function But I think it's better to investigate this behaviour

This solution didn't work for me with this combination: - "genl/matice": "^1.1", - "inertiajs/inertia-laravel": "^0.4.3", - "laravel/framework": "^8.54", - "laravel/jetstream": "^2.3", But I made it work using Inertia: ``` //...

There's no error output, everything works fine, but the view doesn't reload (only on auth pages). Anyway, this is not so important, I just wanted to help others using Inertia...

**UPDATE:** Sometimes the "non-reload" happens on labels and buttons on other pages too. Maybe is something related to Vue or Inertia themselves, I don't know, but I'm writing it down...

This one is the same as before: ``` // resoures/js/app.js require('./bootstrap'); import { createApp, h } from 'vue'; import { createInertiaApp } from '@inertiajs/inertia-vue3'; import { InertiaProgress } from '@inertiajs/progress';...

I tried to put reload function call inside a callback (onSuccess and onFinish), but it causes a modal to appear because of Inertia/Jetstream functionalities. I also tried with a simple...

And this is the reason why I make a GET call: ``` Route::get('/locale/{locale}', function ($locale) { app()->setLocale($locale); session()->put('locale', $locale); $user = Auth::user(); if($user){ $user->profile->locale_code = $locale; $user->profile->save(); } })->name('locale'); ```

Hi, Thanks for your quick answer. The problem is that when I send the post request (with the correct auth middleware), the response contains the login page and not the...

Ah ok, so it's only a problem of hashing. I'll try with plain text password, thanks again!