Skip to content
This repository was archived by the owner on Feb 12, 2026. It is now read-only.

feat: allow nested languageField on documents - #178

Open
luigifgp wants to merge 4 commits into
sanity-io:mainfrom
luigifgp:nested-object-with-language-field
Open

feat: allow nested languageField on documents#178
luigifgp wants to merge 4 commits into
sanity-io:mainfrom
luigifgp:nested-object-with-language-field

Conversation

@luigifgp

@luigifgp luigifgp commented Mar 7, 2024

Copy link
Copy Markdown

Currently objects such as options.language or pageOptions.language are unabled to use changing the default field for languageField.

On this PR we are using just-safe-get library, to Get the value at property level. This way we solve fields like:
"abc[0].language"
"a.abc.language"
"cde.abc.b.language"

feel free to share your opinion about it.

@socket-security

socket-security Bot commented Mar 11, 2024

Copy link
Copy Markdown

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher

View full report↗︎

@SimeonGriggs

Copy link
Copy Markdown
Contributor

Cool feature!

Could you add an update to the Language Field section of the readme so people are aware of this possibility?

@luigifgp

luigifgp commented Apr 4, 2024

Copy link
Copy Markdown
Author

Read me updated! :)

@luigifgp
luigifgp force-pushed the nested-object-with-language-field branch from e1e0750 to 8328201 Compare April 17, 2024 18:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants