gt-sanity
v2.0.18
Published
General Translation integration with Sanity
Downloads
4,547
Readme
gt-sanity
General Translation plugin for Sanity Studio v3.
Installation
npm install gt-sanityQuick Start
import { defineConfig } from 'sanity';
import { gtPlugin } from 'gt-sanity';
export default defineConfig({
plugins: [
gtPlugin({
sourceLocale: 'en',
locales: ['es', 'fr'],
// Initialize translated document slugs with a unique locale suffix,
// e.g. "hello-world" -> "hello-world-es".
dedupeFields: [{ fields: [{ property: '$.slug' }] }],
}),
],
});See the full documentation for guides and API reference.
