Skip to content

Commit c5433af

Browse files
Merge pull request #53392 from nextcloud/dependabot/npm_and_yarn/stable31/nextcloud/l10n-3.3.0
build(deps): bump @nextcloud/l10n from 3.2.0 to 3.3.0
2 parents 88e7b24 + 6a211b2 commit c5433af

File tree

103 files changed

+115
-189
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

+115
-189
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/1642-1642.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/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/2452-2452.js.license

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ This file is generated from multiple sources. Included packages:
3939
- version: 3.3.2
4040
- license: GPL-3.0-or-later
4141
- @nextcloud/l10n
42-
- version: 3.2.0
42+
- version: 3.3.0
4343
- license: GPL-3.0-or-later
4444
- @nextcloud/router
4545
- version: 3.0.1

dist/2983-2983.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/3179-3179.js.license

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ This file is generated from multiple sources. Included packages:
5151
- version: 2.2.0
5252
- license: GPL-3.0-or-later
5353
- @nextcloud/l10n
54-
- version: 3.2.0
54+
- version: 3.3.0
5555
- license: GPL-3.0-or-later
5656
- @nextcloud/logger
5757
- version: 3.0.2

dist/3303-3303.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/3435-3435.js.license

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ This file is generated from multiple sources. Included packages:
111111
- version: 2.2.0
112112
- license: GPL-3.0-or-later
113113
- @nextcloud/l10n
114-
- version: 3.2.0
114+
- version: 3.3.0
115115
- license: GPL-3.0-or-later
116116
- @nextcloud/logger
117117
- 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

0 commit comments

Comments
 (0)