Updates @payload-enchants/translator to 3.0.
Deprecates these imports:
import { copyResolver } from '@payload-enchants/translator/resolvers/copy';
import { googleResolver } from '@payload-enchants/translator/resolvers/google';
import { openAIResolver } from '@payload-enchants/translator/resolvers/openAI';Instead use:
import {
translator,
copyResolver,
googleResolver,
openAIResolver,
libreResolver,
} from '@payload-enchants/translator';Added a new resolver for https://libretranslate.com/ libreResolver.
Other packages?
- Opened a PR to core with an SDK - payloadcms/payload#9463. The current version works, but lacks some features (like auth operations / proper
select/joins) - May work on the docs-reorder package, as it's really useful
- Not sure about the cached payload plugin. I think we should have this in the core as well at some point, as it's essential with next.js/
What's Changed
New Contributors
Full Changelog: 1.2.2...translator-1.3.0