技能 编程开发 语言目录API抽象层

语言目录API抽象层

v20260507
webiny-api-languages-catalog
本模块提供了一套标准化的语言目录API抽象层,用于管理和访问语言数据。它封装了两个核心用例:通过代码获取单个语言条目,以及获取所有可用语言的列表,确保了应用中语言数据调用的一致性和结构化。
获取技能
102 次下载
概览

api/languages

How to Use

  1. Find the abstraction you need below
  2. You MUST read the source file to get the exact interface and types!
  3. Import: import { Name } from "<importPath>";
  4. See webiny-use-case-pattern or webiny-event-handler-pattern skills for implementation patterns

Abstractions


Name: GetLanguageByCodeUseCase Import: import { GetLanguageByCodeUseCase } from "webiny/api/languages" Source: @webiny/languages/api/features/GetLanguageByCode/index.ts Description: Get a language entry by its code.


Name: ListLanguagesUseCase Import: import { ListLanguagesUseCase } from "webiny/api/languages" Source: @webiny/languages/api/features/ListLanguages/index.ts Description: List all language entries.


信息
Category 编程开发
Name webiny-api-languages-catalog
版本 v20260507
大小 900B
更新时间 2026-05-08
语言