@@ -26,38 +26,38 @@ class GrowthChartView extends AbstractComponent {
2626
2727 settings = {
2828 SD3neg : {
29- label : " Grade 3" ,
29+ label : this . I18n . t ( ' Grade 3' ) ,
3030 config : {
3131 color : processColor ( "red" ) ,
3232 fillColor : processColor ( "red" ) ,
3333 fillAlpha : 150
3434 }
3535 } ,
3636 SD2neg : {
37- label : " Grade 2" ,
37+ label : this . I18n . t ( ' Grade 2' ) ,
3838 config : {
3939 color : processColor ( "orange" ) ,
4040 fillColor : processColor ( "orange" ) ,
4141 fillAlpha : 150
4242 }
4343 } ,
4444 SD0 : {
45- label : " Grade 1" ,
45+ label : this . I18n . t ( ' Grade 1' ) ,
4646 config : {
4747 color : processColor ( "green" ) ,
4848 fillColor : processColor ( "green" ) ,
4949 fillAlpha : 30
5050 }
5151 } ,
5252 SD2 : {
53- label : " Grade 1" ,
53+ label : this . I18n . t ( ' Grade 1' ) ,
5454 config : {
5555 color : processColor ( "green" ) ,
5656 fillColor : processColor ( "green" ) ,
5757 }
5858 } ,
5959 SD3 : {
60- label : " Grade 1" ,
60+ label : this . I18n . t ( ' Grade 1' ) ,
6161 config : {
6262 color : processColor ( "green" ) ,
6363 fillColor : processColor ( "green" ) ,
@@ -242,7 +242,7 @@ class GrowthChartView extends AbstractComponent {
242242 maxSizePercent : 0.5 ,
243243 custom : {
244244 colors : [ processColor ( 'black' ) , processColor ( 'green' ) , processColor ( "orange" ) , processColor ( "red" ) ] ,
245- labels : [ this . getLegendLabel ( ) , " Grade 1" , " Grade 2" , " Grade 3" ]
245+ labels : [ this . I18n . t ( this . getLegendLabel ( ) ) , this . I18n . t ( ' Grade 1' ) , this . I18n . t ( ' Grade 2' ) , this . I18n . t ( ' Grade 3' ) ]
246246 }
247247 } ;
248248 const marker = {
@@ -272,23 +272,25 @@ class GrowthChartView extends AbstractComponent {
272272 style = { [ GrowthChartView . style . graphButton . self , wfaStyle . self ] }
273273 _text = { wfaStyle . text }
274274 onPress = { ( ) => this . onGraphSelected ( this . states . weightForAge ) } >
275- { this . states . weightForAge }
275+ { this . I18n . t ( this . states . weightForAge ) }
276276 </ Button >
277277
278278 < Button
279279 style = { [ GrowthChartView . style . graphButton . self , hfaStyle . self ] }
280280 _text = { hfaStyle . text }
281- onPress = { ( ) => this . onGraphSelected ( this . states . heightForAge ) } > { this . states . heightForAge }
281+ onPress = { ( ) => this . onGraphSelected ( this . states . heightForAge ) } >
282+ { this . I18n . t ( this . states . heightForAge ) }
282283 </ Button >
283284
284285 < Button
285286 style = { [ GrowthChartView . style . graphButton . self , wfhStyle . self ] }
286287 _text = { wfhStyle . text }
287- onPress = { ( ) => this . onGraphSelected ( this . states . weightForHeight ) } > { this . states . weightForHeight }
288+ onPress = { ( ) => this . onGraphSelected ( this . states . weightForHeight ) } >
289+ { this . I18n . t ( this . states . weightForHeight ) }
288290 </ Button >
289291 </ View >
290292
291- < Text style = { [ Styles . formGroupLabel , { paddingLeft : 4 } ] } > { this . state . title } </ Text >
293+ < Text style = { [ Styles . formGroupLabel , { paddingLeft : 4 } ] } > { this . I18n . t ( this . state . title ) } </ Text >
292294
293295 < View style = { styles . container } >
294296 < LineChart
0 commit comments