Skip to content

Commit b6d5dc4

Browse files
committed
Added support for additional dialog languages
1 parent 3de4223 commit b6d5dc4

File tree

4 files changed

+38
-8
lines changed

4 files changed

+38
-8
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ Yesterday extends [Markdown](https://www.markdownguide.org/basic-syntax/) with s
1212
- dreams
1313
- media [content blocks](https://ia.net/writer/support/library/content-blocks)
1414

15-
#### Edit Mode
15+
Learn more [here](https://mitado.notion.site/How-to-write-d3d76812fdef4bf3aa48d727d53c6e0d)
16+
17+
#### Example
1618

1719
```
1820
---
@@ -51,11 +53,9 @@ While walking home, Karen shared a joke that unexpectedly lightened the mood:
5153
.Patient: 😳
5254
```
5355

54-
#### View Mode
55-
5656
![Example rendering](https://ik.imagekit.io/mitado/obsidian-yesterday-example_yuoXeej6j.png?updatedAt=1708879259580)
5757

58-
Clicking on any image shows a larger version.
58+
Click on any image to show a larger version.
5959

6060
### Journal Vault
6161

manifest.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"id": "yesterday",
33
"name": "Yesterday",
4-
"version": "1.0.6",
4+
"version": "1.0.7",
55
"minAppVersion": "0.12.0",
6-
"description": "Transform your notes into a visually stunning diary.",
6+
"description": "Transform your notes into a visually stunning diary, integrating dialogs, chat logs, and media content blocks for a seamless journaling experience.",
77
"author": "Dominik Mayer",
88
"authorUrl": "https://www.yesterday.md",
99
"isDesktopOnly": false

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obsidian-yesterday",
3-
"version": "1.0.6",
3+
"version": "1.0.7",
44
"description": "Plugin that provides Yesterday journaling support to Obsidian",
55
"main": "main.js",
66
"scripts": {

src/dialogs.ts

+31-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,37 @@ import { MarkdownRenderChild, MarkdownRenderer } from "obsidian";
44
export class YesterdayDialog extends MarkdownRenderChild {
55
text: string;
66
speakersMap = new Map<string, string>();
7-
userSpeakers = ["ich", "me", "je"]; // List of user speaker identifiers
7+
userSpeakers = [ // List of user speaker identifiers
8+
"أنا", // Arabic
9+
"আমি", // Bengali
10+
"我", // Chinese
11+
"ik", // Dutch
12+
"me", // English
13+
"minä", "mä", // Finnish
14+
"moi", // French
15+
"ich", // German
16+
"εγώ", // Greek
17+
"אני", // Hebrew
18+
"मैं", // Hindi
19+
"aku", "saya", // Indonesian
20+
"私", "わたし", // Japanese
21+
"나", "저", // Korean
22+
"ego", // Latin
23+
"saya", "aku", // Malay
24+
"jeg", // Norwegian
25+
"من", // Persian
26+
"ja", // Polish
27+
"eu", // Portuguese
28+
"ਮੈਂ", // Punjabi
29+
"я", // Russian
30+
"yo", // Spanish
31+
"jag", // Swedish
32+
"ako", // Tagalog
33+
"ฉัน", "ผม", // Thai
34+
"میں", // Urdu
35+
"tôi", "mình", // Vietnamese
36+
];
37+
838
allSpeakers: Set<string> = new Set();
939
spokenYet: Set<string> = new Set();
1040
lastSpeaker: string = null;

0 commit comments

Comments
 (0)