File tree Expand file tree Collapse file tree 3 files changed +16
-8
lines changed Expand file tree Collapse file tree 3 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,6 @@ import { AttributeType } from '../utils/enums/json-keys';
7
7
import { Constants } from '../utils/constants' ;
8
8
import { RendererEvent } from 'typedoc/dist/lib/output/events' ;
9
9
import { Parser } from '../utils/parser' ;
10
- import { GlobalFuncs } from '../utils/global-funcs' ;
11
- import { HardcodedStrings } from '../utils/template-strings' ;
12
10
13
11
@Component ( { name : 'render-component' } )
14
12
export class RenderComponenet extends RendererComponent {
Original file line number Diff line number Diff line change @@ -44,7 +44,13 @@ export class ThemeComponent extends RendererComponent {
44
44
}
45
45
46
46
this . updateReflectionAbbreviation ( reflection ) ;
47
- }
47
+ }
48
+
49
+ if ( reflection . parameters && reflection . parameters . length ) {
50
+ reflection . parameters . forEach ( e => {
51
+ this . replaceParameterFlags ( e ) ;
52
+ } ) ;
53
+ }
48
54
}
49
55
50
56
/**
@@ -65,6 +71,14 @@ export class ThemeComponent extends RendererComponent {
65
71
} ) ;
66
72
}
67
73
74
+ private replaceParameterFlags ( param ) {
75
+ if ( param . flags && param . flags . length ) {
76
+ param . flags . forEach ( ( f , idx ) => {
77
+ param . flags [ idx ] = this . getLocaleValue ( f ) ;
78
+ } ) ;
79
+ }
80
+ }
81
+
68
82
/**
69
83
* Get template localized string from cached translations.
70
84
* @param value
Original file line number Diff line number Diff line change @@ -9,11 +9,7 @@ export class GlobalFuncs {
9
9
}
10
10
11
11
public static getKeyValuePairRes ( data , key , value ) {
12
- if ( ! data ) {
13
- return value ;
14
- }
15
-
16
- if ( ! data [ key ] ) {
12
+ if ( ! data && ! data [ key ] ) {
17
13
return value ;
18
14
}
19
15
You can’t perform that action at this time.
0 commit comments