@sanity/locale-zh-hans
v2.1.12
Published
Chinese (Simplified) / 简体中文 locale/translation for Sanity Studio
Downloads
119
Maintainers
Readme
@sanity/locale-zh-hans
Chinese (Simplified) / 简体中文 language support for Sanity Studio.
Description
This is a community maintained language plugin. Initial translations were done by AI and may have errors. Contributions are more than welcome!
Installation
npm install @sanity/locale-zh-hans
Usage
// sanity.config.ts / sanity.config.js:
import {defineConfig} from 'sanity'
import {zhHansLocale} from '@sanity/locale-zh-hans'
export default defineConfig({
// ...
plugins: [
// ... other plugins here ...
zhHansLocale(),
],
})
The language should now show up in the Studio's user menu.
If you want to customize the title of the locale, pass it as an option to the plugin:
// sanity.config.ts / sanity.config.js:
import {defineConfig} from 'sanity'
import {zhHansLocale} from '@sanity/locale-zh-hans'
export default defineConfig({
// ...
plugins: [
// ... other plugins here ...
zhHansLocale({
title: 'Chinese (Simplified)',
}),
],
})
Maintainers
We are looking for maintainers for this plugin! If you are interested, please send a PR adding yourself as a maintainer.
Contributing
Feel free to contribute improvements/changes! The strings are located in the src
folder, where the file name represents the "namespace". Send a pull request, and feel free to add yourself to the contributors
array in locales/registry.ts
. If you want to help review new translations, add yourself to the maintainers
array instead. After doing your changes, run pnpm run reconcile
and add the changes to version control.
License
MIT-licensed. See LICENSE.