Translations cleaning / workflows (#10125)

This commit is contained in:
Félix Malfait
2025-02-11 15:26:21 +01:00
committed by GitHub
parent 6da9976193
commit cc68deaab1
63 changed files with 376 additions and 164 deletions

View File

@ -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 (

View File

@ -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 (