3.0.0 • Published 8 days ago

@sanity/document-internationalization v3.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 days ago

Document Internationalization Plugin for Sanity.io

npm version

Document Level Internationalization UI

What this plugin solves

There are two popular methods of internationalization in Sanity Studio:

  • Document-level translation refers to a schema type having a unique document for every language, joined together by references and/or a predictable _id
  • Field-level translation refers to mapping over languages to create an object, within which there is a language-specific version of each field

You'll need to decide on the approach for each schema individually, and you're likely going to have a mix of both.

This plugin adds UI to the Studio to improve handling document-level translations.

For field-level translations you should use the @sanity/language-filter plugin.

Installation

With the Sanity CLI installed, from the same directory as the Studio run:

sanity install @sanity/document-internationalization

Ensure that @sanity/document-internationalization is listed in plugins inside sanity.json.

The plugin is now installed, but you will need to complete the following steps to see the Document Translation UI:

Setup next steps

  1. Customise Desk Structure
    To setup the 'Translations' View Pane on Documents
  2. Configuration options
    To declare available Languages and other settings
  3. Activating internationalization on schema
    To enable all the above features on schema

Other documentation

  1. Data structure
  2. Translation Maintenance
  3. GraphQL support
  4. Advanced languages
  5. Usage with custom publish action
  6. GROQ Cheatsheet

Migrating from sanity-plugin-intl-input

While most of the UI is the same in the official version of this plugin there are some breaking changes you should be aware of before migrating:

Coming from sanity-plugin-intl-input

1.1.2

8 days ago

3.0.0

23 days ago

2.1.2

23 days ago

2.1.1

28 days ago

2.1.0

2 months ago

2.0.3

3 months ago

2.0.2

6 months ago

2.0.1

11 months ago

2.0.0

11 months ago

1.1.1

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.1.0

1 year ago

1.0.3

1 year ago

0.3.9

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

0.3.8

1 year ago

0.3.7

2 years ago

1.0.0

2 years ago

0.3.6

2 years ago

0.3.5

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.3.0

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.0

2 years ago

0.0.1-beta.12

2 years ago

0.0.1-beta.11

2 years ago

0.0.1-beta.10

2 years ago

0.0.1-beta.9

2 years ago

0.0.1-beta.8

2 years ago

0.0.1-beta.7

2 years ago

0.0.1-beta.6

2 years ago

0.0.1-beta.5

2 years ago

0.0.1-beta.4

2 years ago

0.0.1-beta.3

2 years ago

0.0.1-beta.2

2 years ago

0.0.1-beta.1

2 years ago