We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 101d28e commit 897516fCopy full SHA for 897516f
packages/vue-i18n-core/src/directive.ts
@@ -91,13 +91,13 @@ export type TranslationDirective<T = HTMLElement> = ObjectDirective<T>
91
* @deprecated will be removed at vue-i18n v12
92
*/
93
export function vTDirective(i18n: I18n): TranslationDirective<HTMLElement> {
94
- if (__DEV__) {
95
- warnOnce(
96
- getWarnMessage(I18nWarnCodes.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE)
97
- )
98
- }
99
-
100
const _process = (binding: DirectiveBinding): [string, Composer] => {
+ if (__DEV__) {
+ warnOnce(
+ getWarnMessage(I18nWarnCodes.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE)
+ )
+ }
+
101
const { instance, value } = binding
102
/* istanbul ignore if */
103
if (!instance || !instance.$) {
0 commit comments