Skip to content

Commit 0678095

Browse files
Merge pull request #53387 from nextcloud/dependabot/npm_and_yarn/nextcloud/l10n-3.3.0
2 parents 180549d + 7d2a929 commit 0678095

File tree

103 files changed

+114
-188
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+114
-188
lines changed

core/js/tests/specs/l10nSpec.js

Lines changed: 0 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -110,67 +110,4 @@ describe('OC.L10N tests', function() {
110110
checkPlurals();
111111
});
112112
});
113-
describe('async loading of translations', function() {
114-
afterEach(() => {
115-
document.documentElement.removeAttribute('data-locale')
116-
})
117-
it('loads bundle for given app and calls callback', function(done) {
118-
document.documentElement.setAttribute('data-locale', 'zh_CN')
119-
var callbackStub = sinon.stub();
120-
var promiseStub = sinon.stub();
121-
var loading = OC.L10N.load(TEST_APP, callbackStub);
122-
expect(callbackStub.notCalled).toEqual(true);
123-
var req = fakeServer.requests[0];
124-
125-
console.warn('fff-', window.OC.appswebroots)
126-
loading
127-
.then(promiseStub)
128-
.then(function() {
129-
expect(fakeServer.requests.length).toEqual(1);
130-
expect(req.url).toEqual(
131-
OC.getRootPath() + '/apps3/' + TEST_APP + '/l10n/zh_CN.json'
132-
);
133-
134-
expect(callbackStub.calledOnce).toEqual(true);
135-
expect(promiseStub.calledOnce).toEqual(true);
136-
expect(t(TEST_APP, 'Hello world!')).toEqual('你好世界!');
137-
})
138-
.then(done)
139-
.catch(e => expect(e).toBe('No error expected!'));
140-
141-
expect(promiseStub.notCalled).toEqual(true);
142-
req.respond(
143-
200,
144-
{ 'Content-Type': 'application/json' },
145-
JSON.stringify({
146-
translations: {'Hello world!': '你好世界!'},
147-
pluralForm: 'nplurals=2; plural=(n != 1);'
148-
})
149-
);
150-
});
151-
it('calls callback if translation already available', function(done) {
152-
var callbackStub = sinon.stub();
153-
spyOn(console, 'warn');
154-
OC.L10N.register(TEST_APP, {
155-
'Hello world!': 'Hallo Welt!'
156-
});
157-
OC.L10N.load(TEST_APP, callbackStub)
158-
.then(function() {
159-
expect(callbackStub.calledOnce).toEqual(true);
160-
expect(fakeServer.requests.length).toEqual(0);
161-
})
162-
.then(done);
163-
164-
});
165-
it('calls callback if locale is en', function(done) {
166-
var callbackStub = sinon.stub();
167-
OC.L10N.load(TEST_APP, callbackStub)
168-
.then(function() {
169-
expect(callbackStub.calledOnce).toEqual(true);
170-
expect(fakeServer.requests.length).toEqual(0);
171-
})
172-
.then(done)
173-
.catch(done);
174-
});
175-
});
176113
});

dist/1023-1023.js.license

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This file is generated from multiple sources. Included packages:
2222
- version: 2.2.0
2323
- license: GPL-3.0-or-later
2424
- @nextcloud/l10n
25-
- version: 3.2.0
25+
- version: 3.3.0
2626
- license: GPL-3.0-or-later
2727
- @nextcloud/router
2828
- version: 3.0.1

dist/1406-1406.js.license

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ This file is generated from multiple sources. Included packages:
7777
- version: 2.2.0
7878
- license: GPL-3.0-or-later
7979
- @nextcloud/l10n
80-
- version: 3.2.0
80+
- version: 3.3.0
8181
- license: GPL-3.0-or-later
8282
- @nextcloud/logger
8383
- version: 3.0.2

dist/1656-1656.js.license

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ This file is generated from multiple sources. Included packages:
6363
- version: 2.2.0
6464
- license: GPL-3.0-or-later
6565
- @nextcloud/l10n
66-
- version: 3.2.0
66+
- version: 3.3.0
6767
- license: GPL-3.0-or-later
6868
- @nextcloud/logger
6969
- version: 3.0.2

dist/3485-3485.js.license

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ This file is generated from multiple sources. Included packages:
6363
- version: 2.2.0
6464
- license: GPL-3.0-or-later
6565
- @nextcloud/l10n
66-
- version: 3.2.0
66+
- version: 3.3.0
6767
- license: GPL-3.0-or-later
6868
- @nextcloud/logger
6969
- version: 3.0.2

dist/3920-3920.js.license

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ This file is generated from multiple sources. Included packages:
8484
- version: 2.2.0
8585
- license: GPL-3.0-or-later
8686
- @nextcloud/l10n
87-
- version: 3.2.0
87+
- version: 3.3.0
8888
- license: GPL-3.0-or-later
8989
- @nextcloud/logger
9090
- version: 3.0.2

dist/3982-3982.js.license

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ This file is generated from multiple sources. Included packages:
8686
- version: 2.2.0
8787
- license: GPL-3.0-or-later
8888
- @nextcloud/l10n
89-
- version: 3.2.0
89+
- version: 3.3.0
9090
- license: GPL-3.0-or-later
9191
- @nextcloud/logger
9292
- version: 3.0.2

dist/4039-4039.js.license

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ This file is generated from multiple sources. Included packages:
6666
- version: 2.2.0
6767
- license: GPL-3.0-or-later
6868
- @nextcloud/l10n
69-
- version: 3.2.0
69+
- version: 3.3.0
7070
- license: GPL-3.0-or-later
7171
- @nextcloud/logger
7272
- version: 3.0.2

dist/4040-4040.js.license

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ This file is generated from multiple sources. Included packages:
4242
- version: 2.2.0
4343
- license: GPL-3.0-or-later
4444
- @nextcloud/l10n
45-
- version: 3.2.0
45+
- version: 3.3.0
4646
- license: GPL-3.0-or-later
4747
- @nextcloud/logger
4848
- version: 3.0.2

dist/4052-4052.js.license

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ This file is generated from multiple sources. Included packages:
5858
- version: 2.2.0
5959
- license: GPL-3.0-or-later
6060
- @nextcloud/l10n
61-
- version: 3.2.0
61+
- version: 3.3.0
6262
- license: GPL-3.0-or-later
6363
- @nextcloud/logger
6464
- version: 3.0.2

0 commit comments

Comments
 (0)