[Glitch] Upgrade react-intl
Port 44cd88adc4 to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import 'packs/public-path';
|
||||
import { loadLocale } from 'flavours/glitch/load_locale';
|
||||
import { loadPolyfills } from 'flavours/glitch/polyfills';
|
||||
|
||||
loadPolyfills().then(async () => {
|
||||
loadPolyfills().then(loadLocale).then(async () => {
|
||||
const { default: main } = await import('flavours/glitch/main');
|
||||
|
||||
return main();
|
||||
|
||||
@@ -12,6 +12,7 @@ import { throttle } from 'lodash';
|
||||
import { timeAgoString } from 'flavours/glitch/components/relative_timestamp';
|
||||
import emojify from 'flavours/glitch/features/emoji/emoji';
|
||||
import loadKeyboardExtensions from 'flavours/glitch/load_keyboard_extensions';
|
||||
import { loadLocale } from 'flavours/glitch/load_locale';
|
||||
import { loadPolyfills } from 'flavours/glitch/polyfills';
|
||||
import ready from 'flavours/glitch/ready';
|
||||
import { getLocale } from 'locales';
|
||||
@@ -237,6 +238,7 @@ function main() {
|
||||
}
|
||||
|
||||
loadPolyfills()
|
||||
.then(loadLocale)
|
||||
.then(main)
|
||||
.then(loadKeyboardExtensions)
|
||||
.catch(error => {
|
||||
|
||||
@@ -2,6 +2,7 @@ import 'packs/public-path';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
|
||||
import ComposeContainer from 'flavours/glitch/containers/compose_container';
|
||||
import { loadLocale } from 'flavours/glitch/load_locale';
|
||||
import { loadPolyfills } from 'flavours/glitch/polyfills';
|
||||
import ready from 'flavours/glitch/ready';
|
||||
|
||||
@@ -22,6 +23,6 @@ function main() {
|
||||
ready(loaded);
|
||||
}
|
||||
|
||||
loadPolyfills().then(main).catch(error => {
|
||||
loadPolyfills().then(loadLocale).then(main).catch(error => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user