-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into c--add-create-many-field-metadata-method-to-…
…batch-transaction-and-cache-invalidation
- Loading branch information
Showing
698 changed files
with
7,559 additions
and
1,641 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,8 @@ | |
"type": "module", | ||
"scripts": { | ||
"build": "npx vite build" | ||
}, | ||
"dependencies": { | ||
"twenty-shared": "workspace:*" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/twenty-chrome-extension/src/contentScript/createButton.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/twenty-chrome-extension/src/contentScript/extractCompanyProfile.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/twenty-chrome-extension/src/contentScript/extractPersonProfile.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/twenty-chrome-extension/src/contentScript/insertSettingsButton.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/twenty-chrome-extension/src/contentScript/utils/changeSidepanelUrl.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/twenty-chrome-extension/src/contentScript/utils/extractCompanyLinkedinLink.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/twenty-chrome-extension/src/options/modules/ui/input/components/Toggle.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/swcrc", | ||
"jsc": { | ||
"experimental": { | ||
"plugins": [ | ||
[ | ||
"@lingui/swc-plugin", | ||
{ | ||
"runtimeModules": { | ||
"i18n": ["@lingui/core", "i18n"], | ||
"trans": ["@lingui/react", "Trans"] | ||
} | ||
} | ||
] | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { defineConfig } from '@lingui/cli'; | ||
import { APP_LOCALES } from 'twenty-shared'; | ||
|
||
export default defineConfig({ | ||
sourceLocale: 'en', | ||
locales: Object.values(APP_LOCALES), | ||
pseudoLocale: 'pseudo-en', | ||
fallbackLocales: { | ||
'pseudo-en': 'en', | ||
}, | ||
extractorParserOptions: { | ||
tsExperimentalDecorators: true, | ||
}, | ||
catalogs: [ | ||
{ | ||
path: '<rootDir>/src/locales/{locale}', | ||
include: ['src'], | ||
}, | ||
], | ||
catalogsMergePath: '<rootDir>/src/locales/generated/{locale}', | ||
compileNamespace: 'ts', | ||
...(process.env.TRANSLATION_IO_API_KEY_EMAILS | ||
? { | ||
service: { | ||
name: 'TranslationIO', | ||
apiKey: process.env.TRANSLATION_IO_API_KEY_EMAILS, | ||
}, | ||
} | ||
: {}), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,56 @@ | ||
import { PropsWithChildren } from 'react'; | ||
import { i18n } from '@lingui/core'; | ||
import { I18nProvider } from '@lingui/react'; | ||
import { Container, Html } from '@react-email/components'; | ||
import { PropsWithChildren } from 'react'; | ||
|
||
import { BaseHead } from 'src/components/BaseHead'; | ||
import { Logo } from 'src/components/Logo'; | ||
import { APP_LOCALES } from 'twenty-shared'; | ||
import { messages as deMessages } from '../locales/generated/de'; | ||
import { messages as enMessages } from '../locales/generated/en'; | ||
import { messages as esMessages } from '../locales/generated/es'; | ||
import { messages as frMessages } from '../locales/generated/fr'; | ||
import { messages as itMessages } from '../locales/generated/it'; | ||
import { messages as jaMessages } from '../locales/generated/ja'; | ||
import { messages as koMessages } from '../locales/generated/ko'; | ||
import { messages as pseudoEnMessages } from '../locales/generated/pseudo-en'; | ||
import { messages as ptBRMessages } from '../locales/generated/pt-BR'; | ||
import { messages as ptPTMessages } from '../locales/generated/pt-PT'; | ||
import { messages as zhHansMessages } from '../locales/generated/zh-Hans'; | ||
import { messages as zhHantMessages } from '../locales/generated/zh-Hant'; | ||
|
||
type BaseEmailProps = PropsWithChildren<{ | ||
width?: number; | ||
locale: keyof typeof APP_LOCALES; | ||
}>; | ||
|
||
export const BaseEmail = ({ children, width }: BaseEmailProps) => { | ||
i18n.load('en', enMessages); | ||
i18n.load('fr', frMessages); | ||
i18n.load('pseudo-en', pseudoEnMessages); | ||
i18n.load('ko', koMessages); | ||
i18n.load('de', deMessages); | ||
i18n.load('it', itMessages); | ||
i18n.load('es', esMessages); | ||
i18n.load('ja', jaMessages); | ||
i18n.load('pt-PT', ptPTMessages); | ||
i18n.load('pt-BR', ptBRMessages); | ||
i18n.load('zh-Hans', zhHansMessages); | ||
i18n.load('zh-Hant', zhHantMessages); | ||
|
||
i18n.activate('en'); | ||
|
||
export const BaseEmail = ({ children, width, locale }: BaseEmailProps) => { | ||
i18n.activate(locale); | ||
|
||
return ( | ||
<Html lang="en"> | ||
<BaseHead /> | ||
<Container width={width || 290}> | ||
<Logo /> | ||
{children} | ||
</Container> | ||
</Html> | ||
<I18nProvider i18n={i18n}> | ||
<Html lang={locale}> | ||
<BaseHead /> | ||
<Container width={width || 290}> | ||
<Logo /> | ||
{children} | ||
</Container> | ||
</Html> | ||
</I18nProvider> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.