Skip to content

translator-1.3.0

Latest
Compare
Choose a tag to compare
@r1tsuu r1tsuu released this 24 Nov 11:12
· 1 commit to master since this release
ba0f8ae

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

  • feat: translator plugin with payload 3.0 by @nvti in #98

New Contributors

  • @nvti made their first contribution in #98

Full Changelog: 1.2.2...translator-1.3.0