Skip to content

armgit / bento

Public Imported from GitHub
0

Bento, the office suite that fits in a file

v0.6.2: Comment button gets its label in the topbar (localized in all 8 languages)

nyblnetee409415e801
diff --git a/slides/package.json b/slides/package.json
index 590c73b8..53ae1670 100644
--- a/slides/package.json
+++ b/slides/package.json
@@ -1,7 +1,7 @@
{
"name": "bento-slides",
"private": true,
- "version": "0.6.1",
+ "version": "0.6.2",
"type": "module",
"scripts": {
"dev": "vite",
diff --git a/slides/src/editor/editor.ts b/slides/src/editor/editor.ts
index 41bc5ab3..03642c20 100644
--- a/slides/src/editor/editor.ts
+++ b/slides/src/editor/editor.ts
@@ -101,7 +101,7 @@ export class Editor {
btn(ICONS.image, t('Image'), () => this.pickImage()),
btn(ICONS.chart, t('Chart'), () => this.canvas.insert(defaultChart(CHART_PRESETS.bar()))),
)
- const commentB = btn(ICONS.comment, '', () => this.canvas.toggleCommentMode(),
+ const commentB = btn(ICONS.comment, t('Comment'), () => this.canvas.toggleCommentMode(),
t('Comment (C) — click an element or a spot on the slide'))
insert.appendChild(commentB)
diff --git a/slides/src/i18n/de.ts b/slides/src/i18n/de.ts
index da6193b5..86d61abb 100644
--- a/slides/src/i18n/de.ts
+++ b/slides/src/i18n/de.ts
@@ -30,6 +30,7 @@ export const de: Catalog = {
"Comment · element": "Kommentar · Element",
"Comment · point ({x}, {y})": "Kommentar · Punkt ({x}, {y})",
"Comment · slide": "Kommentar · Folie",
+ "Comment": "Kommentar",
"Comment:": "Kommentar:",
"Corner radius": "Eckenradius",
"Couldn't check: {m}": "Prüfung fehlgeschlagen: {m}",
diff --git a/slides/src/i18n/es.ts b/slides/src/i18n/es.ts
index 66b3b313..feca353b 100644
--- a/slides/src/i18n/es.ts
+++ b/slides/src/i18n/es.ts
@@ -30,6 +30,7 @@ export const es: Catalog = {
"Comment · element": "Comentario · elemento",
"Comment · point ({x}, {y})": "Comentario · punto ({x}, {y})",
"Comment · slide": "Comentario · diapositiva",
+ "Comment": "Comentario",
"Comment:": "Comentario:",
"Corner radius": "Radio de esquina",
"Couldn't check: {m}": "No se pudo comprobar: {m}",
diff --git a/slides/src/i18n/fr.ts b/slides/src/i18n/fr.ts
index 2d095c02..5d3cf161 100644
--- a/slides/src/i18n/fr.ts
+++ b/slides/src/i18n/fr.ts
@@ -30,6 +30,7 @@ export const fr: Catalog = {
"Comment · element": "Commentaire · élément",
"Comment · point ({x}, {y})": "Commentaire · point ({x}, {y})",
"Comment · slide": "Commentaire · diapositive",
+ "Comment": "Commentaire",
"Comment:": "Commentaire :",
"Corner radius": "Rayon d'angle",
"Couldn't check: {m}": "Vérification impossible : {m}",
diff --git a/slides/src/i18n/it.ts b/slides/src/i18n/it.ts
index 7a3e0cf1..b77a6c7f 100644
--- a/slides/src/i18n/it.ts
+++ b/slides/src/i18n/it.ts
@@ -30,6 +30,7 @@ export const it: Catalog = {
"Comment · element": "Commento · elemento",
"Comment · point ({x}, {y})": "Commento · punto ({x}, {y})",
"Comment · slide": "Commento · diapositiva",
+ "Comment": "Commento",
"Comment:": "Commento:",
"Corner radius": "Raggio angoli",
"Couldn't check: {m}": "Verifica non riuscita: {m}",
diff --git a/slides/src/i18n/ja.ts b/slides/src/i18n/ja.ts
index 4a45831e..d4a11790 100644
--- a/slides/src/i18n/ja.ts
+++ b/slides/src/i18n/ja.ts
@@ -30,6 +30,7 @@ export const ja: Catalog = {
"Comment · element": "コメント · 要素",
"Comment · point ({x}, {y})": "コメント · 位置 ({x}, {y})",
"Comment · slide": "コメント · スライド",
+ "Comment": "コメント",
"Comment:": "コメント:",
"Corner radius": "角丸",
"Couldn't check: {m}": "確認できませんでした: {m}",
diff --git a/slides/src/i18n/zh-Hans.ts b/slides/src/i18n/zh-Hans.ts
index c0c444a0..c939151a 100644
--- a/slides/src/i18n/zh-Hans.ts
+++ b/slides/src/i18n/zh-Hans.ts
@@ -30,6 +30,7 @@ export const zhHans: Catalog = {
"Comment · element": "评论 · 元素",
"Comment · point ({x}, {y})": "评论 · 位置 ({x}, {y})",
"Comment · slide": "评论 · 幻灯片",
+ "Comment": "评论",
"Comment:": "评论:",
"Corner radius": "圆角",
"Couldn't check: {m}": "无法检查:{m}",
diff --git a/slides/src/i18n/zh-Hant.ts b/slides/src/i18n/zh-Hant.ts
index f7815588..8103fddf 100644
--- a/slides/src/i18n/zh-Hant.ts
+++ b/slides/src/i18n/zh-Hant.ts
@@ -30,6 +30,7 @@ export const zhHant: Catalog = {
"Comment · element": "註解 · 元素",
"Comment · point ({x}, {y})": "註解 · 位置 ({x}, {y})",
"Comment · slide": "註解 · 投影片",
+ "Comment": "註解",
"Comment:": "註解:",
"Corner radius": "圓角",
"Couldn't check: {m}": "無法檢查:{m}",