Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(i18n)fix moment duration format error
Oguzhan Selim Temiz3bde570ec553
diff --git a/package-lock.json b/package-lock.jsonindex d8a9a17890..ede9e12d32 100644--- a/package-lock.json+++ b/package-lock.json@@ -129,6 +129,7 @@"@types/dom-screen-wake-lock": "1.0.1","@types/js-md5": "0.4.3","@types/lodash": "4.14.182",+ "@types/moment-duration-format": "2.2.6","@types/offscreencanvas": "2019.7.2","@types/pixelmatch": "5.2.5","@types/punycode": "2.1.0",@@ -5702,6 +5703,15 @@"integrity": "sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==","dev": true},+ "node_modules/@types/moment-duration-format": {+ "version": "2.2.6",+ "resolved": "https://registry.npmjs.org/@types/moment-duration-format/-/moment-duration-format-2.2.6.tgz",+ "integrity": "sha512-Qw+6ys3sQCatqukjoIBsL1UJq6S7ep4ixrNvDkdViSgzw2ZG3neArXNu3ww7mEG8kwP32ZDoON/esWb7OUckRQ==",+ "dev": true,+ "dependencies": {+ "moment": ">=2.14.0"+ }+ },"node_modules/@types/node": {"version": "17.0.19","resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.19.tgz",@@ -22744,6 +22754,15 @@"integrity": "sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==","dev": true},+ "@types/moment-duration-format": {+ "version": "2.2.6",+ "resolved": "https://registry.npmjs.org/@types/moment-duration-format/-/moment-duration-format-2.2.6.tgz",+ "integrity": "sha512-Qw+6ys3sQCatqukjoIBsL1UJq6S7ep4ixrNvDkdViSgzw2ZG3neArXNu3ww7mEG8kwP32ZDoON/esWb7OUckRQ==",+ "dev": true,+ "requires": {+ "moment": ">=2.14.0"+ }+ },"@types/node": {"version": "17.0.19","resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.19.tgz",diff --git a/package.json b/package.jsonindex 3e88b047fe..5e90aaf921 100644--- a/package.json+++ b/package.json@@ -135,6 +135,7 @@"@types/dom-screen-wake-lock": "1.0.1","@types/js-md5": "0.4.3","@types/lodash": "4.14.182",+ "@types/moment-duration-format": "2.2.6","@types/offscreencanvas": "2019.7.2","@types/pixelmatch": "5.2.5","@types/punycode": "2.1.0",diff --git a/react/features/base/i18n/dateUtil.ts b/react/features/base/i18n/dateUtil.tsindex dffaaaa2ac..e61e67b419 100644--- a/react/features/base/i18n/dateUtil.ts+++ b/react/features/base/i18n/dateUtil.ts@@ -1,9 +1,10 @@import moment from 'moment';+import momentDurationFormatSetup from 'moment-duration-format';import i18next from './i18next';// allows for moment durations to be formatted-import 'moment-duration-format';+momentDurationFormatSetup(moment);// MomentJS uses static language bundle loading, so in order to support dynamic// language selection in the app we need to load all bundles that we support in