Bundle & i18n Example

Here you’ll see a demo of how you might use internationalization (i18n) in Uppy, as well as how to load Uppy using a pre-bundled version (CDN).


Console output (latest logs are at the top):

To load the pre-built bundle (from a CDN) we’re using the following HTML and JavaScript:

app.htmlview raw
<!-- Basic Uppy styles. You can use a CDN: https://unpkg.com/uppy/dist/uppy.min.css -->
<link rel="stylesheet" href="/uppy/uppy.min.css">
<div class="UppyDragDrop"></div>
<!-- Load Uppy pre-built bundled version. You can use a CDN: https://unpkg.com/uppy -->
<script src="/uppy/uppy.min.js"></script>
<script>
var uppy = Uppy.Core({debug: true});
uppy.use(Uppy.DragDrop, {
target: '.UppyDragDrop',
locale: {
strings: {
dropHereOr: 'Перенесите файлы сюда или',
browse: 'выберите'
}
}
});
uppy.use(Uppy.ProgressBar, {target: 'body', fixed: true})
uppy.use(Uppy.Tus, {endpoint: '//master.tus.io/files/'});
uppy.run();
console.log('--> Uppy pre-built version with Tus, DragDrop & Russian language pack has loaded');
</script>

Please see documentation for details.

Hey there stranger! Uppy is in the early stages of development and the example section is our playground. Things might not yet work, but we're working hard to improve this.

We're on a monthly release cycle and our latest version is v0.21.0, but the example pages reflect the latest work in our master branch. Here's what changed in master since v0.21.0 in terms of commits, while the CHANGELOG provides a higher level view of this things planned for our next release.

Files from the examples are uploaded to our test servers and deleted daily.