-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FileUpload Locale it does not work correctly #1985
Comments
in FileUpload form component Link for handle locale : |
My mistake about Skypack was because I was looking for fi-fi which is only in github master because latest release is older than it being added. |
CDN link not problem filename cause problem in this link logic of send filename to CDN not completely load every links because for example code generate fa-fa.js but in filepond fa_ir.js is correct |
Simple switch which checks for both 'fa' and 'fa-ir' and sets $locale to 'fa_ir'? |
yes switch need fix for support all locale |
Package
filament/forms
Package Version
2.10
Laravel Version
9.2
Livewire Version
2.6
PHP Version
8.0.3
Bug description
When change Laravel locale the Filament all packages set to new locale, design and more thing change dynamically.
but in FileUpload form component when change the locale of Laravel project this component try to set correct locale of Filepond package and search https://cdn.skypack.dev/filepond/locale/ CDN to get locale translation and not find some languages because locale filename of all locale not same as (en-en)
from this page https://github.com/pqina/filepond/tree/master/locale
for example : da-dk.js , fa_ir.js, no-nb.js
and shown error in console get request for locale js file not respond!
for solution : define option to FileUpload component can handle filename of locale of Filepond package 🤙
anyone have best solution ?
Steps to reproduce
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: