File tree Expand file tree Collapse file tree 3 files changed +37
-3
lines changed
src/node_requires/catnip/stdLib Expand file tree Collapse file tree 3 files changed +37
-3
lines changed Original file line number Diff line number Diff line change 563
563
"delete from storage" : " Delete from storage the key" ,
564
564
"load from storage" : " load from storage from key" ,
565
565
"is key in storage" : " is key in storage" ,
566
- "owning room" : " copy's owning room"
566
+ "owning room" : " copy's owning room" ,
567
+ "math abs" : " absolute" ,
568
+ "math sign" : " sign of" ,
569
+ "math floor" : " floor" ,
570
+ "math ceil" : " ceil" ,
571
+ "math round" : " round" ,
572
+ "math sqrt" : " square root" ,
573
+ "math sin" : " sin" ,
574
+ "math cos" : " cos" ,
575
+ "math tan" : " tan" ,
576
+ "math asin" : " asin" ,
577
+ "math acos" : " acos" ,
578
+ "math atan" : " atan" ,
579
+ "math atan2" : " atan2" ,
580
+ "math pow" : " power" ,
581
+ "math log" : " log" ,
582
+ "math min" : " minimum of" ,
583
+ "math max" : " maximum of"
567
584
},
568
585
"blockDisplayNames" : {
569
586
"write" : " Write" ,
Original file line number Diff line number Diff line change 502
502
"load from storage" : " загрузить из ключа" ,
503
503
"is key in storage" : " ключ в хранилище?" ,
504
504
"owning room" : " комната-родитель копии" ,
505
+ "math abs" : " положительное" ,
506
+ "math sign" : " знак" ,
507
+ "math floor" : " окр. до нижнего" ,
508
+ "math ceil" : " окр. до верхнего" ,
509
+ "math round" : " округлить" ,
510
+ "math sqrt" : " квадратный корень" ,
511
+ "math sin" : " sin" ,
512
+ "math cos" : " cos" ,
513
+ "math tan" : " tan" ,
514
+ "math asin" : " asin" ,
515
+ "math acos" : " acos" ,
516
+ "math atan" : " atan" ,
517
+ "math atan2" : " atan2" ,
518
+ "math pow" : " степень" ,
519
+ "math log" : " log" ,
520
+ "math min" : " минимум из" ,
521
+ "math max" : " максимум из" ,
505
522
"x prev" : " предыдущий x" ,
506
523
"y prev" : " предыдущий y" ,
507
524
"content type entries" : " записи контента"
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ const makeMathUnary = (operator: string): IBlockComputedDeclaration => ({
48
48
type : 'computed' ,
49
49
typeHint : 'number' ,
50
50
hideIcon : true ,
51
- i18nKey : operator ,
51
+ i18nKey : 'math ' + operator ,
52
52
jsTemplate : ( vals ) => `Math.${ operator } (${ vals . a } )` ,
53
53
lib : 'core.math' ,
54
54
pieces : [ {
@@ -66,7 +66,7 @@ const makeMathBinary = (operator: string): IBlockComputedDeclaration => ({
66
66
type : 'computed' ,
67
67
typeHint : 'number' ,
5A7D
68
68
hideIcon : true ,
69
- i18nKey : operator ,
69
+ i18nKey : 'math ' + operator ,
70
70
jsTemplate : ( vals ) => `Math.${ operator } (${ vals . a } , ${ vals . b } )` ,
71
71
lib : 'core.math' ,
72
72
pieces : [ {
You can’t perform that action at this time.
0 commit comments