Move i18n setup to TypeScript
This commit is contained in:
parent
4dcbb7352f
commit
829e42ca6e
155 changed files with 182 additions and 182 deletions
|
@ -4,10 +4,11 @@
|
||||||
import { join } from 'path';
|
import { join } from 'path';
|
||||||
import { readFileSync } from 'fs';
|
import { readFileSync } from 'fs';
|
||||||
import { merge } from 'lodash';
|
import { merge } from 'lodash';
|
||||||
import { setup } from '../js/modules/i18n';
|
import { setupI18n } from '../ts/util/setupI18n';
|
||||||
|
|
||||||
import { LoggerType } from '../ts/types/Logging';
|
import { LoggerType } from '../ts/types/Logging';
|
||||||
import { LocalizerType, LocaleMessagesType } from '../ts/types/I18N';
|
import { LocaleMessagesType } from '../ts/types/I18N';
|
||||||
|
import { LocalizerType } from '../ts/types/Util';
|
||||||
|
|
||||||
function normalizeLocaleName(locale: string): string {
|
function normalizeLocaleName(locale: string): string {
|
||||||
if (/^en-/.test(locale)) {
|
if (/^en-/.test(locale)) {
|
||||||
|
@ -75,7 +76,7 @@ export function load({
|
||||||
messages = english;
|
messages = english;
|
||||||
}
|
}
|
||||||
|
|
||||||
const i18n = setup(appLocale, messages);
|
const i18n = setupI18n(appLocale, messages);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
i18n,
|
i18n,
|
||||||
|
|
|
@ -9,7 +9,7 @@ const url = require('url');
|
||||||
// It is important to call this as early as possible
|
// It is important to call this as early as possible
|
||||||
require('./ts/windows/context');
|
require('./ts/windows/context');
|
||||||
|
|
||||||
const i18n = require('./js/modules/i18n');
|
const { setupI18n } = require('./ts/util/setupI18n');
|
||||||
const {
|
const {
|
||||||
getEnvironment,
|
getEnvironment,
|
||||||
setEnvironment,
|
setEnvironment,
|
||||||
|
@ -23,7 +23,7 @@ setEnvironment(parseEnvironment(config.environment));
|
||||||
|
|
||||||
window.getVersion = () => config.version;
|
window.getVersion = () => config.version;
|
||||||
window.theme = config.theme;
|
window.theme = config.theme;
|
||||||
window.i18n = i18n.setup(locale, localeMessages);
|
window.i18n = setupI18n(locale, localeMessages);
|
||||||
|
|
||||||
// got.js appears to need this to successfully submit debug logs to the cloud
|
// got.js appears to need this to successfully submit debug logs to the cloud
|
||||||
window.nodeSetImmediate = setImmediate;
|
window.nodeSetImmediate = setImmediate;
|
||||||
|
|
9
js/modules/i18n.d.ts
vendored
9
js/modules/i18n.d.ts
vendored
|
@ -1,9 +0,0 @@
|
||||||
// Copyright 2020 Signal Messenger, LLC
|
|
||||||
// SPDX-License-Identifier: AGPL-3.0-only
|
|
||||||
|
|
||||||
import { LocalizerType } from '../../ts/types/Util';
|
|
||||||
|
|
||||||
export const setup: (
|
|
||||||
language: string,
|
|
||||||
messages: Record<string, unknown>
|
|
||||||
) => LocalizerType;
|
|
|
@ -422,11 +422,11 @@ try {
|
||||||
window.PQueue = require('p-queue').default;
|
window.PQueue = require('p-queue').default;
|
||||||
|
|
||||||
const Signal = require('./js/modules/signal');
|
const Signal = require('./js/modules/signal');
|
||||||
const i18n = require('./js/modules/i18n');
|
const { setupI18n } = require('./ts/util/setupI18n');
|
||||||
const Attachments = require('./app/attachments');
|
const Attachments = require('./app/attachments');
|
||||||
|
|
||||||
const { locale } = config;
|
const { locale } = config;
|
||||||
window.i18n = i18n.setup(locale, localeMessages);
|
window.i18n = setupI18n(locale, localeMessages);
|
||||||
window.moment.updateLocale(locale, {
|
window.moment.updateLocale(locale, {
|
||||||
relativeTime: {
|
relativeTime: {
|
||||||
s: window.i18n('timestamp_s'),
|
s: window.i18n('timestamp_s'),
|
||||||
|
|
|
@ -6,7 +6,7 @@ import React from 'react';
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
import { action } from '@storybook/addon-actions';
|
import { action } from '@storybook/addon-actions';
|
||||||
|
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
import {
|
import {
|
||||||
AddGroupMemberErrorDialog,
|
AddGroupMemberErrorDialog,
|
||||||
|
|
|
@ -6,7 +6,7 @@ import React from 'react';
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
import { action } from '@storybook/addon-actions';
|
import { action } from '@storybook/addon-actions';
|
||||||
|
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
import { Alert } from './Alert';
|
import { Alert } from './Alert';
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { boolean, select, text } from '@storybook/addon-knobs';
|
||||||
import { action } from '@storybook/addon-actions';
|
import { action } from '@storybook/addon-actions';
|
||||||
|
|
||||||
import { Avatar, AvatarBlur, Props } from './Avatar';
|
import { Avatar, AvatarBlur, Props } from './Avatar';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
import { AvatarColors, AvatarColorType } from '../types/Colors';
|
import { AvatarColors, AvatarColorType } from '../types/Colors';
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ import React from 'react';
|
||||||
|
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
import { action } from '@storybook/addon-actions';
|
import { action } from '@storybook/addon-actions';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
import { AvatarColorPicker, PropsType } from './AvatarColorPicker';
|
import { AvatarColorPicker, PropsType } from './AvatarColorPicker';
|
||||||
|
|
|
@ -5,7 +5,7 @@ import React from 'react';
|
||||||
|
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
import { action } from '@storybook/addon-actions';
|
import { action } from '@storybook/addon-actions';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
import { AvatarColors } from '../types/Colors';
|
import { AvatarColors } from '../types/Colors';
|
||||||
|
|
|
@ -5,7 +5,7 @@ import React from 'react';
|
||||||
|
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
import { action } from '@storybook/addon-actions';
|
import { action } from '@storybook/addon-actions';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
import { AvatarIconEditor, PropsType } from './AvatarIconEditor';
|
import { AvatarIconEditor, PropsType } from './AvatarIconEditor';
|
||||||
|
|
|
@ -10,7 +10,7 @@ import { select } from '@storybook/addon-knobs';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
import { AvatarColors } from '../types/Colors';
|
import { AvatarColors } from '../types/Colors';
|
||||||
import { AvatarLightbox, PropsType } from './AvatarLightbox';
|
import { AvatarLightbox, PropsType } from './AvatarLightbox';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { action } from '@storybook/addon-actions';
|
||||||
|
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
import { AvatarModalButtons, PropsType } from './AvatarModalButtons';
|
import { AvatarModalButtons, PropsType } from './AvatarModalButtons';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { boolean, select, text } from '@storybook/addon-knobs';
|
||||||
|
|
||||||
import { AvatarPopup, Props } from './AvatarPopup';
|
import { AvatarPopup, Props } from './AvatarPopup';
|
||||||
import { AvatarColors, AvatarColorType } from '../types/Colors';
|
import { AvatarColors, AvatarColorType } from '../types/Colors';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { storiesOf } from '@storybook/react';
|
||||||
|
|
||||||
import { AvatarPreview, PropsType } from './AvatarPreview';
|
import { AvatarPreview, PropsType } from './AvatarPreview';
|
||||||
import { AvatarColors } from '../types/Colors';
|
import { AvatarColors } from '../types/Colors';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
|
@ -5,7 +5,7 @@ import React from 'react';
|
||||||
|
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
import { action } from '@storybook/addon-actions';
|
import { action } from '@storybook/addon-actions';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
import { AvatarTextEditor, PropsType } from './AvatarTextEditor';
|
import { AvatarTextEditor, PropsType } from './AvatarTextEditor';
|
||||||
|
|
|
@ -5,7 +5,7 @@ import React from 'react';
|
||||||
|
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
import { action } from '@storybook/addon-actions';
|
import { action } from '@storybook/addon-actions';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
import { AvatarUploadButton, PropsType } from './AvatarUploadButton';
|
import { AvatarUploadButton, PropsType } from './AvatarUploadButton';
|
||||||
|
|
|
@ -11,7 +11,7 @@ import { AvatarColors } from '../types/Colors';
|
||||||
import { GroupAvatarIcons, PersonalAvatarIcons } from '../types/Avatar';
|
import { GroupAvatarIcons, PersonalAvatarIcons } from '../types/Avatar';
|
||||||
import { BetterAvatar, PropsType } from './BetterAvatar';
|
import { BetterAvatar, PropsType } from './BetterAvatar';
|
||||||
import { createAvatarData } from '../util/createAvatarData';
|
import { createAvatarData } from '../util/createAvatarData';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { action } from '@storybook/addon-actions';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
import { AvatarColors } from '../types/Colors';
|
import { AvatarColors } from '../types/Colors';
|
||||||
import { BetterAvatarBubble, PropsType } from './BetterAvatarBubble';
|
import { BetterAvatarBubble, PropsType } from './BetterAvatarBubble';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ import { ConversationTypeType } from '../state/ducks/conversations';
|
||||||
import { AvatarColors, AvatarColorType } from '../types/Colors';
|
import { AvatarColors, AvatarColorType } from '../types/Colors';
|
||||||
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
||||||
import { fakeGetGroupCallVideoFrameSource } from '../test-both/helpers/fakeGetGroupCallVideoFrameSource';
|
import { fakeGetGroupCallVideoFrameSource } from '../test-both/helpers/fakeGetGroupCallVideoFrameSource';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import { Props as SafetyNumberViewerProps } from '../state/smart/SafetyNumberViewer';
|
import { Props as SafetyNumberViewerProps } from '../state/smart/SafetyNumberViewer';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ import {
|
||||||
import { ConversationType } from '../state/ducks/conversations';
|
import { ConversationType } from '../state/ducks/conversations';
|
||||||
import { AvatarColors } from '../types/Colors';
|
import { AvatarColors } from '../types/Colors';
|
||||||
import { CallScreen, PropsType } from './CallScreen';
|
import { CallScreen, PropsType } from './CallScreen';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import { missingCaseError } from '../util/missingCaseError';
|
import { missingCaseError } from '../util/missingCaseError';
|
||||||
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
||||||
import { fakeGetGroupCallVideoFrameSource } from '../test-both/helpers/fakeGetGroupCallVideoFrameSource';
|
import { fakeGetGroupCallVideoFrameSource } from '../test-both/helpers/fakeGetGroupCallVideoFrameSource';
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { action } from '@storybook/addon-actions';
|
||||||
|
|
||||||
import { CallingButton, CallingButtonType, PropsType } from './CallingButton';
|
import { CallingButton, CallingButtonType, PropsType } from './CallingButton';
|
||||||
import { TooltipPlacement } from './Tooltip';
|
import { TooltipPlacement } from './Tooltip';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
|
@ -6,7 +6,7 @@ import { action } from '@storybook/addon-actions';
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
|
|
||||||
import { CallingDeviceSelection, Props } from './CallingDeviceSelection';
|
import { CallingDeviceSelection, Props } from './CallingDeviceSelection';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
|
@ -7,7 +7,7 @@ import { boolean, number } from '@storybook/addon-knobs';
|
||||||
import { action } from '@storybook/addon-actions';
|
import { action } from '@storybook/addon-actions';
|
||||||
|
|
||||||
import { CallingHeader, PropsType } from './CallingHeader';
|
import { CallingHeader, PropsType } from './CallingHeader';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
|
@ -11,7 +11,7 @@ import { v4 as generateUuid } from 'uuid';
|
||||||
import { AvatarColors } from '../types/Colors';
|
import { AvatarColors } from '../types/Colors';
|
||||||
import { ConversationType } from '../state/ducks/conversations';
|
import { ConversationType } from '../state/ducks/conversations';
|
||||||
import { CallingLobby, PropsType } from './CallingLobby';
|
import { CallingLobby, PropsType } from './CallingLobby';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ import { CallingParticipantsList, PropsType } from './CallingParticipantsList';
|
||||||
import { AvatarColors } from '../types/Colors';
|
import { AvatarColors } from '../types/Colors';
|
||||||
import { GroupCallRemoteParticipantType } from '../types/Calling';
|
import { GroupCallRemoteParticipantType } from '../types/Calling';
|
||||||
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
|
@ -19,7 +19,7 @@ import {
|
||||||
} from '../types/Calling';
|
} from '../types/Calling';
|
||||||
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
||||||
import { fakeGetGroupCallVideoFrameSource } from '../test-both/helpers/fakeGetGroupCallVideoFrameSource';
|
import { fakeGetGroupCallVideoFrameSource } from '../test-both/helpers/fakeGetGroupCallVideoFrameSource';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { times, range } from 'lodash';
|
import { times, range } from 'lodash';
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ import {
|
||||||
PropsType,
|
PropsType,
|
||||||
} from './CallingScreenSharingController';
|
} from './CallingScreenSharingController';
|
||||||
|
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
|
@ -10,7 +10,7 @@ import {
|
||||||
PropsType,
|
PropsType,
|
||||||
} from './CallingSelectPresentingSourcesModal';
|
} from './CallingSelectPresentingSourcesModal';
|
||||||
|
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { storiesOf } from '@storybook/react';
|
||||||
|
|
||||||
import { CaptchaDialog } from './CaptchaDialog';
|
import { CaptchaDialog } from './CaptchaDialog';
|
||||||
import { Button } from './Button';
|
import { Button } from './Button';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
const story = storiesOf('Components/CaptchaDialog', module);
|
const story = storiesOf('Components/CaptchaDialog', module);
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { action } from '@storybook/addon-actions';
|
||||||
|
|
||||||
import { CaptionEditor, Props } from './CaptionEditor';
|
import { CaptionEditor, Props } from './CaptionEditor';
|
||||||
import { AUDIO_MP3, IMAGE_JPEG, VIDEO_MP4 } from '../types/MIME';
|
import { AUDIO_MP3, IMAGE_JPEG, VIDEO_MP4 } from '../types/MIME';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
|
@ -10,7 +10,7 @@ import { select } from '@storybook/addon-knobs';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
import { ChatColorPicker, PropsType } from './ChatColorPicker';
|
import { ChatColorPicker, PropsType } from './ChatColorPicker';
|
||||||
import { ConversationColors } from '../types/Colors';
|
import { ConversationColors } from '../types/Colors';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
|
|
||||||
const story = storiesOf('Components/ChatColorPicker', module);
|
const story = storiesOf('Components/ChatColorPicker', module);
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ import React from 'react';
|
||||||
|
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
import { action } from '@storybook/addon-actions';
|
import { action } from '@storybook/addon-actions';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
import { ClearingData } from './ClearingData';
|
import { ClearingData } from './ClearingData';
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { boolean } from '@storybook/addon-knobs';
|
||||||
|
|
||||||
import { IMAGE_JPEG } from '../types/MIME';
|
import { IMAGE_JPEG } from '../types/MIME';
|
||||||
import { CompositionArea, Props } from './CompositionArea';
|
import { CompositionArea, Props } from './CompositionArea';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
|
@ -10,7 +10,7 @@ import { action } from '@storybook/addon-actions';
|
||||||
|
|
||||||
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
||||||
import { CompositionInput, Props } from './CompositionInput';
|
import { CompositionInput, Props } from './CompositionInput';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
|
@ -5,7 +5,7 @@ import React from 'react';
|
||||||
|
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
import { action } from '@storybook/addon-actions';
|
import { action } from '@storybook/addon-actions';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
import { ConfirmDiscardDialog, PropsType } from './ConfirmDiscardDialog';
|
import { ConfirmDiscardDialog, PropsType } from './ConfirmDiscardDialog';
|
||||||
|
|
|
@ -7,7 +7,7 @@ import { action } from '@storybook/addon-actions';
|
||||||
import { text } from '@storybook/addon-knobs';
|
import { text } from '@storybook/addon-knobs';
|
||||||
|
|
||||||
import { ConfirmationDialog } from './ConfirmationDialog';
|
import { ConfirmationDialog } from './ConfirmationDialog';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
|
@ -7,7 +7,7 @@ import { storiesOf } from '@storybook/react';
|
||||||
import { action } from '@storybook/addon-actions';
|
import { action } from '@storybook/addon-actions';
|
||||||
|
|
||||||
import { gifUrl } from '../storybook/Fixtures';
|
import { gifUrl } from '../storybook/Fixtures';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
import { ContactListItem } from './ContactListItem';
|
import { ContactListItem } from './ContactListItem';
|
||||||
import { getRandomColor } from '../test-both/helpers/getRandomColor';
|
import { getRandomColor } from '../test-both/helpers/getRandomColor';
|
||||||
|
|
|
@ -7,7 +7,7 @@ import { times } from 'lodash';
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
import { action } from '@storybook/addon-actions';
|
import { action } from '@storybook/addon-actions';
|
||||||
|
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
import { ContactPills } from './ContactPills';
|
import { ContactPills } from './ContactPills';
|
||||||
import { ContactPill, PropsType as ContactPillPropsType } from './ContactPill';
|
import { ContactPill, PropsType as ContactPillPropsType } from './ContactPill';
|
||||||
|
|
|
@ -16,7 +16,7 @@ import {
|
||||||
} from './conversationList/ConversationListItem';
|
} from './conversationList/ConversationListItem';
|
||||||
import { ContactCheckboxDisabledReason } from './conversationList/ContactCheckbox';
|
import { ContactCheckboxDisabledReason } from './conversationList/ContactCheckbox';
|
||||||
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { action } from '@storybook/addon-actions';
|
||||||
|
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
import { CustomColorEditor, PropsType } from './CustomColorEditor';
|
import { CustomColorEditor, PropsType } from './CustomColorEditor';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
|
|
||||||
const story = storiesOf('Components/CustomColorEditor', module);
|
const story = storiesOf('Components/CustomColorEditor', module);
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ import React, { ComponentProps } from 'react';
|
||||||
|
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
import { action } from '@storybook/addon-actions';
|
import { action } from '@storybook/addon-actions';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
import { CustomizingPreferredReactionsModal } from './CustomizingPreferredReactionsModal';
|
import { CustomizingPreferredReactionsModal } from './CustomizingPreferredReactionsModal';
|
||||||
|
|
|
@ -6,7 +6,7 @@ import { storiesOf } from '@storybook/react';
|
||||||
import { boolean } from '@storybook/addon-knobs';
|
import { boolean } from '@storybook/addon-knobs';
|
||||||
|
|
||||||
import { DialogExpiredBuild } from './DialogExpiredBuild';
|
import { DialogExpiredBuild } from './DialogExpiredBuild';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { action } from '@storybook/addon-actions';
|
||||||
|
|
||||||
import { DialogNetworkStatus } from './DialogNetworkStatus';
|
import { DialogNetworkStatus } from './DialogNetworkStatus';
|
||||||
import { SocketStatus } from '../types/SocketStatus';
|
import { SocketStatus } from '../types/SocketStatus';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
|
@ -7,7 +7,7 @@ import { boolean } from '@storybook/addon-knobs';
|
||||||
import { action } from '@storybook/addon-actions';
|
import { action } from '@storybook/addon-actions';
|
||||||
|
|
||||||
import { DialogRelink } from './DialogRelink';
|
import { DialogRelink } from './DialogRelink';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { action } from '@storybook/addon-actions';
|
||||||
import { DialogUpdate } from './DialogUpdate';
|
import { DialogUpdate } from './DialogUpdate';
|
||||||
import { DialogType } from '../types/Dialogs';
|
import { DialogType } from '../types/Dialogs';
|
||||||
|
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
|
@ -6,7 +6,7 @@ import { action } from '@storybook/addon-actions';
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
|
|
||||||
import { DisappearingTimeDialog } from './DisappearingTimeDialog';
|
import { DisappearingTimeDialog } from './DisappearingTimeDialog';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
import { EXPIRE_TIMERS } from '../test-both/util/expireTimers';
|
import { EXPIRE_TIMERS } from '../test-both/util/expireTimers';
|
||||||
|
|
|
@ -5,7 +5,7 @@ import React, { useState } from 'react';
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
|
|
||||||
import { DisappearingTimerSelect } from './DisappearingTimerSelect';
|
import { DisappearingTimerSelect } from './DisappearingTimerSelect';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
const story = storiesOf('Components/DisappearingTimerSelect', module);
|
const story = storiesOf('Components/DisappearingTimerSelect', module);
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { action } from '@storybook/addon-actions';
|
||||||
|
|
||||||
import { PropsType, ErrorModal } from './ErrorModal';
|
import { PropsType, ErrorModal } from './ErrorModal';
|
||||||
|
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
|
@ -12,7 +12,7 @@ import { AttachmentType } from '../types/Attachment';
|
||||||
import { ForwardMessageModal, PropsType } from './ForwardMessageModal';
|
import { ForwardMessageModal, PropsType } from './ForwardMessageModal';
|
||||||
import { IMAGE_JPEG, VIDEO_MP4, stringToMIMEType } from '../types/MIME';
|
import { IMAGE_JPEG, VIDEO_MP4, stringToMIMEType } from '../types/MIME';
|
||||||
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
|
|
||||||
const createAttachment = (
|
const createAttachment = (
|
||||||
props: Partial<AttachmentType> = {}
|
props: Partial<AttachmentType> = {}
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { storiesOf } from '@storybook/react';
|
||||||
import { number } from '@storybook/addon-knobs';
|
import { number } from '@storybook/addon-knobs';
|
||||||
|
|
||||||
import { GroupCallOverflowArea } from './GroupCallOverflowArea';
|
import { GroupCallOverflowArea } from './GroupCallOverflowArea';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
||||||
import { fakeGetGroupCallVideoFrameSource } from '../test-both/helpers/fakeGetGroupCallVideoFrameSource';
|
import { fakeGetGroupCallVideoFrameSource } from '../test-both/helpers/fakeGetGroupCallVideoFrameSource';
|
||||||
import { FRAME_BUFFER_SIZE } from '../calling/constants';
|
import { FRAME_BUFFER_SIZE } from '../calling/constants';
|
||||||
|
|
|
@ -11,7 +11,7 @@ import {
|
||||||
} from './GroupCallRemoteParticipant';
|
} from './GroupCallRemoteParticipant';
|
||||||
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
||||||
import { FRAME_BUFFER_SIZE } from '../calling/constants';
|
import { FRAME_BUFFER_SIZE } from '../calling/constants';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
|
@ -5,7 +5,7 @@ import React, { useState } from 'react';
|
||||||
|
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
|
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
import { GroupDescriptionInput } from './GroupDescriptionInput';
|
import { GroupDescriptionInput } from './GroupDescriptionInput';
|
||||||
|
|
|
@ -5,7 +5,7 @@ import React, { useState } from 'react';
|
||||||
|
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
|
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
import { GroupTitleInput } from './GroupTitleInput';
|
import { GroupTitleInput } from './GroupTitleInput';
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { action } from '@storybook/addon-actions';
|
||||||
|
|
||||||
import { GroupV1MigrationDialog, PropsType } from './GroupV1MigrationDialog';
|
import { GroupV1MigrationDialog, PropsType } from './GroupV1MigrationDialog';
|
||||||
import { ConversationType } from '../state/ducks/conversations';
|
import { ConversationType } from '../state/ducks/conversations';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ import { boolean, number, text } from '@storybook/addon-knobs';
|
||||||
import { action } from '@storybook/addon-actions';
|
import { action } from '@storybook/addon-actions';
|
||||||
|
|
||||||
import { GroupV2JoinDialog, PropsType } from './GroupV2JoinDialog';
|
import { GroupV2JoinDialog, PropsType } from './GroupV2JoinDialog';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
|
@ -5,7 +5,7 @@ import * as React from 'react';
|
||||||
|
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
|
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
import { InContactsIcon } from './InContactsIcon';
|
import { InContactsIcon } from './InContactsIcon';
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ import { action } from '@storybook/addon-actions';
|
||||||
|
|
||||||
import { IncomingCallBar } from './IncomingCallBar';
|
import { IncomingCallBar } from './IncomingCallBar';
|
||||||
import { CallMode } from '../types/Calling';
|
import { CallMode } from '../types/Calling';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { text } from '@storybook/addon-knobs';
|
||||||
import { action } from '@storybook/addon-actions';
|
import { action } from '@storybook/addon-actions';
|
||||||
|
|
||||||
import { Input, PropsType } from './Input';
|
import { Input, PropsType } from './Input';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
|
@ -7,7 +7,7 @@ import { text } from '@storybook/addon-knobs';
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
|
|
||||||
import { Intl, Props } from './Intl';
|
import { Intl, Props } from './Intl';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
|
@ -11,7 +11,7 @@ import { LeftPane, LeftPaneMode, PropsType } from './LeftPane';
|
||||||
import { CaptchaDialog } from './CaptchaDialog';
|
import { CaptchaDialog } from './CaptchaDialog';
|
||||||
import { ConversationType } from '../state/ducks/conversations';
|
import { ConversationType } from '../state/ducks/conversations';
|
||||||
import { MessageSearchResult } from './conversationList/MessageSearchResult';
|
import { MessageSearchResult } from './conversationList/MessageSearchResult';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ import { number } from '@storybook/addon-knobs';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
import { Lightbox, PropsType } from './Lightbox';
|
import { Lightbox, PropsType } from './Lightbox';
|
||||||
import { MediaItemType } from '../types/MediaItem';
|
import { MediaItemType } from '../types/MediaItem';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import {
|
import {
|
||||||
AUDIO_MP3,
|
AUDIO_MP3,
|
||||||
IMAGE_JPEG,
|
IMAGE_JPEG,
|
||||||
|
|
|
@ -6,7 +6,7 @@ import { storiesOf } from '@storybook/react';
|
||||||
import { text, withKnobs } from '@storybook/addon-knobs';
|
import { text, withKnobs } from '@storybook/addon-knobs';
|
||||||
import { action } from '@storybook/addon-actions';
|
import { action } from '@storybook/addon-actions';
|
||||||
|
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
import { MainHeader, PropsType } from './MainHeader';
|
import { MainHeader, PropsType } from './MainHeader';
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { boolean } from '@storybook/addon-knobs';
|
||||||
|
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
import { MediaQualitySelector, PropsType } from './MediaQualitySelector';
|
import { MediaQualitySelector, PropsType } from './MediaQualitySelector';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
|
|
||||||
const story = storiesOf('Components/MediaQualitySelector', module);
|
const story = storiesOf('Components/MediaQualitySelector', module);
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ import { noop } from 'lodash';
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
import { action } from '@storybook/addon-actions';
|
import { action } from '@storybook/addon-actions';
|
||||||
|
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
import { Button } from './Button';
|
import { Button } from './Button';
|
||||||
import { Modal } from './Modal';
|
import { Modal } from './Modal';
|
||||||
|
|
|
@ -7,7 +7,7 @@ import { storiesOf } from '@storybook/react';
|
||||||
import { action } from '@storybook/addon-actions';
|
import { action } from '@storybook/addon-actions';
|
||||||
|
|
||||||
import { NewlyCreatedGroupInvitedContactsDialog } from './NewlyCreatedGroupInvitedContactsDialog';
|
import { NewlyCreatedGroupInvitedContactsDialog } from './NewlyCreatedGroupInvitedContactsDialog';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
import { ConversationType } from '../state/ducks/conversations';
|
import { ConversationType } from '../state/ducks/conversations';
|
||||||
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
||||||
|
|
|
@ -7,7 +7,7 @@ import { storiesOf } from '@storybook/react';
|
||||||
|
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
import { Preferences, PropsType } from './Preferences';
|
import { Preferences, PropsType } from './Preferences';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import { DEFAULT_CONVERSATION_COLOR } from '../types/Colors';
|
import { DEFAULT_CONVERSATION_COLOR } from '../types/Colors';
|
||||||
import { ThemeType } from '../types/Util';
|
import { ThemeType } from '../types/Util';
|
||||||
import { PhoneNumberSharingMode } from '../util/phoneNumberSharingMode';
|
import { PhoneNumberSharingMode } from '../util/phoneNumberSharingMode';
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { text } from '@storybook/addon-knobs';
|
||||||
import { action } from '@storybook/addon-actions';
|
import { action } from '@storybook/addon-actions';
|
||||||
|
|
||||||
import { ProfileEditor, PropsType } from './ProfileEditor';
|
import { ProfileEditor, PropsType } from './ProfileEditor';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
import {
|
import {
|
||||||
getFirstName,
|
getFirstName,
|
||||||
|
|
|
@ -5,7 +5,7 @@ import * as React from 'react';
|
||||||
|
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
import { ProgressDialog, PropsType } from './ProgressDialog';
|
import { ProgressDialog, PropsType } from './ProgressDialog';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
|
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ import { storiesOf } from '@storybook/react';
|
||||||
|
|
||||||
import { ProgressModal } from './ProgressModal';
|
import { ProgressModal } from './ProgressModal';
|
||||||
|
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
|
@ -7,7 +7,7 @@ import { storiesOf } from '@storybook/react';
|
||||||
|
|
||||||
import { SafetyNumberChangeDialog } from './SafetyNumberChangeDialog';
|
import { SafetyNumberChangeDialog } from './SafetyNumberChangeDialog';
|
||||||
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
|
@ -7,7 +7,7 @@ import { boolean, text } from '@storybook/addon-knobs';
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
|
|
||||||
import { PropsType, SafetyNumberViewer } from './SafetyNumberViewer';
|
import { PropsType, SafetyNumberViewer } from './SafetyNumberViewer';
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ import { action } from '@storybook/addon-actions';
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
import { boolean, select } from '@storybook/addon-knobs';
|
import { boolean, select } from '@storybook/addon-knobs';
|
||||||
|
|
||||||
import { setup as setupI18n } from '../../js/modules/i18n';
|
import { setupI18n } from '../util/setupI18n';
|
||||||
import enMessages from '../../_locales/en/messages.json';
|
import enMessages from '../../_locales/en/messages.json';
|
||||||
import { Props, ShortcutGuide } from './ShortcutGuide';
|
import { Props, ShortcutGuide } from './ShortcutGuide';
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ import {
|
||||||
VIDEO_MP4,
|
VIDEO_MP4,
|
||||||
stringToMIMEType,
|
stringToMIMEType,
|
||||||
} from '../../types/MIME';
|
} from '../../types/MIME';
|
||||||
import { setup as setupI18n } from '../../../js/modules/i18n';
|
import { setupI18n } from '../../util/setupI18n';
|
||||||
import enMessages from '../../../_locales/en/messages.json';
|
import enMessages from '../../../_locales/en/messages.json';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
|
@ -5,7 +5,7 @@ import * as React from 'react';
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
import { action } from '@storybook/addon-actions';
|
import { action } from '@storybook/addon-actions';
|
||||||
|
|
||||||
import { setup as setupI18n } from '../../../js/modules/i18n';
|
import { setupI18n } from '../../util/setupI18n';
|
||||||
import enMessages from '../../../_locales/en/messages.json';
|
import enMessages from '../../../_locales/en/messages.json';
|
||||||
import { CallMode } from '../../types/Calling';
|
import { CallMode } from '../../types/Calling';
|
||||||
import { CallingNotification } from './CallingNotification';
|
import { CallingNotification } from './CallingNotification';
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
|
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
import { setup as setupI18n } from '../../../js/modules/i18n';
|
import { setupI18n } from '../../util/setupI18n';
|
||||||
import enMessages from '../../../_locales/en/messages.json';
|
import enMessages from '../../../_locales/en/messages.json';
|
||||||
import { getDefaultConversation } from '../../test-both/helpers/getDefaultConversation';
|
import { getDefaultConversation } from '../../test-both/helpers/getDefaultConversation';
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ import * as React from 'react';
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
import { action } from '@storybook/addon-actions';
|
import { action } from '@storybook/addon-actions';
|
||||||
|
|
||||||
import { setup as setupI18n } from '../../../js/modules/i18n';
|
import { setupI18n } from '../../util/setupI18n';
|
||||||
import enMessages from '../../../_locales/en/messages.json';
|
import enMessages from '../../../_locales/en/messages.json';
|
||||||
import { ChatSessionRefreshedDialog } from './ChatSessionRefreshedDialog';
|
import { ChatSessionRefreshedDialog } from './ChatSessionRefreshedDialog';
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ import * as React from 'react';
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
import { action } from '@storybook/addon-actions';
|
import { action } from '@storybook/addon-actions';
|
||||||
|
|
||||||
import { setup as setupI18n } from '../../../js/modules/i18n';
|
import { setupI18n } from '../../util/setupI18n';
|
||||||
import enMessages from '../../../_locales/en/messages.json';
|
import enMessages from '../../../_locales/en/messages.json';
|
||||||
import { ChatSessionRefreshedNotification } from './ChatSessionRefreshedNotification';
|
import { ChatSessionRefreshedNotification } from './ChatSessionRefreshedNotification';
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { storiesOf } from '@storybook/react';
|
||||||
|
|
||||||
import { ContactDetail, Props } from './ContactDetail';
|
import { ContactDetail, Props } from './ContactDetail';
|
||||||
import { AddressType, ContactFormType } from '../../types/EmbeddedContact';
|
import { AddressType, ContactFormType } from '../../types/EmbeddedContact';
|
||||||
import { setup as setupI18n } from '../../../js/modules/i18n';
|
import { setupI18n } from '../../util/setupI18n';
|
||||||
import enMessages from '../../../_locales/en/messages.json';
|
import enMessages from '../../../_locales/en/messages.json';
|
||||||
import { IMAGE_GIF } from '../../types/MIME';
|
import { IMAGE_GIF } from '../../types/MIME';
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { storiesOf } from '@storybook/react';
|
||||||
|
|
||||||
import { getDefaultConversation } from '../../test-both/helpers/getDefaultConversation';
|
import { getDefaultConversation } from '../../test-both/helpers/getDefaultConversation';
|
||||||
import { ContactModal, PropsType } from './ContactModal';
|
import { ContactModal, PropsType } from './ContactModal';
|
||||||
import { setup as setupI18n } from '../../../js/modules/i18n';
|
import { setupI18n } from '../../util/setupI18n';
|
||||||
import enMessages from '../../../_locales/en/messages.json';
|
import enMessages from '../../../_locales/en/messages.json';
|
||||||
import { ConversationType } from '../../state/ducks/conversations';
|
import { ConversationType } from '../../state/ducks/conversations';
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ import React from 'react';
|
||||||
import { times } from 'lodash';
|
import { times } from 'lodash';
|
||||||
import { action } from '@storybook/addon-actions';
|
import { action } from '@storybook/addon-actions';
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
import { setup as setupI18n } from '../../../js/modules/i18n';
|
import { setupI18n } from '../../util/setupI18n';
|
||||||
import enMessages from '../../../_locales/en/messages.json';
|
import enMessages from '../../../_locales/en/messages.json';
|
||||||
import { getDefaultConversation } from '../../test-both/helpers/getDefaultConversation';
|
import { getDefaultConversation } from '../../test-both/helpers/getDefaultConversation';
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { action } from '@storybook/addon-actions';
|
||||||
|
|
||||||
import { getDefaultConversation } from '../../test-both/helpers/getDefaultConversation';
|
import { getDefaultConversation } from '../../test-both/helpers/getDefaultConversation';
|
||||||
import { getRandomColor } from '../../test-both/helpers/getRandomColor';
|
import { getRandomColor } from '../../test-both/helpers/getRandomColor';
|
||||||
import { setup as setupI18n } from '../../../js/modules/i18n';
|
import { setupI18n } from '../../util/setupI18n';
|
||||||
import enMessages from '../../../_locales/en/messages.json';
|
import enMessages from '../../../_locales/en/messages.json';
|
||||||
import {
|
import {
|
||||||
ConversationHeader,
|
ConversationHeader,
|
||||||
|
|
|
@ -7,7 +7,7 @@ import { number as numberKnob, text } from '@storybook/addon-knobs';
|
||||||
import { action } from '@storybook/addon-actions';
|
import { action } from '@storybook/addon-actions';
|
||||||
|
|
||||||
import { ConversationHero } from './ConversationHero';
|
import { ConversationHero } from './ConversationHero';
|
||||||
import { setup as setupI18n } from '../../../js/modules/i18n';
|
import { setupI18n } from '../../util/setupI18n';
|
||||||
import enMessages from '../../../_locales/en/messages.json';
|
import enMessages from '../../../_locales/en/messages.json';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
|
@ -5,7 +5,7 @@ import * as React from 'react';
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
import { action } from '@storybook/addon-actions';
|
import { action } from '@storybook/addon-actions';
|
||||||
|
|
||||||
import { setup as setupI18n } from '../../../js/modules/i18n';
|
import { setupI18n } from '../../util/setupI18n';
|
||||||
import enMessages from '../../../_locales/en/messages.json';
|
import enMessages from '../../../_locales/en/messages.json';
|
||||||
import { DeliveryIssueDialog } from './DeliveryIssueDialog';
|
import { DeliveryIssueDialog } from './DeliveryIssueDialog';
|
||||||
import { getDefaultConversation } from '../../test-both/helpers/getDefaultConversation';
|
import { getDefaultConversation } from '../../test-both/helpers/getDefaultConversation';
|
||||||
|
|
|
@ -5,7 +5,7 @@ import * as React from 'react';
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
import { action } from '@storybook/addon-actions';
|
import { action } from '@storybook/addon-actions';
|
||||||
|
|
||||||
import { setup as setupI18n } from '../../../js/modules/i18n';
|
import { setupI18n } from '../../util/setupI18n';
|
||||||
import enMessages from '../../../_locales/en/messages.json';
|
import enMessages from '../../../_locales/en/messages.json';
|
||||||
import { DeliveryIssueNotification } from './DeliveryIssueNotification';
|
import { DeliveryIssueNotification } from './DeliveryIssueNotification';
|
||||||
import { getDefaultConversation } from '../../test-both/helpers/getDefaultConversation';
|
import { getDefaultConversation } from '../../test-both/helpers/getDefaultConversation';
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { boolean, number } from '@storybook/addon-knobs';
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
|
|
||||||
import { EmbeddedContact, Props } from './EmbeddedContact';
|
import { EmbeddedContact, Props } from './EmbeddedContact';
|
||||||
import { setup as setupI18n } from '../../../js/modules/i18n';
|
import { setupI18n } from '../../util/setupI18n';
|
||||||
import enMessages from '../../../_locales/en/messages.json';
|
import enMessages from '../../../_locales/en/messages.json';
|
||||||
import { ContactFormType } from '../../types/EmbeddedContact';
|
import { ContactFormType } from '../../types/EmbeddedContact';
|
||||||
import { IMAGE_GIF } from '../../types/MIME';
|
import { IMAGE_GIF } from '../../types/MIME';
|
||||||
|
|
|
@ -5,7 +5,7 @@ import * as React from 'react';
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
import { action } from '@storybook/addon-actions';
|
import { action } from '@storybook/addon-actions';
|
||||||
|
|
||||||
import { setup as setupI18n } from '../../../js/modules/i18n';
|
import { setupI18n } from '../../util/setupI18n';
|
||||||
import enMessages from '../../../_locales/en/messages.json';
|
import enMessages from '../../../_locales/en/messages.json';
|
||||||
import { ErrorBoundary } from './ErrorBoundary';
|
import { ErrorBoundary } from './ErrorBoundary';
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ import { text } from '@storybook/addon-knobs';
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
|
|
||||||
import { GroupDescription, PropsType } from './GroupDescription';
|
import { GroupDescription, PropsType } from './GroupDescription';
|
||||||
import { setup as setupI18n } from '../../../js/modules/i18n';
|
import { setupI18n } from '../../util/setupI18n';
|
||||||
import enMessages from '../../../_locales/en/messages.json';
|
import enMessages from '../../../_locales/en/messages.json';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
|
@ -5,7 +5,7 @@ import * as React from 'react';
|
||||||
|
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
|
|
||||||
import { setup as setupI18n } from '../../../js/modules/i18n';
|
import { setupI18n } from '../../util/setupI18n';
|
||||||
import enMessages from '../../../_locales/en/messages.json';
|
import enMessages from '../../../_locales/en/messages.json';
|
||||||
import { GroupNotification, Props } from './GroupNotification';
|
import { GroupNotification, Props } from './GroupNotification';
|
||||||
import { getDefaultConversation } from '../../test-both/helpers/getDefaultConversation';
|
import { getDefaultConversation } from '../../test-both/helpers/getDefaultConversation';
|
||||||
|
|
|
@ -9,7 +9,7 @@ import {
|
||||||
GroupV1DisabledActions,
|
GroupV1DisabledActions,
|
||||||
PropsType as GroupV1DisabledActionsPropsType,
|
PropsType as GroupV1DisabledActionsPropsType,
|
||||||
} from './GroupV1DisabledActions';
|
} from './GroupV1DisabledActions';
|
||||||
import { setup as setupI18n } from '../../../js/modules/i18n';
|
import { setupI18n } from '../../util/setupI18n';
|
||||||
import enMessages from '../../../_locales/en/messages.json';
|
import enMessages from '../../../_locales/en/messages.json';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { isBoolean } from 'lodash';
|
||||||
import { boolean } from '@storybook/addon-knobs';
|
import { boolean } from '@storybook/addon-knobs';
|
||||||
|
|
||||||
import { getDefaultConversation } from '../../test-both/helpers/getDefaultConversation';
|
import { getDefaultConversation } from '../../test-both/helpers/getDefaultConversation';
|
||||||
import { setup as setupI18n } from '../../../js/modules/i18n';
|
import { setupI18n } from '../../util/setupI18n';
|
||||||
import enMessages from '../../../_locales/en/messages.json';
|
import enMessages from '../../../_locales/en/messages.json';
|
||||||
import { GroupV1Migration, PropsType } from './GroupV1Migration';
|
import { GroupV1Migration, PropsType } from './GroupV1Migration';
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
|
|
||||||
import { setup as setupI18n } from '../../../js/modules/i18n';
|
import { setupI18n } from '../../util/setupI18n';
|
||||||
import enMessages from '../../../_locales/en/messages.json';
|
import enMessages from '../../../_locales/en/messages.json';
|
||||||
import { GroupV2ChangeType } from '../../groups';
|
import { GroupV2ChangeType } from '../../groups';
|
||||||
import { SignalService as Proto } from '../../protobuf';
|
import { SignalService as Proto } from '../../protobuf';
|
||||||
|
|
|
@ -9,7 +9,7 @@ import {
|
||||||
GroupV2PendingApprovalActions,
|
GroupV2PendingApprovalActions,
|
||||||
PropsType as GroupV2PendingApprovalActionsPropsType,
|
PropsType as GroupV2PendingApprovalActionsPropsType,
|
||||||
} from './GroupV2PendingApprovalActions';
|
} from './GroupV2PendingApprovalActions';
|
||||||
import { setup as setupI18n } from '../../../js/modules/i18n';
|
import { setupI18n } from '../../util/setupI18n';
|
||||||
import enMessages from '../../../_locales/en/messages.json';
|
import enMessages from '../../../_locales/en/messages.json';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
|
@ -11,7 +11,7 @@ import { pngUrl } from '../../storybook/Fixtures';
|
||||||
import { Image, Props } from './Image';
|
import { Image, Props } from './Image';
|
||||||
import { IMAGE_PNG } from '../../types/MIME';
|
import { IMAGE_PNG } from '../../types/MIME';
|
||||||
import { ThemeType } from '../../types/Util';
|
import { ThemeType } from '../../types/Util';
|
||||||
import { setup as setupI18n } from '../../../js/modules/i18n';
|
import { setupI18n } from '../../util/setupI18n';
|
||||||
import enMessages from '../../../_locales/en/messages.json';
|
import enMessages from '../../../_locales/en/messages.json';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
|
@ -16,7 +16,7 @@ import {
|
||||||
VIDEO_MP4,
|
VIDEO_MP4,
|
||||||
stringToMIMEType,
|
stringToMIMEType,
|
||||||
} from '../../types/MIME';
|
} from '../../types/MIME';
|
||||||
import { setup as setupI18n } from '../../../js/modules/i18n';
|
import { setupI18n } from '../../util/setupI18n';
|
||||||
import enMessages from '../../../_locales/en/messages.json';
|
import enMessages from '../../../_locales/en/messages.json';
|
||||||
import { pngUrl, squareStickerUrl } from '../../storybook/Fixtures';
|
import { pngUrl, squareStickerUrl } from '../../storybook/Fixtures';
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ import { number } from '@storybook/addon-knobs';
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
|
|
||||||
import { LastSeenIndicator, Props } from './LastSeenIndicator';
|
import { LastSeenIndicator, Props } from './LastSeenIndicator';
|
||||||
import { setup as setupI18n } from '../../../js/modules/i18n';
|
import { setupI18n } from '../../util/setupI18n';
|
||||||
import enMessages from '../../../_locales/en/messages.json';
|
import enMessages from '../../../_locales/en/messages.json';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
|
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
import { setup as setupI18n } from '../../../js/modules/i18n';
|
import { setupI18n } from '../../util/setupI18n';
|
||||||
import enMessages from '../../../_locales/en/messages.json';
|
import enMessages from '../../../_locales/en/messages.json';
|
||||||
|
|
||||||
import { LinkNotification } from './LinkNotification';
|
import { LinkNotification } from './LinkNotification';
|
||||||
|
|
|
@ -10,7 +10,7 @@ import {
|
||||||
MandatoryProfileSharingActions,
|
MandatoryProfileSharingActions,
|
||||||
Props as MandatoryProfileSharingActionsProps,
|
Props as MandatoryProfileSharingActionsProps,
|
||||||
} from './MandatoryProfileSharingActions';
|
} from './MandatoryProfileSharingActions';
|
||||||
import { setup as setupI18n } from '../../../js/modules/i18n';
|
import { setupI18n } from '../../util/setupI18n';
|
||||||
import enMessages from '../../../_locales/en/messages.json';
|
import enMessages from '../../../_locales/en/messages.json';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
|
@ -23,7 +23,7 @@ import {
|
||||||
import { ReadStatus } from '../../messages/MessageReadStatus';
|
import { ReadStatus } from '../../messages/MessageReadStatus';
|
||||||
import { MessageAudio } from './MessageAudio';
|
import { MessageAudio } from './MessageAudio';
|
||||||
import { computePeaks } from '../GlobalAudioContext';
|
import { computePeaks } from '../GlobalAudioContext';
|
||||||
import { setup as setupI18n } from '../../../js/modules/i18n';
|
import { setupI18n } from '../../util/setupI18n';
|
||||||
import enMessages from '../../../_locales/en/messages.json';
|
import enMessages from '../../../_locales/en/messages.json';
|
||||||
import { pngUrl } from '../../storybook/Fixtures';
|
import { pngUrl } from '../../storybook/Fixtures';
|
||||||
import { getDefaultConversation } from '../../test-both/helpers/getDefaultConversation';
|
import { getDefaultConversation } from '../../test-both/helpers/getDefaultConversation';
|
||||||
|
|
|
@ -7,7 +7,7 @@ import { boolean, text } from '@storybook/addon-knobs';
|
||||||
import { storiesOf } from '@storybook/react';
|
import { storiesOf } from '@storybook/react';
|
||||||
|
|
||||||
import { MessageBody, Props } from './MessageBody';
|
import { MessageBody, Props } from './MessageBody';
|
||||||
import { setup as setupI18n } from '../../../js/modules/i18n';
|
import { setupI18n } from '../../util/setupI18n';
|
||||||
import enMessages from '../../../_locales/en/messages.json';
|
import enMessages from '../../../_locales/en/messages.json';
|
||||||
|
|
||||||
const i18n = setupI18n('en', enMessages);
|
const i18n = setupI18n('en', enMessages);
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue