import type { DEFAULT_LOCALE } from './defaultLocale'; export type AgStudioLocaleText = Partial>; export type AgStudioLocaleKey = keyof typeof DEFAULT_LOCALE; export type AgTranslate = (key: AgStudioLocaleKey, variableValues?: Record) => string; export interface AgStudioGetLocaleTextParams { /** * Locale key. Generally `AgStudioLocaleKey`, * but other values are passed to allow for easier localisation, * e.g. blank values for formats. */ key: string; /** * Default value (American English). */ defaultValue: string; /** * Values that change depending on the context. */ variableValues?: Record; }