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
-
8
1
import {
9
2
ref ,
10
3
computed ,
@@ -1157,10 +1150,6 @@ export function createComposer<
1157
1150
_context = getCoreContext ( )
1158
1151
updateFallbackLocale < Message > ( _context , _locale . value , _fallbackLocale . value )
1159
1152
1160
- /*!
1161
- * define properties
1162
- */
1163
-
1164
1153
// locale
1165
1154
const locale = computed ( {
1166
1155
get : ( ) => _locale . value ,
@@ -1193,10 +1182,6 @@ export function createComposer<
1193
1182
( ) => _numberFormats . value as NumberFormats
1194
1183
)
1195
1184
1196
- /**
1197
- * define methods
1198
- */
1199
-
1200
1185
// getPostTranslationHandler
1201
1186
function getPostTranslationHandler ( ) : PostTranslationHandler < Message > | null {
1202
1187
return isFunction ( _postTranslation ) ? _postTranslation : null
@@ -1503,7 +1488,6 @@ export function createComposer<
1503
1488
1504
1489
// export composition API!
1505
1490
const composer = {
1506
- // properties
1507
1491
id : composerID ,
1508
1492
locale,
1509
1493
fallbackLocale,
@@ -1578,7 +1562,6 @@ export function createComposer<
1578
1562
_escapeParameter = val
1579
1563
_context . escapeParameter = val
1580
1564
} ,
1581
- // methods
1582
1565
t,
1583
1566
d,
1584
1567
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
-
7
1
import { EnableEmitter , DisableEmitter , createComposer } from './composer'
8
2
import { I18nWarnCodes , getWarnMessage } from './warnings'
9
3
import { createI18nError , I18nErrorCodes } from './errors'
@@ -1028,9 +1022,6 @@ export function createVueI18n<
1028
1022
1029
1023
// defines VueI18n
1030
1024
const vueI18n = {
1031
- /**
1032
- * properties
1033
- */
1034
1025
// id
1035
1026
id : composer . id ,
1036
1027
@@ -1178,10 +1169,6 @@ export function createVueI18n<
1178
1169
// for internal
1179
1170
__composer : composer ,
1180
1171
1181
- /**
1182
- * methods
1183
- */
1184
-
1185
1172
// t
1186
1173
t ( ...args : unknown [ ] ) : TranslateResult {
1187
1174
const [ arg1 , arg2 , arg3 ] = args
You can’t perform that action at this time.
0 commit comments