uppy/examples
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
..
angular-example test: fix end2end test suite (#3008) 2021-07-14 14:10:20 +02:00
aws-companion Resolve all type TODO's (#2963) 2021-07-20 14:40:31 +02:00
aws-presigned-url Resolve all type TODO's (#2963) 2021-07-20 14:40:31 +02:00
bundled Update Linter (#2796) 2021-03-15 16:25:17 +00:00
cdn-example Release 2021-06-30 23:07:21 +01:00
custom-provider Set plugin titles from locale (#3023) 2021-07-30 13:02:32 +01:00
dev doc, deps: clean up polyfill inconsistencies (#3020) 2021-07-16 14:41:22 +02:00
digitalocean-spaces error on import lint failure + some misc lint fixes (#2813) 2021-03-20 11:02:49 +01:00
multiple-instances error on import lint failure + some misc lint fixes (#2813) 2021-03-20 11:02:49 +01:00
node-xhr Resolve all type TODO's (#2963) 2021-07-20 14:40:31 +02:00
php-xhr error on import lint failure + some misc lint fixes (#2813) 2021-03-20 11:02:49 +01:00
python-xhr error on import lint failure + some misc lint fixes (#2813) 2021-03-20 11:02:49 +01:00
react-example error on import lint failure + some misc lint fixes (#2813) 2021-03-20 11:02:49 +01:00
react-native-expo Resolve all type TODO's (#2963) 2021-07-20 14:40:31 +02:00
redux error on import lint failure + some misc lint fixes (#2813) 2021-03-20 11:02:49 +01:00
svelte-example tools: enable linter for TypeScript (#2997) 2021-07-13 14:28:14 +02:00
transloadit error on import lint failure + some misc lint fixes (#2813) 2021-03-20 11:02:49 +01:00
transloadit-textarea core: remove use of Array.prototype.reduce where possible (#3016) 2021-07-15 19:52:08 +02:00
uppy-with-companion Resolve all type TODO's (#2963) 2021-07-20 14:40:31 +02:00
vue Always enable strict types and remove .run method (#2957) 2021-06-30 12:05:10 +01:00
vue3 Always enable strict types and remove .run method (#2957) 2021-06-30 12:05:10 +01:00
xhr-bundle Resolve all type TODO's (#2963) 2021-07-20 14:40:31 +02:00