Progress on translations (#9703)

Start adding a few translations on setting pages, introduce
pseudo-locale, switch to dynamic import, add eslint rule
This commit is contained in:
Félix Malfait
2025-01-16 23:34:54 +01:00
committed by GitHub
parent f44b31573a
commit 7acb68929f
46 changed files with 3019 additions and 299 deletions

View File

@ -27,7 +27,7 @@ import { WorkspaceProviderEffect } from '@/workspace/components/WorkspaceProvide
import { i18n } from '@lingui/core';
import { I18nProvider } from '@lingui/react';
import { IconsProvider } from 'twenty-ui';
import { messages as enMessages } from '../../locales/en/messages';
import { dynamicActivate } from '~/utils/i18n/dynamicActivate';
import { FullHeightStorybookLayout } from '../FullHeightStorybookLayout';
export type PageDecoratorArgs = {
@ -66,10 +66,7 @@ const ApolloStorybookDevLogEffect = () => {
return <></>;
};
i18n.load({
en: enMessages,
});
i18n.activate('en');
dynamicActivate('en');
const Providers = () => {
return (