aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--client/angular.json5
-rwxr-xr-xscripts/build/client.sh1
-rw-r--r--server/tests/api/server/stats.ts10
-rw-r--r--shared/core-utils/i18n/i18n.ts2
4 files changed, 16 insertions, 2 deletions
diff --git a/client/angular.json b/client/angular.json
index 6c0289041..9bf02e271 100644
--- a/client/angular.json
+++ b/client/angular.json
@@ -93,6 +93,10 @@
93 "translation": "src/locale/angular.ca-ES.xlf", 93 "translation": "src/locale/angular.ca-ES.xlf",
94 "baseHref": "/client/ca-ES/" 94 "baseHref": "/client/ca-ES/"
95 }, 95 },
96 "gl": {
97 "translation": "src/locale/angular.gl-ES.xlf",
98 "baseHref": "/client/gl-ES/"
99 },
96 "cs": { 100 "cs": {
97 "translation": "src/locale/angular.cs-CZ.xlf", 101 "translation": "src/locale/angular.cs-CZ.xlf",
98 "baseHref": "/client/cs-CZ/" 102 "baseHref": "/client/cs-CZ/"
@@ -307,6 +311,7 @@
307 "languages": [ 311 "languages": [
308 "ar", 312 "ar",
309 "ca-ES", 313 "ca-ES",
314 "gl-ES",
310 "cs-CZ", 315 "cs-CZ",
311 "da-DK", 316 "da-DK",
312 "de-DE", 317 "de-DE",
diff --git a/scripts/build/client.sh b/scripts/build/client.sh
index 3bca9105a..0f5b2d976 100755
--- a/scripts/build/client.sh
+++ b/scripts/build/client.sh
@@ -29,6 +29,7 @@ languages=(
29 ["ja"]="ja-JP" 29 ["ja"]="ja-JP"
30 ["eu"]="eu-ES" 30 ["eu"]="eu-ES"
31 ["ca"]="ca-ES" 31 ["ca"]="ca-ES"
32 ["gl"]="gl-ES"
32 ["cs"]="cs-CZ" 33 ["cs"]="cs-CZ"
33 ["eo"]="eo" 34 ["eo"]="eo"
34 ["de"]="de-DE" 35 ["de"]="de-DE"
diff --git a/server/tests/api/server/stats.ts b/server/tests/api/server/stats.ts
index 9f785a80e..b752da743 100644
--- a/server/tests/api/server/stats.ts
+++ b/server/tests/api/server/stats.ts
@@ -135,7 +135,7 @@ describe('Test stats (excluding redundancy)', function () {
135 }) 135 })
136 136
137 it('Should correctly count video file sizes if transcoding is enabled', async function () { 137 it('Should correctly count video file sizes if transcoding is enabled', async function () {
138 this.timeout(20000) 138 this.timeout(60000)
139 139
140 await updateCustomSubConfig(servers[0].url, servers[0].accessToken, { 140 await updateCustomSubConfig(servers[0].url, servers[0].accessToken, {
141 transcoding: { 141 transcoding: {
@@ -179,6 +179,12 @@ describe('Test stats (excluding redundancy)', function () {
179 it('Should have the correct AP stats', async function () { 179 it('Should have the correct AP stats', async function () {
180 this.timeout(60000) 180 this.timeout(60000)
181 181
182 await updateCustomSubConfig(servers[0].url, servers[0].accessToken, {
183 transcoding: {
184 enabled: false
185 }
186 })
187
182 for (let i = 0; i < 10; i++) { 188 for (let i = 0; i < 10; i++) {
183 await uploadVideo(servers[0].url, servers[0].accessToken, { name: 'video' }) 189 await uploadVideo(servers[0].url, servers[0].accessToken, { name: 'video' })
184 } 190 }
@@ -191,7 +197,6 @@ describe('Test stats (excluding redundancy)', function () {
191 const res2 = await getStats(servers[1].url) 197 const res2 = await getStats(servers[1].url)
192 const second: ServerStats = res2.body 198 const second: ServerStats = res2.body
193 199
194 expect(second.totalActivityPubMessagesWaiting).to.equal(0)
195 expect(second.totalActivityPubMessagesProcessed).to.be.greaterThan(first.totalActivityPubMessagesProcessed) 200 expect(second.totalActivityPubMessagesProcessed).to.be.greaterThan(first.totalActivityPubMessagesProcessed)
196 201
197 await wait(5000) 202 await wait(5000)
@@ -199,6 +204,7 @@ describe('Test stats (excluding redundancy)', function () {
199 const res3 = await getStats(servers[1].url) 204 const res3 = await getStats(servers[1].url)
200 const third: ServerStats = res3.body 205 const third: ServerStats = res3.body
201 206
207 expect(third.totalActivityPubMessagesWaiting).to.equal(0)
202 expect(third.activityPubMessagesProcessedPerSecond).to.be.lessThan(second.activityPubMessagesProcessedPerSecond) 208 expect(third.activityPubMessagesProcessedPerSecond).to.be.lessThan(second.activityPubMessagesProcessedPerSecond)
203 }) 209 })
204 210
diff --git a/shared/core-utils/i18n/i18n.ts b/shared/core-utils/i18n/i18n.ts
index 9ad0f456d..cc7621da8 100644
--- a/shared/core-utils/i18n/i18n.ts
+++ b/shared/core-utils/i18n/i18n.ts
@@ -15,6 +15,7 @@ export const I18N_LOCALES = {
15 'fi-FI': 'suomi', 15 'fi-FI': 'suomi',
16 'fr-FR': 'Français', 16 'fr-FR': 'Français',
17 'gd': 'Gàidhlig', 17 'gd': 'Gàidhlig',
18 'gl-ES': 'galego',
18 'hu-HU': 'magyar', 19 'hu-HU': 'magyar',
19 'it-IT': 'Italiano', 20 'it-IT': 'Italiano',
20 'ja-JP': '日本語', 21 'ja-JP': '日本語',
@@ -42,6 +43,7 @@ const I18N_LOCALE_ALIAS = {
42 'es': 'es-ES', 43 'es': 'es-ES',
43 'eu': 'eu-ES', 44 'eu': 'eu-ES',
44 'fi': 'fi-FI', 45 'fi': 'fi-FI',
46 'gl': 'gl-ES',
45 'fr': 'fr-FR', 47 'fr': 'fr-FR',
46 'hu': 'hu-HU', 48 'hu': 'hu-HU',
47 'it': 'it-IT', 49 'it': 'it-IT',