Translations cleaning / workflows (#10125)
This commit is contained in:
@ -1,12 +1,13 @@
|
||||
import { i18n } from '@lingui/core';
|
||||
import { I18nProvider } from '@lingui/react';
|
||||
import { Decorator } from '@storybook/react';
|
||||
import { SOURCE_LOCALE } from 'twenty-shared';
|
||||
import { messages as enMessages } from '../../locales/generated/en';
|
||||
|
||||
i18n.load({
|
||||
en: enMessages,
|
||||
[SOURCE_LOCALE]: enMessages,
|
||||
});
|
||||
i18n.activate('en');
|
||||
i18n.activate(SOURCE_LOCALE);
|
||||
|
||||
export const I18nFrontDecorator: Decorator = (Story) => {
|
||||
return (
|
||||
|
||||
@ -27,6 +27,7 @@ import { PrefetchDataProvider } from '@/prefetch/components/PrefetchDataProvider
|
||||
import { WorkspaceProviderEffect } from '@/workspace/components/WorkspaceProviderEffect';
|
||||
import { i18n } from '@lingui/core';
|
||||
import { I18nProvider } from '@lingui/react';
|
||||
import { SOURCE_LOCALE } from 'twenty-shared';
|
||||
import { IconsProvider } from 'twenty-ui';
|
||||
import { dynamicActivate } from '~/utils/i18n/dynamicActivate';
|
||||
import { FullHeightStorybookLayout } from '../FullHeightStorybookLayout';
|
||||
@ -67,7 +68,7 @@ const ApolloStorybookDevLogEffect = () => {
|
||||
return <></>;
|
||||
};
|
||||
|
||||
await dynamicActivate('en');
|
||||
await dynamicActivate(SOURCE_LOCALE);
|
||||
|
||||
const Providers = () => {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user