/** A visible admin string in every language the plugin ships. Payload accepts it as `label`, `description`, option `label`, tab `label`, `admin.group`. */ export type AdminText = { en: string; pl: string } /** Languages the plugin ships admin texts in. */ export const ADMIN_LANGUAGES = ['en', 'pl'] as const export type AdminLanguage = (typeof ADMIN_LANGUAGES)[number] /** * Declares one group of component texts. The Polish set must have exactly the * English keys, so a missing translation is a type error. */ export function defineTexts>(texts: { en: T; pl: Record }) { return texts }