uppy/examples/custom-provider
Artur Paikin 4ca78ab543
Set plugin titles from locale (#3023)
* What is happening "*"

* Instead of re-creating i18nInit, we could just make it part of the BasePlugin

* set plugin title and allow changing it from locale

* remove i18nInit method, since we now include it in BasePlugin

* All provider titles should come from locale

* Update en_US.js

* make translator private

//cc @aduh95

* init locale after calling setOptions

* Update en_US.js

* Update packages/@uppy/core/src/BasePlugin.js

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>

* Update packages/@uppy/core/src/index.js

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>

* Bind `i18n` functions

* Remove duplicate i18nInit — it’s in BasePlugin already

* fix formatting

* fix name

* Update en_US.js

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2021-07-30 13:02:32 +01:00
..
client Set plugin titles from locale (#3023) 2021-07-30 13:02:32 +01:00
output add custom provider example 2018-04-09 23:12:41 +01:00
server Resolve all type TODO's (#2963) 2021-07-20 14:40:31 +02:00
.gitignore add custom provider example 2018-04-09 23:12:41 +01:00
babel.config.js Update Linter (#2796) 2021-03-15 16:25:17 +00:00
index.html add custom provider example 2018-04-09 23:12:41 +01:00
package.json Upgrade Preact to latest (#2926) 2021-06-16 12:46:19 +02:00
readme.md examples: document npm run build, closes #2024 2020-03-30 16:07:24 +02:00

Uppy + Companion + Custom Provider Example

This example uses @uppy/companion with a dummy custom provider. This serves as an illustration on how integrating custom providers would work

Run it

To run this example, make sure you've correctly installed the repository root:

npm install
npm run build

That will also install the dependencies for this example.

Then, again in the repository root, start this example by doing:

npm run example custom-provider