Skip to content

Commit 94cc856

Browse files
Merge pull request #53395 from nextcloud/dependabot/npm_and_yarn/stable30/nextcloud/l10n-3.3.0
build(deps): bump @nextcloud/l10n from 3.2.0 to 3.3.0
2 parents 2c3cfbc + 1b7799e commit 94cc856

File tree

89 files changed

+98
-172
lines changed

Some content is hidden

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

89 files changed

+98
-172
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/1521-1521.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/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
@@ -60,7 +60,7 @@ This file is generated from multiple sources. Included packages:
6060
- version: 2.2.0
6161
- license: GPL-3.0-or-later
6262
- @nextcloud/l10n
63-
- version: 3.2.0
63+
- version: 3.3.0
6464
- license: GPL-3.0-or-later
6565
- @nextcloud/logger
6666
- version: 3.0.2

dist/2142-2142.js.license

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ This file is generated from multiple sources. Included packages:
4646
- version: 2.2.0
4747
- license: GPL-3.0-or-later
4848
- @nextcloud/l10n
49-
- version: 3.2.0
49+
- version: 3.3.0
5050
- license: GPL-3.0-or-later
5151
- @nextcloud/logger
5252
- 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/3485-3485.js.license

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ This file is generated from multiple sources. Included packages:
6060
- version: 2.2.0
6161
- license: GPL-3.0-or-later
6262
- @nextcloud/l10n
63-
- version: 3.2.0
63+
- version: 3.3.0
6464
- license: GPL-3.0-or-later
6565
- @nextcloud/logger
6666
- 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/4013-4013.js.license

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ This file is generated from multiple sources. Included packages:
110110
- version: 2.2.0
111111
- license: GPL-3.0-or-later
112112
- @nextcloud/l10n
113-
- version: 3.2.0
113+
- version: 3.3.0
114114
- license: GPL-3.0-or-later
115115
- @nextcloud/logger
116116
- version: 3.0.2

0 commit comments

Comments
 (0)