Skip to content

Commit

Permalink
Fix date picker locale; Add framework for general l10n
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmeyers committed May 15, 2021
1 parent 78697f6 commit d8c0b8c
Show file tree
Hide file tree
Showing 44 changed files with 729 additions and 281 deletions.
480 changes: 333 additions & 147 deletions dist/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-kanban",
"name": "Kanban",
"version": "0.3.2",
"version": "0.3.3",
"minAppVersion": "0.11.13",
"description": "Create markdown-backed Kanban boards in Obsidian.",
"author": "mgmeyers",
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-kanban",
"name": "Kanban",
"version": "0.3.2",
"version": "0.3.3",
"minAppVersion": "0.11.13",
"description": "Create markdown-backed Kanban boards in Obsidian.",
"author": "mgmeyers",
Expand Down
7 changes: 4 additions & 3 deletions src/KanbanView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
getDefaultDateFormat,
getDefaultTimeFormat,
} from "./components/helpers";
import { t } from "./lang/helpers";

export const kanbanViewType = "kanban";
export const kanbanIcon = "blocks";
Expand Down Expand Up @@ -73,7 +74,7 @@ export class KanbanView extends TextFileView implements HoverParent {
menu
.addItem((item) => {
item
.setTitle("Open as markdown")
.setTitle(t("Open as markdown"))
.setIcon("document")
.onClick(() => {
this.plugin.kanbanFileModes[
Expand All @@ -84,7 +85,7 @@ export class KanbanView extends TextFileView implements HoverParent {
})
.addItem((item) => {
item
.setTitle("Open board settings")
.setTitle(t("Open board settings"))
.setIcon("gear")
.onClick(() => {
const board = this.dataBridge.getData();
Expand Down Expand Up @@ -112,7 +113,7 @@ export class KanbanView extends TextFileView implements HoverParent {
})
.addItem((item) => {
item
.setTitle("Archive all completed cards")
.setTitle(t("Archive completed cards"))
.setIcon("sheets-in-box")
.onClick(() => {
this.archiveCompletedCards();
Expand Down
Loading

0 comments on commit d8c0b8c

Please sign in to comment.