Socket
Socket
Sign inDemoInstall

@sanity/document-internationalization

Package Overview
Dependencies
Maintainers
28
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sanity/document-internationalization

[![npm version](https://img.shields.io/npm/v/@sanity/document-internationalization.svg?style=flat)](https://www.npmjs.com/package/@sanity/document-internationalization)


Version published
Weekly downloads
16K
decreased by-2.59%
Maintainers
28
Weekly downloads
 
Created
Source

Document Internationalization Plugin for Sanity

npm version

Default solution

When you want to create translations in Sanity they suggest following approach.
This definitely works, but makes the UI very clunky as you get more fields that require translations.

Default Solution

With intl-plugin

With the intl plugin you will get a cleaner UI for creating translatable documents as the translations are managed document wide.
Intl Plugin Document Translation

Important notice before getting started

An important decision you will need to make is whether to use subpath or delimiter based IDs. Subpaths are slightly easier to query using GROQ, but they also make documents Private, meaning they can only be accessed using an Access Token. Requests with Access Tokens cannot be cached, and so API usage will dramatically increase.

Documentation

  1. Installation Instructions
  2. General Configuration
  3. How to use
  4. Datastructure
  5. Translation Maintenance
  6. GraphQL support
  7. Advanced languages
  8. Usage with custom publish action
  9. GROQ Cheatsheet
  10. Coming from sanity-plugin-intl-input

Other resources

Keywords

FAQs

Package last updated on 07 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc