Skip to content

Commit c79635d

Browse files
Translation sync - Add Catalan (#584)
* Japanese translations that are only available in preview have also been updated. * Add Catalan as a preview language in Settings * Upgrade pxt-microbit-ml version to v1.0.9
1 parent 80f6f7a commit c79635d

File tree

8 files changed

+4725
-36
lines changed

8 files changed

+4725
-36
lines changed

bin/update-translations.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const fs = require("fs");
2020
const okExitStatus = 0;
2121
const errExitStatus = 2;
2222

23-
const languages = ["en", "es-ES", "ja", "ko", "nl", "pl", "pt-br", "zh-tw"];
23+
const languages = ["ca", "en", "es-ES", "ja", "ko", "nl", "pl", "pt-br", "zh-tw"];
2424
const enMessagesToAdd = {
2525
"ml.onStart|block": {
2626
defaultMessage: "on ML $event start",

lang/ui.ca.json

Lines changed: 1690 additions & 0 deletions
Large diffs are not rendered by default.

lang/ui.ja.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"description": "Button to add an action (movement related, e.g. clapping)"
5353
},
5454
"ai-activity-timer-resource-title": {
55-
"defaultMessage": "AIアクティビティタイマー",
55+
"defaultMessage": "AI活動タイマー",
5656
"description": "Home page resource card title"
5757
},
5858
"ai-storytelling-friend-resource-title": {
@@ -660,15 +660,15 @@
660660
"description": "Tooltip for data feature of a recording"
661661
},
662662
"fingerprint-rms-x-tooltip": {
663-
"defaultMessage": "すべての X 方向データポイントの実効値",
663+
"defaultMessage": "すべての X 方向データポイントの二乗平均平方根値",
664664
"description": "Tooltip for data feature of a recording"
665665
},
666666
"fingerprint-rms-y-tooltip": {
667-
"defaultMessage": "すべての Y 方向データポイントの実効値",
667+
"defaultMessage": "すべての Y 方向データポイントの二乗平均平方根値",
668668
"description": "Tooltip for data feature of a recording"
669669
},
670670
"fingerprint-rms-z-tooltip": {
671-
"defaultMessage": "すべての Z 方向データポイントの実効値",
671+
"defaultMessage": "すべての Z 方向データポイントの二乗平均平方根値",
672672
"description": "Tooltip for data feature of a recording"
673673
},
674674
"fingerprint-std-x-tooltip": {
@@ -816,7 +816,7 @@
816816
"description": "Home page section heading"
817817
},
818818
"homepage-subtitle": {
819-
"defaultMessage": "動作と機械学習を使って BBC micro:bit のAIを作る",
819+
"defaultMessage": "動作と機械学習を使ってBBC micro:bitでAIを作ります。",
820820
"description": "Home page subtitle"
821821
},
822822
"homepage-video-alt": {
@@ -856,7 +856,7 @@
856856
"description": "Incompatible device dialog subtitle"
857857
},
858858
"insufficient-data-body": {
859-
"defaultMessage": "モデルを訓練するには、少なくとも 2 個のアクションと、それぞれのアクションに対して 3 個のデータサンプルが必要です。",
859+
"defaultMessage": "モデルをトレーニングするには、少なくとも 2 個のアクションと、それぞれのアクションに対して 3 個のデータサンプルが必要です。",
860860
"description": "Insufficient data modal content"
861861
},
862862
"insufficient-data-title": {
@@ -1072,7 +1072,7 @@
10721072
"description": "Makecode block text. The translation should match MakeCode translations."
10731073
},
10741074
"makecode-load-error-dialog-body": {
1075-
"defaultMessage": "{appNameFull} は MakeCode のロードに失敗しました。インターネット接続をチェックし、ページを更新してからもう一度お試しください。",
1075+
"defaultMessage": "{appNameFull} は MakeCode の読み込みに失敗しました。インターネット接続を確認し、ページを更新してからもう一度お試しください。",
10761076
"description": "Content of MakeCode load error dialog"
10771077
},
10781078
"makecode-load-error-dialog-title": {
@@ -1208,7 +1208,7 @@
12081208
"description": "Link to view privacy policy"
12091209
},
12101210
"project-loaded": {
1211-
"defaultMessage": "プロジェクトがロードされました",
1211+
"defaultMessage": "プロジェクトが読み込まれました",
12121212
"description": "Toast when a new project is loaded"
12131213
},
12141214
"project-name-not-empty": {
@@ -1312,7 +1312,7 @@
13121312
"description": "Text in recording dialog"
13131313
},
13141314
"recording-data-for-numbered": {
1315-
"defaultMessage": "アクション「{action}」の {numSamples} 個の記録 {sample} ",
1315+
"defaultMessage": "アクション「{action}」の {numSamples} 個の {sample} を記録",
13161316
"description": "Text in recording dialog"
13171317
},
13181318
"recording-fingerprint-label": {
@@ -1476,7 +1476,7 @@
14761476
"description": "Button label that starts a tour of the app's features"
14771477
},
14781478
"tour-collect-addActions-content": {
1479-
"defaultMessage": "他のアクションとその名前を決めてください。モデルを訓練するには、少なくとも2つのアクションと3つのデータサンプルが必要です。データサンプルはPCにのみ保存され、他の人に送信されることはありません。",
1479+
"defaultMessage": "他のアクションとその名前を決めてください。モデルをトレーニングするには、少なくとも2個のアクションと3個のデータサンプルが必要です。データサンプルはPCにのみ保存され、他の人に送信されることはありません。",
14801480
"description": "Tour step description"
14811481
},
14821482
"tour-collect-addActions-title": {
@@ -1548,7 +1548,7 @@
15481548
"description": "Tour step title"
15491549
},
15501550
"tour-trainModel-afterTrain-alreadyConnected-title": {
1551-
"defaultMessage": "MLモデルを訓練しました",
1551+
"defaultMessage": "MLモデルをトレーニングしました",
15521552
"description": "Tour step title"
15531553
},
15541554
"tour-trainModel-afterTrain-content": {
@@ -1588,27 +1588,27 @@
15881588
"description": "Explanation on training dialog"
15891589
},
15901590
"train-error-body": {
1591-
"defaultMessage": "訓練の結果、モデルは使用可能になりませんでした。その理由は、訓練に使われたデータにある可能性が高いです。 異なるアクションのデータサンプルがあまりにも類似している場合、訓練プロセスに問題が生じる可能性があります",
1591+
"defaultMessage": "トレーニングの結果、モデルは使用可能になりませんでした。その理由は、トレーニングに使われたデータにある可能性が高いです。 異なるアクションのデータサンプルがあまりにも類似している場合、トレーニングの処理に問題が生じる可能性があります",
15921592
"description": "Training error dialog"
15931593
},
15941594
"train-error-header": {
1595-
"defaultMessage": "訓練が失敗しました",
1595+
"defaultMessage": "トレーニングが失敗しました",
15961596
"description": "Training error dialog"
15971597
},
15981598
"train-error-todo": {
15991599
"defaultMessage": "データ追加のページに戻り、データを変更してください。",
16001600
"description": "Training error dialog"
16011601
},
16021602
"train-header": {
1603-
"defaultMessage": "モデルの訓練",
1603+
"defaultMessage": "モデルのトレーニング",
16041604
"description": "Training dialog"
16051605
},
16061606
"train-model": {
1607-
"defaultMessage": "モデルの訓練",
1607+
"defaultMessage": "モデルのトレーニング",
16081608
"description": "Action to train a model"
16091609
},
16101610
"training-model": {
1611-
"defaultMessage": "モデルを訓練中...",
1611+
"defaultMessage": "モデルをトレーニング中...",
16121612
"description": "Progress title"
16131613
},
16141614
"transfer-hex-alt": {

src/makecode/__snapshots__/utils.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5278,7 +5278,7 @@ ml.onStart(ml.event.Clap, function () {
52785278
basic.showIcon(IconNames.EighthNote)
52795279
})
52805280
",
5281-
"pxt.json": "{"name":"A project name","description":"","dependencies":{"core":"*","microphone":"*","radio":"*","machine-learning":"github:microbit-foundation/pxt-microbit-ml#v1.0.7"},"files":["main.ts","main.blocks","autogenerated.ts","dataset.json","pxt.json","README.md"],"preferredEditor":"blocksprj"}",
5281+
"pxt.json": "{"name":"A project name","description":"","dependencies":{"core":"*","microphone":"*","radio":"*","machine-learning":"github:microbit-foundation/pxt-microbit-ml#v1.0.9"},"files":["main.ts","main.blocks","autogenerated.ts","dataset.json","pxt.json","README.md"],"preferredEditor":"blocksprj"}",
52825282
},
52835283
}
52845284
`;

src/makecode/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const filenames = {
2626

2727
// Exported for testing.
2828
export const extensionName = "machine-learning";
29-
const extensionURL = "github:microbit-foundation/pxt-microbit-ml#v1.0.7";
29+
const extensionURL = "github:microbit-foundation/pxt-microbit-ml#v1.0.9";
3030

3131
export const pxt = {
3232
name: untitledProjectName,

0 commit comments

Comments
 (0)