Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Async supported language like the document internationalization plugin #31

Open
edustef opened this issue May 6, 2024 · 1 comment

Comments

@edustef
Copy link

edustef commented May 6, 2024

In the document internalization plugin you're able to pass an async function with a client to be able to fetch languages from a document in Sanity.

type SupportedLanguages =
  | Language[]
  | ((client: SanityClient) => Promise<Language[]>)

Would be nice to have the same behaviour here if possible.

@djohalo2
Copy link
Member

Hi @edustef. Good point, I agree we should be in line with the document-internationalization as much as possible 👍

You are welcome to make a PR for it if you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants