Skip to content
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

change text of dashboard description #2180

Closed
dmbehrouz opened this issue Apr 7, 2020 · 2 comments
Closed

change text of dashboard description #2180

dmbehrouz opened this issue Apr 7, 2020 · 2 comments
Assignees
Labels

Comments

@dmbehrouz
Copy link

dmbehrouz commented Apr 7, 2020

Hi
I am going to change main dashboard text ('فایل را رهاکنید یا بچسبانید') in persian locale to my custom text like this:

uppy.use(Uppy.Dashboard , {
inline: true,
height: 150,
target: '#drag-drop-area',
debug: true,
locale: {
strings: {
dropHereOr: 'فایلها را اینجا رها کنید یا بچسبانید یا %{browse}',
// Used as the label for the link that opens the system file selection dialog.
browse: 'بارگذاری'
}
},
deUploadButton: true,
})

but not working and i cant change local language.please help me for this issue

@dmbehrouz dmbehrouz added Not Accepted We cannot accept this issue, please read https://uppy.io/support Triage labels Apr 7, 2020
@goto-bus-stop
Copy link
Contributor

The strings were changed in a recent update. Now, the Dashboard uses these:

dropHint: 'Drop your files here',
dropPaste: 'Drop files here, paste or %{browse}',
dropPasteImport: 'Drop files here, paste, %{browse} or import from:',

so you'd have to override browse as you're already doing, and the dropPaste string (or dropPasteImport if you are using remote providers).

@goto-bus-stop goto-bus-stop added Dashboard Question and removed Not Accepted We cannot accept this issue, please read https://uppy.io/support Triage labels Apr 8, 2020
@goto-bus-stop goto-bus-stop self-assigned this Apr 8, 2020
@As3toJs
Copy link

As3toJs commented Apr 22, 2021

in my case if dropPaste string includes %{browse} it doesn't translate,
works if there is no %{browse} but browse option is not available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants