Commit graph

17 commits

Author SHA1 Message Date
kiloreux
5a5db08478 Added french language pack (#1481) 2019-04-24 09:38:08 +02:00
Artur Paikin
6c6531a30a
Merge pull request #1467 from transloadit/locale/ru_RU
Add Russian language pack (ru_RU)
2019-04-23 18:57:37 +03:00
Artur Paikin
636ca26366 update Russian strings (dropHint, poweredBy, authenticateWithTitle) 2019-04-23 18:10:51 +03:00
Artur Paikin
7b836172c3 add new en_US strings 2019-04-23 18:10:12 +03:00
tim-kos
0a2b48ffd5 Fix extra semicolons in German locale file. 2019-04-23 16:12:21 +02:00
Tim Koschuetzki
3685f5659c German language pack (#1475)
* Adding initial version.

* More German updates.
2019-04-23 15:19:03 +02:00
Geert Clerx
90e4dd4579 Expand dutch locale (#1471) 2019-04-23 11:48:18 +02:00
Artur Paikin
bec78901ed remove “сюда” — “here” 2019-04-22 17:27:12 +03:00
Artur Paikin
f7a1c1966a Finish Russian language pack 2019-04-22 15:06:11 +03:00
Artur Paikin
9a4559a11d “File Uploader” instead of “Uppy Dashboard”
//cc @kvz
2019-04-22 15:03:00 +03:00
Geert Clerx
6af55ae2ff Add dutch locale (nl_NL) (#1462)
* Add dutch locale (nl_NL)

* Fix indentation
2019-04-20 20:31:38 +02:00
Artur Paikin
c52be3fc0b add missing quote 2019-04-19 17:25:59 +03:00
Artur Paikin
0f95529cc5 Release 2019-04-19 15:46:25 +03:00
Artur Paikin
af373b3a21 add readme and license 2019-04-19 15:42:19 +03:00
Artur Paikin
5347fb4191 Update en_US.js 2019-04-19 15:15:36 +03:00
Artur Paikin
bf0716ef50 update locale pack with the new string 2019-04-18 16:13:03 +03:00
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