File tree Expand file tree Collapse file tree 2 files changed +0
-30
lines changed Expand file tree Collapse file tree 2 files changed +0
-30
lines changed Original file line number Diff line number Diff line change 1- /**
2- * Composer
3- *
4- * Composer is offered composable API for Vue 3
5- * This module is offered new style vue-i18n API
6- */
7-
81import {
92 ref ,
103 computed ,
@@ -1157,10 +1150,6 @@ export function createComposer<
11571150 _context = getCoreContext ( )
11581151 updateFallbackLocale < Message > ( _context , _locale . value , _fallbackLocale . value )
11591152
1160- /*!
1161- * define properties
1162- */
1163-
11641153 // locale
11651154 const locale = computed ( {
11661155 get : ( ) => _locale . value ,
@@ -1193,10 +1182,6 @@ export function createComposer<
11931182 ( ) => _numberFormats . value as NumberFormats
11941183 )
11951184
1196- /**
1197- * define methods
1198- */
1199-
12001185 // getPostTranslationHandler
12011186 function getPostTranslationHandler ( ) : PostTranslationHandler < Message > | null {
12021187 return isFunction ( _postTranslation ) ? _postTranslation : null
@@ -1503,7 +1488,6 @@ export function createComposer<
15031488
15041489 // export composition API!
15051490 const composer = {
1506- // properties
15071491 id : composerID ,
15081492 locale,
15091493 fallbackLocale,
@@ -1578,7 +1562,6 @@ export function createComposer<
15781562 _escapeParameter = val
15791563 _context . escapeParameter = val
15801564 } ,
1581- // methods
15821565 t,
15831566 d,
15841567 n,
Original file line number Diff line number Diff line change 1- /**
2- * Legacy
3- *
4- * This module is offered legacy vue-i18n API compatibility
5- */
6-
71import { EnableEmitter , DisableEmitter , createComposer } from './composer'
82import { I18nWarnCodes , getWarnMessage } from './warnings'
93import { createI18nError , I18nErrorCodes } from './errors'
@@ -1028,9 +1022,6 @@ export function createVueI18n<
10281022
10291023 // defines VueI18n
10301024 const vueI18n = {
1031- /**
1032- * properties
1033- */
10341025 // id
10351026 id : composer . id ,
10361027
@@ -1178,10 +1169,6 @@ export function createVueI18n<
11781169 // for internal
11791170 __composer : composer ,
11801171
1181- /**
1182- * methods
1183- */
1184-
11851172 // t
11861173 t ( ...args : unknown [ ] ) : TranslateResult {
11871174 const [ arg1 , arg2 , arg3 ] = args
You can’t perform that action at this time.
0 commit comments