type for translation entry method

This commit is contained in:
Niels Lyngsø
2023-08-02 11:17:08 +02:00
parent aee130add0
commit aba2fdf414

View File

@@ -1,6 +1,6 @@
import type { ManifestWithLoaderIncludingDefaultExport } from '@umbraco-cms/backoffice/extension-api';
export type UmbTranslationEntry = string;
export type UmbTranslationEntry = string | ((...args: unknown[]) => string);
export type UmbTranslationsDictionary = Record<string, Record<string, UmbTranslationEntry>>;
export interface ManifestTranslations extends ManifestWithLoaderIncludingDefaultExport<UmbTranslationsDictionary> {