upload: Fix @uppy/xhr-upload locale configuration.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-05-14 19:25:06 -07:00 committed by Tim Abbott
parent ac6e0a2d34
commit d9f05121d9
2 changed files with 2 additions and 2 deletions

View File

@ -290,7 +290,7 @@ export function setup_upload(config) {
limit: 5,
locale: {
strings: {
timedOut: $t({
uploadStalled: $t({
defaultMessage: "Upload stalled for %'{seconds}' seconds, aborting.",
}),
},

View File

@ -373,7 +373,7 @@ test("uppy_config", () => {
assert.equal(params.fieldName, "file");
assert.equal(params.limit, 5);
assert.equal(Object.keys(params.locale.strings).length, 1);
assert.ok("timedOut" in params.locale.strings);
assert.ok("uploadStalled" in params.locale.strings);
} else {
/* istanbul ignore next */
assert.fail(`Missing tests for ${func_name}`);