F
Filament8mo ago
ericmp

How to rebuild file-upload.js asset file so it detects a new locale?

I want to add a new locale to the filepond. after that, ill PR it in the filament repo. i do it on packages\forms\resources\js\components\file-upload.js but then idk how to "build" it so i can test it works.
8 Replies
ericmp
ericmpOP8mo ago
No description
ericmp
ericmpOP8mo ago
been trying to search how to in filament docs but so far im unlucky @Dan Harrin i also wanna PR this but im stucked 🥲
Dan Harrin
Dan Harrin8mo ago
npm run build in the fork, then php artisan filament:assets in your app
ericmp
ericmpOP8mo ago
so far ive completed this steps: https://filamentphp.com/docs/3.x/support/contributing#developing-with-a-local-copy-of-filament now im just trying to create a resource but idk how to proceed
No description
Dan Harrin
Dan Harrin8mo ago
make:filament should be make:filament-resource
ericmp
ericmpOP8mo ago
yes ik, well just did that to show that i didnt have any filament installed in example app project now, what i did is update the composer from:
"repositories": [
{
"type": "path",
"url": "filament/packages/*"
}
],
"repositories": [
{
"type": "path",
"url": "filament/packages/*"
}
],
to:
"repositories": [
{
"type": "path",
"url": "app/filament/packages/*"
}
],
"repositories": [
{
"type": "path",
"url": "app/filament/packages/*"
}
],
not sure if im doing it wrong but is the way i can execute composer update without getting error. i was getting:
The `url` supplied for the path (filament/packages/*) repository does not exist
The `url` supplied for the path (filament/packages/*) repository does not exist
ericmp
ericmpOP8mo ago
it works, filepond in Catalan!!!!!!!!!!!! : D
No description
ericmp
ericmpOP8mo ago
thanks again dan, now i have to clean it up and PR it! should we change it in the docs, or its me that i did it different?
Want results from more Discord servers?
Add your server