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:
@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user