@@ -6,18 +6,16 @@ const inc = incrementer(code)
6
6
7
7
export const I18nWarnCodes = {
8
8
FALLBACK_TO_ROOT : code , // 8
9
- NOT_SUPPORTED_GET_CHOICE_INDEX : inc ( ) , // 9
10
- COMPONENT_NAME_LEGACY_COMPATIBLE : inc ( ) , // 10
11
- NOT_FOUND_PARENT_SCOPE : inc ( ) , // 11
12
- IGNORE_OBJ_FLATTEN : inc ( ) , // 12
13
- NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG : inc ( ) // 13
9
+ COMPONENT_NAME_LEGACY_COMPATIBLE : inc ( ) , // 9
10
+ NOT_FOUND_PARENT_SCOPE : inc ( ) , // 10
11
+ IGNORE_OBJ_FLATTEN : inc ( ) , // 11
12
+ NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG : inc ( ) // 12
14
13
} as const
15
14
16
15
type I18nWarnCodes = ( typeof I18nWarnCodes ) [ keyof typeof I18nWarnCodes ]
17
16
18
17
export const warnMessages : { [ code : number ] : string } = {
19
18
[ I18nWarnCodes . FALLBACK_TO_ROOT ] : `Fall back to {type} '{key}' with root locale.` ,
20
- [ I18nWarnCodes . NOT_SUPPORTED_GET_CHOICE_INDEX ] : `Not supported 'getChoiceIndex'.` ,
21
19
[ I18nWarnCodes . COMPONENT_NAME_LEGACY_COMPATIBLE ] : `Component name legacy compatible: '{name}' -> 'i18n'` ,
22
20
[ I18nWarnCodes . NOT_FOUND_PARENT_SCOPE ] : `Not found parent scope. use the global scope.` ,
23
21
[ I18nWarnCodes . IGNORE_OBJ_FLATTEN ] : `Ignore object flatten: '{key}' key has an string value` ,
0 commit comments