generated from obsidianmd/obsidian-sample-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
114 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
{ | ||
"id": "metadata-icon", | ||
"name": "Metadata Icon", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"minAppVersion": "0.15.0", | ||
"description": "Change metadata entry icon", | ||
"author": "Benature", | ||
"authorUrl": "https://github.com/Benature", | ||
"fundingUrl": "https://www.buymeacoffee.com/benature", | ||
"fundingUrl": { | ||
"Buy Me a Coffee": "https://www.buymeacoffee.com/benature", | ||
"爱发电": "https://afdian.net/a/Benature-K", | ||
"微信/支付宝": "https://s2.loli.net/2024/01/30/jQ9fTSyBxvXRoOM.png" | ||
}, | ||
"isDesktopOnly": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { LocalProperty } from "./types"; | ||
|
||
export const EN: LocalProperty = { | ||
settingAddIconName: "Add custom entry icon", | ||
settingAddIconDesc: "Input entry name and icon url. The image will be automatically loaded on the left side. If there is no image shown on the left side, please check the image link.", | ||
settingAddIconTooltip: "Add new icon", | ||
settingAddIconDescElSpan: "icon preview:", | ||
settingAddIconPlaceholderEntry: "entry name", | ||
settingAddIconPlaceholderImage: "image link", | ||
settingRemoveIconTooltip: "Delete", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { EN } from "./en"; | ||
import { LocalProperty } from "./types"; | ||
import { ZH } from "./zh"; | ||
import { ZHtw } from "./zh-tw"; | ||
|
||
export class Locals { | ||
|
||
static get(): LocalProperty { | ||
const lang = window.localStorage.getItem("language"); | ||
switch (lang) { | ||
case "zh": | ||
return ZH; | ||
case "zh-tw": | ||
return ZHtw; | ||
default: | ||
return EN; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export interface LocalProperty { | ||
settingAddIconName: string; | ||
settingAddIconDesc: string; | ||
settingAddIconTooltip: string; | ||
settingAddIconDescElSpan: string; | ||
settingAddIconPlaceholderEntry: string; | ||
settingAddIconPlaceholderImage: string; | ||
settingRemoveIconTooltip: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { LocalProperty } from "./types"; | ||
|
||
export const ZHtw: LocalProperty = { | ||
settingAddIconName: "新增自定義圖示", | ||
settingAddIconDesc: "輸入文件屬性名稱和圖示鏈接。圖示將在左側自動預覽,如果左側沒有顯示圖片,請檢查圖片鏈接是否正確。", | ||
settingAddIconTooltip: "新增圖示", | ||
settingAddIconDescElSpan: "圖示預覽:", | ||
settingAddIconPlaceholderEntry: "文件屬性名稱", | ||
settingAddIconPlaceholderImage: "圖示鏈接", | ||
settingRemoveIconTooltip: "删除", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { LocalProperty } from "./types"; | ||
|
||
export const ZH: LocalProperty = { | ||
settingAddIconName: "添加自定义图标", | ||
settingAddIconDesc: "输入文档属性名称和图标链接。图标将在左侧自动预览,如果左侧没有显示图片,请检查图片链接是否正确。", | ||
settingAddIconTooltip: "添加新图标", | ||
settingAddIconDescElSpan: "图标预览:", | ||
settingAddIconPlaceholderEntry: "文档属性名称", | ||
settingAddIconPlaceholderImage: "图标链接", | ||
settingRemoveIconTooltip: "删除", | ||
} |