mirror of https://github.com/zulip/zulip.git
upload: Fix @uppy/xhr-upload locale configuration.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
ac6e0a2d34
commit
d9f05121d9
|
@ -290,7 +290,7 @@ export function setup_upload(config) {
|
|||
limit: 5,
|
||||
locale: {
|
||||
strings: {
|
||||
timedOut: $t({
|
||||
uploadStalled: $t({
|
||||
defaultMessage: "Upload stalled for %'{seconds}' seconds, aborting.",
|
||||
}),
|
||||
},
|
||||
|
|
|
@ -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}`);
|
||||
|
|
Loading…
Reference in New Issue