diff --git a/src/transform.ts b/src/transform.ts index 6b3e880..098cff8 100644 --- a/src/transform.ts +++ b/src/transform.ts @@ -6,7 +6,15 @@ import { createCompoundExpression, TO_DISPLAY_STRING } from '@vue/compiler-dom' -import { isNumber, isObject, isString, isSymbol, toDisplayString, hasOwn } from '@intlify/shared' +import { + isNumber, + isObject, + isString, + isSymbol, + toDisplayString, + hasOwn, + isArray +} from '@intlify/shared' import { evaluateValue, parseVTExpression } from './transpiler' import { report, ReportCodes } from './report' import { createContentBuilder } from './builder' @@ -70,6 +78,16 @@ export interface TransformVTDirectiveOptions< * @default 'composition' */ mode?: I18nMode + /** + * Translation function signatures + * + * @remarks + * You can specify the signature of the translation function attached to the binding context when it is codegen in the Vue Compiler. + * If you have changed the signature to a non `t` signature in the `setup` hook or `