Skip to content

Commit

Permalink
Added support for additional dialog languages
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikmayer committed Mar 1, 2024
1 parent 3de4223 commit b6d5dc4
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ Yesterday extends [Markdown](https://www.markdownguide.org/basic-syntax/) with s
- dreams
- media [content blocks](https://ia.net/writer/support/library/content-blocks)

#### Edit Mode
Learn more [here](https://mitado.notion.site/How-to-write-d3d76812fdef4bf3aa48d727d53c6e0d)

#### Example

```
---
Expand Down Expand Up @@ -51,11 +53,9 @@ While walking home, Karen shared a joke that unexpectedly lightened the mood:
.Patient: 😳
```

#### View Mode

![Example rendering](https://ik.imagekit.io/mitado/obsidian-yesterday-example_yuoXeej6j.png?updatedAt=1708879259580)

Clicking on any image shows a larger version.
Click on any image to show a larger version.

### Journal Vault

Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"id": "yesterday",
"name": "Yesterday",
"version": "1.0.6",
"version": "1.0.7",
"minAppVersion": "0.12.0",
"description": "Transform your notes into a visually stunning diary.",
"description": "Transform your notes into a visually stunning diary, integrating dialogs, chat logs, and media content blocks for a seamless journaling experience.",
"author": "Dominik Mayer",
"authorUrl": "https://www.yesterday.md",
"isDesktopOnly": false
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-yesterday",
"version": "1.0.6",
"version": "1.0.7",
"description": "Plugin that provides Yesterday journaling support to Obsidian",
"main": "main.js",
"scripts": {
Expand Down
32 changes: 31 additions & 1 deletion src/dialogs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,37 @@ import { MarkdownRenderChild, MarkdownRenderer } from "obsidian";
export class YesterdayDialog extends MarkdownRenderChild {
text: string;
speakersMap = new Map<string, string>();
userSpeakers = ["ich", "me", "je"]; // List of user speaker identifiers
userSpeakers = [ // List of user speaker identifiers
"أنا", // Arabic
"আমি", // Bengali
"我", // Chinese
"ik", // Dutch
"me", // English
"minä", "mä", // Finnish
"moi", // French
"ich", // German
"εγώ", // Greek
"אני", // Hebrew
"मैं", // Hindi
"aku", "saya", // Indonesian
"私", "わたし", // Japanese
"나", "저", // Korean
"ego", // Latin
"saya", "aku", // Malay
"jeg", // Norwegian
"من", // Persian
"ja", // Polish
"eu", // Portuguese
"ਮੈਂ", // Punjabi
"я", // Russian
"yo", // Spanish
"jag", // Swedish
"ako", // Tagalog
"ฉัน", "ผม", // Thai
"میں", // Urdu
"tôi", "mình", // Vietnamese
];

allSpeakers: Set<string> = new Set();
spokenYet: Set<string> = new Set();
lastSpeaker: string = null;
Expand Down

0 comments on commit b6d5dc4

Please sign in to comment.