8000 :bug: Add missing translation keys to Math operators · ct-js/ct-js@33e56cb · GitHub
[go: up one dir, main page]

Skip to con 8000 tent

Commit 33e56cb

Browse files
🐛 Add missing translation keys to Math operators
1 parent e475b45 commit 33e56cb

File tree

3 files changed

+37
-3
lines changed

3 files changed

+37
-3
lines changed

app/data/i18n/English.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,24 @@
563563
"delete from storage": "Delete from storage the key",
564564
"load from storage": "load from storage from key",
565565
"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"
567584
},
568585
"blockDisplayNames": {
569586
"write": "Write",

app/data/i18n/Russian.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,23 @@
502502
"load from storage": "загрузить из ключа",
503503
"is key in storage": "ключ в хранилище?",
504504
"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": "максимум из",
505522
"x prev": "предыдущий x",
506523
"y prev": "предыдущий y",
507524
"content type entries": "записи контента"

src/node_requires/catnip/stdLib/math.ts

Lines changed: 2 additions & 2 deletions
5A7D
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const makeMathUnary = (operator: string): IBlockComputedDeclaration => ({
4848
type: 'computed',
4949
typeHint: 'number',
5050
hideIcon: true,
51-
i18nKey: operator,
51+
i18nKey: 'math ' + operator,
5252
jsTemplate: (vals) => `Math.${operator}(${vals.a})`,
5353
lib: 'core.math',
5454
pieces: [{
@@ -66,7 +66,7 @@ const makeMathBinary = (operator: string): IBlockComputedDeclaration => ({
6666
type: 'computed',
6767
typeHint: 'number',
6868
hideIcon: true,
69-
i18nKey: operator,
69+
i18nKey: 'math ' + operator,
7070
jsTemplate: (vals) => `Math.${operator}(${vals.a}, ${vals.b})`,
7171
lib: 'core.math',
7272
pieces: [{

0 commit comments

Comments
 (0)
0