A plugin to register array fields with a custom input component to store field values in multiple languages, queryable by using the language ID as an array `_key`.
Describe the bug
It is not possible to add internationalizedArrayText. After registering the field type in sanity.config.ts and try to use it in my field it throws an runtime exception realted to textInputRepresentationStyle
No difference if I will try use defined type 'text' in fieldTypes or try to hack it with creating my own type with text inside, if only it contains text it is not able to create it after opening the internationalized field value.
Describe the bug It is not possible to add internationalizedArrayText. After registering the field type in sanity.config.ts and try to use it in my field it throws an runtime exception realted to textInputRepresentationStyle
No difference if I will try use defined type 'text' in fieldTypes or try to hack it with creating my own type with text inside, if only it contains text it is not able to create it after opening the internationalized field value.
To Reproduce
internationalizedArray({ languages: [ {id: 'da', title: 'Danish'}, {id: 'en', title: 'English'} ], defaultLanguages: ['da'], fieldTypes: ['string', 'text'], })
defineField({ name: 'content', type: 'internationalizedArrayText', title: 'Content', })
try to insert content.
Expected behavior
The internationalized array of texts render, open and be able to consume text.
Screenshots
Which versions of Sanity are you using?
Run
sanity versions
in the terminal and copy-paste the result here.@sanity/cli (global) 3.23.1 (latest: 3.28.0) @sanity/eslint-config-studio 3.0.1 (up to date) @sanity/vision 3.23.1 (latest: 3.28.0) sanity 3.23.1 (latest: 3.28.0)
What operating system are you using? windows
Which versions of Node.js / npm are you running? Node.js v18.12.1. yarn 1.22.19