uppy/bin
Artur Paikin 28fce1a137 Default locale for all plugins (#1443)
* first swing at building locale pack

* expose default locale on the plugin instance

* write a pretty en_US locale to a file, using stringify-object and template.js

* generated locale pack

* start adding a script that checks for unused locale strings

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* Update bin/build-locale-pack.js

* Console output improvements

* Also sort plugin locale keys

* Support dependencies when digging up sources

because e.g. 'emptyFolderAdded' is used in provider-views but set in Dashboard's defaultLocale

* More complex matching

So can can support cases like: `uppy.i18n(error.isAuthError ? 'companionAuthError' : 'companionError')`

* Remaining const defaultLocale -> this.defaultLocale

* Update packages/@uppy/locales/en_US.js

* Mock browser environment so all plugins can be instantiated

* Clean up output a bit

* Update bin/build-locale-pack.js

* Add all remaining plugin's locales to en_US bundle

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

* Update en_US.js

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* remove unused strings

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* Also write csv because that makes it real easy to import to friendlier places for translators /cc @arturi

* don’t set locale: this.defaultLocale — it overrides the lang pack

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* Add 'russian plural' for english, for consistency

Allows us to signal that this is possible in new target languages, and also run better linting

* Cleanup

* No longer write csv

* WIP for NL

* Create package.json

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* move locales to /src

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* ignore locales themselves

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* build minified locale packs

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* expose Uppy.locale = {} placeholder object

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* Update ru_RU.js

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* add locale bundles to example

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* Upload locales to cdn

* Allow to run tests with upload-to-cdn by setting a versionSuffix

* Move locale build to function, to make room for test()

* Bring ru_RU in sync with English

now that we've added 3 plural types across the board

* Document using locales as a consuming dev, and plugin dev

* Add linting for missing/excess locale strings

* Add the locales we had to remove to the legacy folder

and explain why they cannot make it back

* Move legacy outside of src so they are definitely not transpiled, etc

* Update packages/@uppy/locales/src/nl_NL.js

* Update website/src/docs/uppy.md
2019-04-17 13:34:23 +02:00
..
build-bundle.js Default locale for all plugins (#1443) 2019-04-17 13:34:23 +02:00
build-css.js don’t use postcss-safe-important 2019-03-11 16:56:35 +03:00
build-lib.js Fix crash when lib/ doesn't exist yet 2019-01-14 14:38:44 +01:00
companion Refactor npm scripts, clean up unused ones (#1392) 2019-03-29 14:55:23 +01:00
disc.js Update build scripts. 2018-06-18 11:33:45 +02:00
endtoend-build Split integration tests and add one using create-react-app (#952) 2018-07-18 11:24:55 +02:00
endtoend-build-ci Fix version numbers used for website build 2018-11-12 13:44:48 +01:00
endtoend-build-tests Set tsify target to ES3 2018-12-20 14:52:57 +01:00
locale-packs.js Default locale for all plugins (#1443) 2019-04-17 13:34:23 +02:00
make-new-versions-table Fix new versions table script. 2018-11-01 13:21:59 +01:00
release Refactor npm scripts, clean up unused ones (#1392) 2019-03-29 14:55:23 +01:00
remove-accidental-git-tags.sh add remove-accidental-git-tags.sh 2019-02-15 23:24:44 +03:00
sync-version-numbers Update bin/sync-version-numbers 2019-04-05 14:01:15 +02:00
to-gif-hd.sh video to gif script, decent quality 2019-01-15 11:16:19 +03:00
to-gif-hq.sh add better gif creating script 2019-01-14 18:16:37 +03:00
to-gif.sh new demo video and gif, update frontpage code sample, design goals, add developed by transloasdit 2018-10-12 12:59:37 -04:00
travis-deploy Add back npm run web:install for Travis, but not for all 2019-03-28 15:08:56 +01:00
upload-to-cdn.sh Default locale for all plugins (#1443) 2019-04-17 13:34:23 +02:00
web-deploy Speed up website deploys 2019-03-28 10:50:01 +01:00