File tree Expand file tree Collapse file tree 5 files changed +12
-12
lines changed Expand file tree Collapse file tree 5 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ export interface ComposerOptions {
109
109
/**
110
110
* @internal
111
111
*/
112
- export interface ComposerOptionsInternal {
112
+ export interface ComposerInternalOptions {
113
113
__i18n ?: CustomBlocks
114
114
__root ?: Composer
115
115
}
@@ -200,7 +200,7 @@ function defineRuntimeMissingHandler(
200
200
}
201
201
202
202
function getLocaleMessages (
203
- options : ComposerOptions & ComposerOptionsInternal ,
203
+ options : ComposerOptions & ComposerInternalOptions ,
204
204
locale : Locale
205
205
) : LocaleMessages {
206
206
const { messages, __i18n } = options
@@ -268,7 +268,7 @@ export function addPreCompileMessages(
268
268
* @internal
269
269
*/
270
270
export function createComposer (
271
- options : ComposerOptions & ComposerOptionsInternal = { }
271
+ options : ComposerOptions & ComposerInternalOptions = { }
272
272
) : Composer {
273
273
const { __root } = options
274
274
const _isGlobal = __root === undefined
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import {
11
11
import {
12
12
Composer ,
13
13
ComposerOptions ,
14
- ComposerOptionsInternal ,
14
+ ComposerInternalOptions ,
15
15
createComposer
16
16
} from './composer'
17
17
import { createVueI18n , VueI18n , VueI18nOptions } from './legacy'
@@ -304,7 +304,7 @@ export function useI18n(options: UseI18nOptions = {}): Composer {
304
304
let composer = i18n . _getComposer ( instance )
305
305
if ( composer == null ) {
306
306
const type = instance . type as ComponentOptions
307
- const composerOptions : ComposerOptions & ComposerOptionsInternal = {
307
+ const composerOptions : ComposerOptions & ComposerInternalOptions = {
308
308
...options
309
309
}
310
310
if ( type . __i18n ) {
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export {
40
40
createI18n ,
41
41
useI18n ,
42
42
I18nOptions ,
43
- I18nAddtionalOptions ,
43
+ I18nAdditionalOptions ,
44
44
I18n ,
45
45
I18nMode ,
46
46
I18nScope ,
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ import {
30
30
MissingHandler ,
31
31
Composer ,
32
32
ComposerOptions ,
33
- ComposerOptionsInternal ,
33
+ ComposerInternalOptions ,
34
34
createComposer
35
35
} from './composer'
36
36
import {
@@ -159,8 +159,8 @@ export type VueI18n = {
159
159
* @internal
160
160
*/
161
161
function convertComposerOptions (
162
- options : VueI18nOptions & ComposerOptionsInternal
163
- ) : ComposerOptions & ComposerOptionsInternal {
162
+ options : VueI18nOptions & ComposerInternalOptions
163
+ ) : ComposerOptions & ComposerInternalOptions {
164
164
const locale = isString ( options . locale ) ? options . locale : 'en-US'
165
165
const fallbackLocale =
166
166
isString ( options . fallbackLocale ) ||
@@ -237,7 +237,7 @@ function convertComposerOptions(
237
237
* @internal
238
238
*/
239
239
export function createVueI18n (
240
- options : VueI18nOptions & ComposerOptionsInternal = { }
240
+ options : VueI18nOptions & ComposerInternalOptions = { }
241
241
) : VueI18n {
242
242
const composer = createComposer ( convertComposerOptions ( options ) )
243
243
Original file line number Diff line number Diff line change 1
1
import { ComponentOptions , getCurrentInstance } from 'vue'
2
2
import { Path } from './path'
3
3
import { Locale } from './core/context'
4
- import { Composer , ComposerOptionsInternal } from './composer'
4
+ import { Composer , ComposerInternalOptions } from './composer'
5
5
import {
6
6
VueI18n ,
7
7
createVueI18n ,
@@ -29,7 +29,7 @@ export function defineMixin(
29
29
const options = this . $options
30
30
if ( options . i18n ) {
31
31
const optionsI18n = options . i18n as VueI18nOptions &
32
- ComposerOptionsInternal
32
+ ComposerInternalOptions
33
33
if ( options . __i18n ) {
34
34
optionsI18n . __i18n = options . __i18n
35
35
}
You can’t perform that action at this time.
0 commit comments