|
@@ -5,15 +5,15 @@ author: arturi
|
|
|
published: false
|
|
|
---
|
|
|
|
|
|
-This release adds a long-awaited `uppy.setOptions()` API to update options of Uppy and its plugins on the fly. Also, Icelandic and Thai languages!
|
|
|
+This release adds a long-awaited `uppy.setOptions()` API, allowing you to update Uppy's options and plugins on the fly. It also includes locales for the Icelandic and Thai languages!
|
|
|
|
|
|
<!--more-->
|
|
|
|
|
|
## uppy.setOptions()
|
|
|
|
|
|
-`.setOptions()` for Uppy and plugins supports most options that can be easily changed on the fly: `restrictions`, `locale`, Dashboard’s `note` and `metaFields`, `disableThumbnailGenerator`, `showProgressDetails`, etc.
|
|
|
+`.setOptions()` for Uppy and its plugins supports most options that can be easily changed on the fly: `restrictions`, `locale`, Dashboard’s `note` and `metaFields`, `disableThumbnailGenerator`, `showProgressDetails`, etc.
|
|
|
|
|
|
-⚠️ Note that some options, however, like `target`, `limit` and `id`, can not be changed on the fly, as internal statefull things depend on them.
|
|
|
+⚠️ Note that some options like `target`, `limit` and `id` cannot be changed on the fly, as internal statefull things depend on them.
|
|
|
|
|
|
Here’s how the magic works:
|
|
|
|
|
@@ -41,7 +41,7 @@ uppy.setOptions({
|
|
|
uppy.getPlugin('Dashboard').setOptions({ note: 'You can upload up to 5 files' })
|
|
|
```
|
|
|
|
|
|
-Say, later on the user changed their locale, and we would like to reflect that in Uppy:
|
|
|
+Say, later on, the user changed their locale and we would like to reflect that in Uppy:
|
|
|
|
|
|
```js
|
|
|
const fi_FI = require('@uppy/locales/lib/fi_FI')
|
|
@@ -50,13 +50,13 @@ uppy.setOptions({
|
|
|
})
|
|
|
```
|
|
|
|
|
|
-Now Uppy will bark in Finnish 🇫🇮!
|
|
|
+Now, Uppy will bark in Finnish! Hau, hau, hau!
|
|
|
|
|
|
Please see [`uppy.setOptions()` docs](https://uppy.io/docs/uppy/#uppy-setOptions-opts) for details.
|
|
|
|
|
|
## Misc
|
|
|
|
|
|
-- @uppy/facebook: In the new Facebook plugin (beta) we now use grid view with big image previews for albums (@ifedapoolarewaju, #1886)
|
|
|
+- @uppy/facebook: In the new Facebook plugin (beta), we now use grid view with big image previews for albums (@ifedapoolarewaju, #1886)
|
|
|
- @uppy/companion: The thumbnail size has been increased for Dropbox (@ifedapoolarewaju, #1917)
|
|
|
- @uppy/dashboard: The retry icons have been fixed on individual files (@goto-bus-stop, #1888)
|
|
|
- @uppy/companion: Support `COMPANION_AWS_ENDPOINT` in aws-companion example so it can be used with other S3-compatible services (@goto-bus-stop, [1ab63aa](https://github.com/transloadit/uppy/commit/1ab63aa395859815871c4e1e62dda6e9ca66595f))
|