569d887d1e
Renaming the package so any further PRs directed to the website are targeted to the reworked code instead of diverging. Once merged, I will start preparing this for deployment to dev to test before releasing to prod. Any improvements will also be applied to this package. I avoided making significant changes to API routes so nothing breaks, but will test it thoroughly today to confirm. That said, everything is ported - double checked. Big diff PR, impossible to review, but last one! No more rebuilds.
23 lines
648 B
TypeScript
23 lines
648 B
TypeScript
import { defineConfig } from '@lingui/conf';
|
|
import { formatter } from '@lingui/format-po';
|
|
import { SOURCE_LOCALE } from 'twenty-shared/translations';
|
|
|
|
import { WEBSITE_LOCALE_LIST } from './src/platform/i18n/website-locale-list';
|
|
|
|
export default defineConfig({
|
|
sourceLocale: SOURCE_LOCALE,
|
|
locales: [...WEBSITE_LOCALE_LIST],
|
|
fallbackLocales: {
|
|
default: SOURCE_LOCALE,
|
|
},
|
|
catalogs: [
|
|
{
|
|
path: '<rootDir>/src/locales/{locale}',
|
|
include: ['src'],
|
|
},
|
|
],
|
|
catalogsMergePath: '<rootDir>/src/locales/generated/{locale}',
|
|
compileNamespace: 'ts',
|
|
format: formatter({ lineNumbers: false, printLinguiId: true }),
|
|
});
|