Depending on the amounts of customisations you've made, there are some manual steps.
To support CSS variables properly, replace theme.palette with
theme.vars.palette in your theme customizations:
- color: theme.palette.primary.main,
+ color: theme.vars.palette.primary.main,
Replace conditional dark mode checks with theme.applyStyles('dark', ...):
- background: theme.palette.mode === 'dark'
- ? lighten(theme.palette.background.default, 0.15)
- : theme.palette.background.default,
+ background: theme.vars.palette.background.default,
+ ...theme.applyStyles('dark', {
+ background: theme.lighten(theme.vars.palette.background.default, 0.15),
+ }),
import { i18n } from '@lingui/core'
import { Trans } from '@lingui/react'
Becomes
import { t } from '@lingui/core/macro'
import { Trans } from '@lingui/react/macro'
And
import { t, Trans } from '@lingui/macro'
Becomes
import { t } from '@lingui/core/macro'
import { Trans } from '@lingui/react/macro'
After changing all the imports in the step above. Please remove all occurences
of #. js-lingui-generated-id in the .po files.
Run yarn lingui again to extract all the new translations.
const jaja = import.meta.graphCommerce.cartDisplayPricesInclTax
becomes
import { cartDisplayPricesInclTax } from '@graphcommerce/next-config/config'
const jaja = cartDisplayPricesInclTax