webiny-admin-languages-catalog

Lists Webiny admin language abstractions with import paths and source references.

8.0k|673|Updated Jan 9, 2018
One-click install
npx skills add https://github.com/webiny/webiny-js --skill webiny-admin-languages-catalog
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: webiny-admin-languages-catalog
Source: https://github.com/webiny/webiny-js/tree/main/skills/user-skills/generated/admin/languages
Command: npx skills add https://github.com/webiny/webiny-js --skill webiny-admin-languages-catalog

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

When building Webiny admin extensions, developers need to know which language-related abstractions exist and where to import them from, without digging through the monorepo source tree.

Core Features & Use Cases

  • Abstraction Catalog: Lists the available abstractions in the admin/languages domain, including the LanguageDto type and the useLanguages hook.
  • Import Guidance: Provides exact import statements such as import { useLanguages } from "webiny/admin/languages" along with source file locations in @webiny/languages.
  • Use Case: While building a custom admin UI that displays or switches content languages, look up useLanguages here, read its source for the exact interface, and import it directly into your React component.

Quick Start

Ask the AI to show the available language abstractions for the Webiny admin app and how to import the useLanguages hook.

Frequently Asked Questions about webiny-admin-languages-catalog

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use the useLanguages hook in a Webiny admin app?

Import it with `import { useLanguages } from "webiny/admin/languages"` in your React component. Read the source at @webiny/languages/admin/presentation/hooks/useLanguages.tsx first to confirm the exact return type and parameters.

What is the LanguageDto type in Webiny?

LanguageDto is a TypeScript type representing a language entry in the Webiny admin languages domain. Import it with `import type { LanguageDto } from "webiny/admin/languages"` and check @webiny/languages/admin/features/listLanguages/index.ts for its exact fields.

Where are Webiny admin language abstractions defined?

They live in the @webiny/languages package, specifically under admin/features/listLanguages and admin/presentation/hooks. The catalog maps each abstraction to its source file so you can verify interfaces before use.

Can I import Webiny language types without reading the source files?

The catalog instructs you to read the source file first to get the exact interface and types. Skipping this risks using outdated signatures, since the catalog only provides names, kinds, and import paths.