{ "schemaVersion": 1, "metadata": { "plugin": "templater-obsidian", "version": "2.0.0", "title": "Templater", "description": "Create and use templates", "language": "zh-cn", "supportedVersions": "2.8.2", "author": "" }, "dict": { "main.js": { "ast": [], "regex": [ { "source": ".log(`Templater skipped parsing ${t.path} because file size exceeds 10000`)", "target": ".log(`Templater 跳过了解析 ${t.path},因为文件大小超过 10000`)" }, { "source": ".error(\"Templater Error:\",r.message,`\n`,r.console_msg)", "target": ".error(\"Templater Error:\",r.message,`\n`,r.console_msg)" }, { "source": ".error(n)", "target": ".error(n)" }, { "source": "name:\"applyStyles\"", "target": "name:\"应用样式\"" }, { "source": "name:\"arrow\"", "target": "name:\"箭头\"" }, { "source": "name:\"computeStyles\"", "target": "name:\"计算样式\"" }, { "source": "name:\"eventListeners\"", "target": "name:\"事件监听器\"" }, { "source": "name:\"flip\"", "target": "name:\"翻转\"" }, { "source": "name:\"hide\"", "target": "name:\"隐藏\"" }, { "source": "name:\"offset\"", "target": "name:\"偏移\"" }, { "source": "name:\"popperOffsets\"", "target": "name:\"popperOffsets\"" }, { "source": "name:\"preventOverflow\"", "target": "name:\"preventOverflow\"" }, { "source": "name:\"sameWidth\"", "target": "name:\"sameWidth\"" }, { "source": "name:\"all\"", "target": "name:\"all\"" }, { "source": "name:\"Open insert template modal\"", "target": "name:\"打开插入模板状态框\"" }, { "source": "name:\"Replace templates in the active file\"", "target": "name:\"替换活动文件中的模板\"" }, { "source": "name:\"Jump to next cursor location\"", "target": "name:\"跳转到下一个光标位置\"" }, { "source": "name:\"Create new note from template\"", "target": "name:\"从模板创建新笔记\"" }, { "source": "name:`Insert ${t}`", "target": "name:`插入 ${t}`" }, { "source": "name:\"config\"", "target": "name:\"设置\"" }, { "source": "name:\"template_file\"", "target": "name:\"模板文件\"" }, { "source": "name:\"target_file\"", "target": "name:\"目标文件\"" }, { "source": "name:\"run_mode\"", "target": "name:\"启动模板\"" }, { "source": "name:\"active_file\"", "target": "name:\"常用文件\"" }, { "source": "name:\"date\"", "target": "name:\"date\"" }, { "source": "name:\"now\"", "target": "name:\"now\"" }, { "source": "name:\"format\"", "target": "name:\"格式\"" }, { "source": "name:\"reference\"", "target": "name:\"参照\"" }, { "source": "name:\"reference_format\"", "target": "name:\"参考格式\"" }, { "source": "name:\"Date now\"", "target": "name:\"当前日期\"" }, { "source": "name:\"Date now with format\"", "target": "name:\"带格式的当前日期\"" }, { "source": "name:\"Last week\"", "target": "name:\"上周\"" }, { "source": "name:\"Next week\"", "target": "name:\"下周\"" }, { "source": "name:\"Last month\"", "target": "name:\"上个月\"" }, { "source": "name:\"Next year\"", "target": "name:\"明年\"" }, { "source": "name:\"File's title date + 1 day (tomorrow)\"", "target": "name:\"文件标题日期 + 1 day (明天)\"" }, { "source": "name:\"File's title date - 1 day (yesterday)\"", "target": "name:\"文件标题日期 - 1 day (昨天)\"" }, { "source": "name:\"tomorrow\"", "target": "name:\"明天\"" }, { "source": "name:\"Date tomorrow\"", "target": "name:\"明天的日期\"" }, { "source": "name:\"Date tomorrow with format\"", "target": "name:\"带格式的明天的日期\"" }, { "source": "name:\"yesterday\"", "target": "name:\"昨天\"" }, { "source": "name:\"Date yesterday\"", "target": "name:\"昨天的日期\"" }, { "source": "name:\"Date yesterday with format\"", "target": "name:\"带格式的昨天的日期\"" }, { "source": "name:\"weekday\"", "target": "name:\"工作日\"" }, { "source": "name:\"This week's Monday\"", "target": "name:\"本周一\"" }, { "source": "name:\"Next Monday\"", "target": "name:\"下周一\"" }, { "source": "name:\"File's title Monday\"", "target": "name:\"文件标题的星期一\"" }, { "source": "name:\"File's title previous Monday\"", "target": "name:\"文件标题上一个星期一\"" }, { "source": "name:\"Get start of month from note title\"", "target": "name:\"从笔记标题获取月份开始\"" }, { "source": "name:\"Get end of month from note title\"", "target": "name:\"从笔记标题获取月份结束\"" }, { "source": "name:\"file\"", "target": "name:\"文件\"" }, { "source": "name:\"content\"", "target": "name:\"内容\"" }, { "source": "name:\"Retrieve file content\"", "target": "name:\"检索笔记内容\"" }, { "source": "name:\"create_new\"", "target": "name:\"创建新文件\"" }, { "source": "name:\"template\"", "target": "name:\"模板\"" }, { "source": "name:\"filename\"", "target": "name:\"文件名\"" }, { "source": "name:\"open_new\"", "target": "name:\"打开新文件\"" }, { "source": "name:\"folder\"", "target": "name:\"文件夹\"" }, { "source": "name:\"File creation\"", "target": "name:\"创建文件\"" }, { "source": "name:\"File creation with template\"", "target": "name:\"使用模板创建文件\"" }, { "source": "name:\"File creation and open created note\"", "target": "name:\"文件创建并打开创建的笔记\"" }, { "source": "name:\"File creation in current folder\"", "target": "name:\"在当前文件夹中创建文件\"" }, { "source": "name:\"File creation in specified folder with string path\"", "target": "name:\"在指定文件夹中创建文件(使用字符串路径)\"" }, { "source": "name:\"File creation in specified folder with TFolder\"", "target": "name:\"在指定文件夹中创建文件(使用 TFolder)\"" }, { "source": "name:\"File creation and append link to current note\"", "target": "name:\"文件创建并将链接附加到当前笔记\"" }, { "source": "name:\"creation_date\"", "target": "name:\"创建日期\"" }, { "source": "name:\"File creation date\"", "target": "name:\"文件创建日期\"" }, { "source": "name:\"File creation date with format\"", "target": "name:\"带格式的文件创建日期\"" }, { "source": "name:\"cursor\"", "target": "name:\"光标\"" }, { "source": "name:\"order\"", "target": "name:\"顺序\"" }, { "source": "name:\"File cursor\"", "target": "name:\"文件光标\"" }, { "source": "name:\"File multi-cursor\"", "target": "name:\"文件多光标\"" }, { "source": "name:\"cursor_append\"", "target": "name:\"光标附加\"" }, { "source": "name:\"File cursor append\"", "target": "name:\"文件光标附加\"" }, { "source": "name:\"exists\"", "target": "name:\"存在\"" }, { "source": "name:\"filepath\"", "target": "name:\"文件路径\"" }, { "source": "name:\"File existence\"", "target": "name:\"文件存在性\"" }, { "source": "name:\"File existence of current file\"", "target": "name:\"当前文件的存在性\"" }, { "source": "name:\"find_tfile\"", "target": "name:\"查找tfile\"" }, { "source": "name:\"File find TFile\"", "target": "name:\"文件查找 TFile\"" }, { "source": "name:\"absolute\"", "target": "name:\"绝对\"" }, { "source": "name:\"File folder (Folder)\"", "target": "name:\"文件文件夹\"" }, { "source": "name:\"File folder with vault-absolute path (Path/To/Folder)\"", "target": "name:\"带有保管库绝对路径的文件夹(路径/到/文件夹)\"" }, { "source": "name:\"include\"", "target": "name:\"包含\"" }, { "source": "name:\"include_link\"", "target": "name:\"包含链接\"" }, { "source": "name:\"File include\"", "target": "name:\"文件包含\"" }, { "source": "name:\"File include TFile\"", "target": "name:\"文件包含 TFile\"" }, { "source": "name:\"File include section\"", "target": "name:\"文件包含节\"" }, { "source": "name:\"File include block\"", "target": "name:\"文件包含块\"" }, { "source": "name:\"last_modified_date\"", "target": "name:\"最后修改日期\"" }, { "source": "name:\"File last modified date\"", "target": "name:\"文件最后修改日期\"" }, { "source": "name:\"File last modified date with format\"", "target": "name:\"带格式的文件最后修改日期\"" }, { "source": "name:\"move\"", "target": "name:\"移动\"" }, { "source": "name:\"new_path\"", "target": "name:\"新路径\"" }, { "source": "name:\"file_to_move\"", "target": "name:\"要移动的文件\"" }, { "source": "name:\"File move\"", "target": "name:\"文件移动\"" }, { "source": "name:\"File move and rename\"", "target": "name:\"文件移动和重命名\"" }, { "source": "name:\"path\"", "target": "name:\"路径\"" }, { "source": "name:\"relative\"", "target": "name:\"相对\"" }, { "source": "name:\"File path\"", "target": "name:\"文件路径\"" }, { "source": "name:\"File relative path (relative to vault root)\"", "target": "name:\"文件相对路径(相对于保管库根目录)\"" }, { "source": "name:\"rename\"", "target": "name:\"重命名\"" }, { "source": "name:\"new_title\"", "target": "name:\"新标题\"" }, { "source": "name:\"File rename\"", "target": "name:\"文件重命名\"" }, { "source": "name:\"File append a 2 to the file name\"", "target": "name:\"文件名后附加一个2\"" }, { "source": "name:\"selection\"", "target": "name:\"选择\"" }, { "source": "name:\"File selection\"", "target": "name:\"文件选择\"" }, { "source": "name:\"tags\"", "target": "name:\"标签\"" }, { "source": "name:\"File tags\"", "target": "name:\"文件标签\"" }, { "source": "name:\"title\"", "target": "name:\"文件\"" }, { "source": "name:\"File title\"", "target": "name:\"文件标题\"" }, { "source": "name:\"Strip the Zettelkasten ID of title (if space separated)\"", "target": "name:\"去掉标题中的 Zettelkasten ID(如果用空格分隔)\"" }, { "source": "name:\"frontmatter\"", "target": "name:\"前置内容\"" }, { "source": "name:\"hooks\"", "target": "name:\"钩子\"" }, { "source": "name:\"on_all_templates_executed\"", "target": "name:\"所有模板执行时\"" }, { "source": "name:\"callback_function\"", "target": "name:\"回调函数\"" }, { "source": "name:\"obsidian\"", "target": "name:\"obsidian\"" }, { "source": "name:\"system\"", "target": "name:\"系统\"" }, { "source": "name:\"clipboard\"", "target": "name:\"剪切板\"" }, { "source": "name:\"Clipboard\"", "target": "name:\"剪切板\"" }, { "source": "name:\"prompt\"", "target": "name:\"提示\"" }, { "source": "name:\"prompt_text\"", "target": "name:\"提示文本\"" }, { "source": "name:\"default_value\"", "target": "name:\"默认值\"" }, { "source": "name:\"throw_on_cancel\"", "target": "name:\"取消时抛出\"" }, { "source": "name:\"multiline\"", "target": "name:\"多线\"" }, { "source": "name:\"Prompt\"", "target": "name:\"提示\"" }, { "source": "name:\"Prompt with default value\"", "target": "name:\"提示默认值\"" }, { "source": "name:\"Multiline prompt\"", "target": "name:\"多行提示\"" }, { "source": "name:\"suggester\"", "target": "name:\"建议器\"" }, { "source": "name:\"text_items\"", "target": "name:\"文本项\"" }, { "source": "name:\"items\"", "target": "name:\"项\"" }, { "source": "name:\"placeholder\"", "target": "name:\"占位符\"" }, { "source": "name:\"limit\"", "target": "name:\"限制\"" }, { "source": "name:\"Suggester\"", "target": "name:\"建议器\"" }, { "source": "name:\"Suggester with mapping function (same as above example)\"", "target": "name:\"带映射函数的建议器(与上面的示例相同)\"" }, { "source": "name:\"Suggester for files\"", "target": "name:\"文件建议器\"" }, { "source": "name:\"Suggester for tags\"", "target": "name:\"标签建议器\"" }, { "source": "name:\"web\"", "target": "name:\"web\"" }, { "source": "name:\"daily_quote\"", "target": "name:\"每日名言\"" }, { "source": "name:\"Daily quote\"", "target": "name:\"每日引用\"" }, { "source": "name:\"random_picture\"", "target": "name:\"随机图片\"" }, { "source": "name:\"size\"", "target": "name:\"大小\"" }, { "source": "name:\"query\"", "target": "name:\"查询\"" }, { "source": "name:\"include_size\"", "target": "name:\"包含大小\"" }, { "source": "name:\"Random picture\"", "target": "name:\"随机图片\"" }, { "source": "name:\"Random picture with size\"", "target": "name:\"带大小的随机图片\"" }, { "source": "name:\"Random picture with size and query\"", "target": "name:\"带大小和查询的随机图片\"" }, { "source": "name:\"request\"", "target": "name:\"请求\"" }, { "source": "name:\"url\"", "target": "name:\"url\"" }, { "source": "name:\"Simple request\"", "target": "name:\"简单请求\"" }, { "source": "name:\"Request with path\"", "target": "name:\"带路径的请求\"" }, { "source": "name:\"javascript\"", "target": "name:\"javascript\"" }, { "source": "description:`This module exposes Templater's running configuration.\n\nThis is mostly useful when writing scripts requiring some context information.\n`", "target": "description:`该模块公开了 Templater 的运行配置。这在编写需要一些上下文信息的脚本时非常有用。`" }, { "source": "description:\"The `TFile` object representing the template file.\"", "target": "description: \"代表模板文件的`TFile`对象\"" }, { "source": "description:\"The `TFile` object representing the target file where the template will be inserted.\"", "target": "description: \"代表目标文件的`TFile`对象。即模板将要插入的目标文件\"" }, { "source": "description:\"The `RunMode`, representing the way Templater was launched (Create new from template, Append to active file, ...).\"", "target": "description:\"`RunMode`代表 Templater 的启动方式(从模板创建新文件、追加到活动文件, ...).\"" }, { "source": "description:\"The active file (if existing) when launching Templater.\"", "target": "description:\"启动 Templater 时的活动文件(如果存在).\"" }, { "source": "description:\"This module contains every internal function related to dates.\"", "target": "description:\"该模块包含与日期相关的所有内部功能.\"" }, { "source": "description:\"Retrieves the date.\"", "target": "description:\"获取当前日期.\"" }, { "source": "description:'The format for the date. Defaults to `\"YYYY-MM-DD\"`. Refer to [format reference](https://momentjs.com/docs/#/displaying/format/).'", "target": "description:'日期的格式。默认为 `\"YYYY-MM-DD\"`。请参阅[格式参考](https://momentjs.com/docs/#/displaying/format/).'" }, { "source": "description:\"Duration to offset the date from. If a number is provided, duration will be added to the date in days. You can also specify the offset as a string using the ISO 8601 format.\"", "target": "description:\"抵消日期的持续时间。如果提供的是数字,持续时间将以天为单位加到日期上。您也可以使用 ISO 8601 格式将偏移量指定为字符串.\"" }, { "source": "description:\"The date referential, e.g. set this to the note's title.\"", "target": "description:\"日期参照,例如将其设置为注释的标题.\"" }, { "source": "description:\"The format for the reference date. Refer to [format reference](https://momentjs.com/docs/#/displaying/format/).\"", "target": "description:\"参考日期的格式。请参阅 [参考格式](https://momentjs.com/docs/#/displaying/format/).\"" }, { "source": "description:\"Retrieves tomorrow's date.\"", "target": "description:\"获取明天的日期.\"" }, { "source": "description:\"Retrieves yesterday's date.\"", "target": "description:\"获取昨天的日期.\"" }, { "source": "description:\"\",definition:'tp.date.weekday(format: string = \"", "target": "description:\"\",definition:'tp.date.weekday(format: string = \"" }, { "source": "description:\"Week day number. If the locale assigns Monday as the first day of the week, `0` will be Monday, `-7` will be last week's day.\"", "target": "description:\"星期编号。如果本地指定星期一为一周的第一天,`0 `将是星期一,`-7 `将是上周的一天.\"" }, { "source": "description:\"This module contains every internal function related to files.\"", "target": "description:\"该模块包含与文件相关的所有内部功能.\"" }, { "source": "description:\"The string contents of the file at the time that Templater was executed. Manipulating this string will *not* update the current file.\"", "target": "description:\"Templater 执行时文件的字符串内容。操作此字符串*不*会更新当前文件.\"" }, { "source": "description:\"Creates a new file using a specified template or with a specified content.\"", "target": "description:\"使用指定模板或指定内容创建新文件.\"" }, { "source": "description:\"Either the template used for the new file content, or the file content as a string. If it is the template to use, you retrieve it with `tp.file.find_tfile(TEMPLATENAME)`.\"", "target": "description:\"新文件内容使用的模板,或文件内容字符串。如果是要使用的模板,则可使用 `tp.file.find_tfile(TEMPLATENAME)` 获取.\"" }, { "source": "description:'The filename of the new file, defaults to \"Untitled\".'", "target": "description:'新文件的文件名,默认为 \"Untitled\".'" }, { "source": "description:\"Whether to open or not the newly created file. Warning: if you use this option, since commands are executed asynchronously, the file can be opened first and then other commands are appended to that new file and not the previous file.\"", "target": "description:\"是否打开新创建的文件。警告:如果使用该选项,由于命令是异步执行的,文件可能会先被打开,然后其他命令会附加到新文件,而不是之前的文件。.\"" }, { "source": "description:'The folder to put the new file in, defaults to Obsidian\\'", "target": "description:'要放入新文件的文件夹,默认为 Obsidian\\'" }, { "source": "description:\"Retrieves the file's creation date.\"", "target": "description:\"读取文件的创建日期.\"" }, { "source": "description:'The format for the date. Defaults to `\"YYYY-MM-DD HH:mm\"`. Refer to [format reference](https://momentjs.com/docs/#/displaying/format/).'", "target": "description:'日期的格式。默认为 `\"YYYY-MM-DD HH:mm\"`。请参阅[格式参考](https://momentjs.com/docs/#/displaying/format/).'" }, { "source": "description:`Sets the cursor to this location after the template has been inserted. \n\nYou can navigate between the different cursors using the configured hotkey in Obsidian settings.\n`", "target": "description:`插入模板后,将光标设置到该位置。您可以使用 Obsidian 设置中配置的热键在不同光标之间导航。`" }, { "source": "description:`The order of the different cursors jump, e.g. it will jump from 1 to 2 to 3, and so on.\nIf you specify multiple tp.file.cursor with the same order, the editor will switch to multi-cursor.\n`", "target": "description:`不同光标的跳转顺序,例如从 1 跳转到 2 再跳转到 3,以此类推。如果指定了多个具有相同顺序的 tp.file.cursor,编辑器将切换到多光标模式。`" }, { "source": "description:\"Appends some content after the active cursor in the file.\"", "target": "description:\"在文件中的活动光标后添加一些内容.\"" }, { "source": "description:\"The content to append after the active cursor.\"", "target": "description:\"要追加到活动光标后的内容.\"" }, { "source": "description:\"Check to see if a file exists by it's file path. The full path to the file, relative to the Vault and containing the extension, must be provided.\"", "target": "description:\"根据文件路径检查文件是否存在。必须提供文件的完整路径(相对于 Vault 并包含扩展名)。.\"" }, { "source": "description:\"The full file path of the file we want to check existence for.\"", "target": "description:\"我们要检查是否存在的文件的完整文件路径.\"" }, { "source": "description:\"Search for a file and returns its `TFile` instance.\"", "target": "description:\"搜索文件并返回其 `TFile` 实例.\"" }, { "source": "description:\"The filename we want to search and resolve as a `TFile`.\"", "target": "description:\"我们要搜索并解析为 `TFile` 的文件名。\"" }, { "source": "description:\"Retrieves the file's folder name.\"", "target": "description:\"检索文件的文件夹名称.\"" }, { "source": "description:\"If set to `true`, returns the vault-absolute path of the folder. If `false`, only returns the basename of the folder (the last part). Defaults to `false`.\"", "target": "description:\"如果设置为 `true`,将返回文件夹的绝对路径。如果设置为 `false`,则只返回文件夹的基名(最后一部分)。默认设置为`false`.\"" }, { "source": "description:\"Includes the file's link content. Templates in the included content will be resolved.\"", "target": "description:\"包含文件的链接内容。包含内容中的模板将得到解决.\"" }, { "source": "description:'The link to the file to include, e.g. `\"[[MyFile]]\"`, or a TFile object. Also supports sections or blocks inclusions.'", "target": "description:'要包含的文件的链接,例如`\"[[MyFile]]\"或 TFile 对象。也支持包含部分或块.'" }, { "source": "description:\"Retrieves the file's last modification date.\"", "target": "description:\"读取文件的最后修改日期.\"" }, { "source": "description:\"Moves the file to the desired vault location.\"", "target": "description:\"将文件移动到所需的存储库位置.\"" }, { "source": "description:'The new vault relative path of the file, without the file extension. Note: the new path needs to include the folder and the filename, e.g. `\"/Notes/MyNote\"`.'", "target": "description:'文件的新存储库相对路径,不含文件扩展名。注意:新路径必须包括文件夹和文件名,例如`\"/Notes/MyNote\"`.'" }, { "source": "description:\"The file to move, defaults to the current file.\"", "target": "description:\"要移动的文件,默认为当前文件.\"" }, { "source": "description:\"Retrieves the file's absolute path on the system.\"", "target": "description:\"读取文件在系统中的绝对路径.\"" }, { "source": "description:\"If set to `true`, only retrieves the vault's relative path.\"", "target": "description:\"如果设置为 `true`,则只检索保险库的相对路径.\"" }, { "source": "description:\"Renames the file (keeps the same file extension).\"", "target": "description:\"重命名文件(保持文件扩展名不变).\"" }, { "source": "description:\"The new file title.\"", "target": "description:\"新文件标题.\"" }, { "source": "description:\"Retrieves the active file's text selection.\"", "target": "description:\"读取活动文件的文本选区.\"" }, { "source": "description:\"Retrieves the file's tags (array of string).\"", "target": "description:\"读取文件的标记(字符串数组).\"" }, { "source": "description:\"Retrieves the file's title.\"", "target": "description:\"读取文件标题.\"" }, { "source": "description:\"This modules exposes all the frontmatter variables of a file as variables.\"", "target": "description:\"该模块将文件的所有前置变量作为变量公开.\"" }, { "source": "description:\"This module exposes hooks that allow you to execute code when a Templater event occurs.\"", "target": "description:\"该模块公开了钩子,允许您在 Templater 事件发生时执行代码.\"" }, { "source": "description:\"Hooks into when all actively running templates have finished executing. Most of the time this will be a single template, unless you are using `tp.file.include` or `tp.file.create_new`.\\n\\nMultiple invokations of this method will have their callback functions run in parallel.\"", "target": "description:\"当所有正在运行的模板都已执行完毕时挂钩。大多数情况下,这将是单个模板,除非你使用了 `tp.file.include` 或 `tp.file.create_new`.\"" }, { "source": "description:\"Callback function that will be executed when all actively running templates have finished executing.\"", "target": "description:\"当所有正在运行的模板执行完毕后执行的回调函数.\"" }, { "source": "description:\"This module exposes all the functions and classes from the Obsidian API.\"", "target": "description:\"该模块公开 Obsidian API 中的所有函数和类.\"" }, { "source": "description:\"This module contains system related functions.\"", "target": "description:\"该模块包含与系统相关的功能.\"" }, { "source": "description:\"Retrieves the clipboard's content.\"", "target": "description:\"读取剪贴板内容.\"" }, { "source": "description:\"Spawns a prompt modal and returns the user's input.\"", "target": "description:\"生成提示模块,并返回用户输入的内容.\"" }, { "source": "description:\"Text placed above the input field.\"", "target": "description:\"放置在输入框上方的文本.\"" }, { "source": "description:\"A default value for the input field.\"", "target": "description:\"输入字段的默认值.\"" }, { "source": "description:\"Throws an error if the prompt is canceled, instead of returning a `null` value.\"", "target": "description:\"如果取消提示,则抛出错误,而不是返回一个 `null` 值。\"" }, { "source": "description:\"If set to `true`, the input field will be a multiline textarea. Defaults to `false`.\"", "target": "description:\"如果设置为 `true`,输入框将是一个多行文本区。默认为 `false`.\"" }, { "source": "description:\"Spawns a suggester prompt and returns the user's chosen item.\"", "target": "description:\"生成建议器提示,并返回用户选择的项目.\"" }, { "source": "description:\"Array of strings representing the text that will be displayed for each item in the suggester prompt. This can also be a function that maps an item to its text representation.\"", "target": "description:\"数组字符串,代表建议程序提示符中每个项目将显示的文本。这也可以是一个将项目映射到其文本表示的函数.\"" }, { "source": "description:\"Array containing the values of each item in the correct order.\"", "target": "description:\"包含按正确顺序排列的各项目值的数组.\"" }, { "source": "description:\"Placeholder string of the prompt.\"", "target": "description:\"提示字符串的占位符.\"" }, { "source": "description:\"Limit the number of items rendered at once (useful to improve performance when displaying large lists).\"", "target": "description:\"限制一次呈现的条目的数量(在显示大型列表时有助于提高性能).\"" }, { "source": "description:\"This modules contains every internal function related to the web (making web requests).\"", "target": "description:\"该模块包含与网络有关的所有内部功能(进行网络请求).\"" }, { "source": "description:\"Retrieves and parses the daily quote from the API `https://api.quotable.io` as a callout.\"", "target": "description:\"从API `https://api.quotable.io` 获取并解析每日名言.\"" }, { "source": "description:\"Gets a random image from `https://unsplash.com/`.\"", "target": "description:\"从此获取一张随机图片 `https://unsplash.com/`获取一张随机图片.\"" }, { "source": "description:\"Image size in the format `x`.\"", "target": "description:\"格式中的图像大小 `x`.\"" }, { "source": "description:\"Limits selection to photos matching a search term. Multiple search terms can be passed separated by a comma.\"", "target": "description:\"仅限选择与搜索条件匹配的照片。可用逗号分隔多个搜索词.\"" }, { "source": "description:\"Optional argument to include the specified size in the image link markdown. Defaults to false.\"", "target": "description:\"可选参数,用于在图片链接标记中包含指定尺寸。默认为 false.\"" }, { "source": "description:\"Makes a HTTP request to the specified URL. Optionally, you can specify a path to extract specific data from the response.\"", "target": "description:\"向指定的 URL 发送 HTTP 请求。可选择指定路径,以便从响应中提取特定数据.\"" }, { "source": "description:\"The URL to which the HTTP request will be made.\"", "target": "description:\"发出 HTTP 请求的 URL.\"" }, { "source": "description:\"A path within the response JSON to extract specific data.\"", "target": "description:\"在响应 JSON 中提取特定数据的路径.\"" }, { "source": "description:\"\",example:\"", "target": "description:\"\",example:\"" }, { "source": "text:\"reference\"", "target": "text:\"参照\"" }, { "source": "text:\"tp.file.cursor\"", "target": "text:\"tp.file.cursor\"" }, { "source": "text:\"empty \"", "target": "text:\"empty \"" }, { "source": "text:\"/\"", "target": "text:\"/\"" }, { "source": "text:\"empty\"", "target": "text:\"empty\"" }, { "source": "text:\".*\"", "target": "text:\".*\"" }, { "source": "text:`tp.user.${s.basename}`", "target": "text:`tp.user.${s.basename}`" }, { "source": "text:\"User function n\\xB0\"", "target": "text:\"用户函数 n\\xB0\"" }, { "source": ".setButtonText(\"Add new hotkey for template\")", "target": ".setButtonText(\"为模板添加新快捷键\")" }, { "source": ".setButtonText(\"Add new folder template\")", "target": ".setButtonText(\"添加新文件夹模板\")" }, { "source": ".setButtonText(\"Add new file regex\")", "target": ".setButtonText(\"添加新的文件正则表达式\")" }, { "source": ".setButtonText(\"Add new startup template\")", "target": ".setButtonText(\"添加新的启动模板\")" }, { "source": ".setButtonText(\"Add new user function\")", "target": ".setButtonText(\"添加新用户功能\")" }, { "source": ".setButtonText(\"Submit\")", "target": ".setButtonText(\"提交\")" }, { "source": ".setName(\"Template folder location\")", "target": ".setName(\"模板文件夹位置\")" }, { "source": ".setName(\"Internal variables and functions\")", "target": ".setName(\"内部变量和函数\")" }, { "source": ".setName(\"Syntax highlighting on desktop\")", "target": ".setName(\"桌面语法高亮\")" }, { "source": ".setName(\"Syntax highlighting on mobile\")", "target": ".setName(\"移动设备上的语法高亮显示\")" }, { "source": ".setName(\"Automatic jump to cursor\")", "target": ".setName(\"自动跳转到光标\")" }, { "source": ".setName(\"Trigger Templater on new file creation\")", "target": ".setName(\"创建新文件时触发模板程序\")" }, { "source": ".setName(\"Template hotkeys\")", "target": ".setName(\"模板 hotkeys\")" }, { "source": ".setName(\"Folder templates\")", "target": ".setName(\"文件夹模板\")" }, { "source": ".setName(\"Enable folder templates\")", "target": ".setName(\"启用文件夹模板\")" }, { "source": ".setName(\"File Regex Templates\")", "target": ".setName(\"文件正则表达式模板\")" }, { "source": ".setName(\"Enable File Regex Templates\")", "target": ".setName(\"启用文件正则表达式模板\")" }, { "source": ".setName(\"Startup templates\")", "target": ".setName(\"启动模板\")" }, { "source": ".setName(\"User script functions\")", "target": ".setName(\"用户脚本功能\")" }, { "source": ".setName(\"Script files folder location\")", "target": ".setName(\"脚本文件文件夹位置\")" }, { "source": ".setName(\"User system command functions\")", "target": ".setName(\"用户系统指令功能\")" }, { "source": ".setName(\"Enable user system command functions\")", "target": ".setName(\"启用用户系统指令功能\")" }, { "source": ".setName(\"Timeout\")", "target": ".setName(\"超时\")" }, { "source": ".setName(\"Shell binary location\")", "target": ".setName(\"外壳二进制位置\")" }, { "source": ".setName(\"Donate\")", "target": ".setName(\"捐赠\")" }, { "source": ".setDesc(\"Files in this folder will be available as templates.\")", "target": ".setDesc(\"该文件夹中的文件可作为模板使用.\")" }, { "source": ".setDesc(\"Maximum timeout in seconds for a system command.\")", "target": ".setDesc(\"系统命令的最长超时时间(以秒为单位)\")" }, { "source": ".setDesc(\"If you like this Plugin, consider donating to support continued development.\")", "target": ".setDesc(\"如果您喜欢此插件,请考虑捐赠以支持持续开发.\")" }, { "source": ".setPlaceholder(\"Example: folder1/folder2\")", "target": ".setPlaceholder(\"Example: folder1/folder2\")" }, { "source": ".setPlaceholder(\"Example: folder1/template_file\")", "target": ".setPlaceholder(\"Example: folder1/template_file\")" }, { "source": ".setPlaceholder(\"Folder\")", "target": ".setPlaceholder(\"文件夹\")" }, { "source": ".setPlaceholder(\"Template\")", "target": ".setPlaceholder(\"模板\")" }, { "source": ".setPlaceholder(\"File Regex\")", "target": ".setPlaceholder(\"文件正则表达式\")" }, { "source": ".setPlaceholder(\"Timeout\")", "target": ".setPlaceholder(\"超时\")" }, { "source": ".setPlaceholder(\"Example: /bin/bash, ...\")", "target": ".setPlaceholder(\"Example: /bin/bash, ...\")" }, { "source": ".setPlaceholder(\"Function name\")", "target": ".setPlaceholder(\"功能名称\")" }, { "source": ".setPlaceholder(\"System command\")", "target": ".setPlaceholder(\"系统指令\")" }, { "source": ".setPlaceholder(\"Type name of a template...\")", "target": ".setPlaceholder(\"模板类型名称...\")" }, { "source": ".setPlaceholder(\"Type text here\")", "target": ".setPlaceholder(\"在此输入文字\")" }, { "source": ".setTooltip(\"Configure Hotkey\")", "target": ".setTooltip(\"配置快捷键\")" }, { "source": ".setTooltip(\"Move up\")", "target": ".setTooltip(\"上移\")" }, { "source": ".setTooltip(\"Move down\")", "target": ".setTooltip(\"下移\")" }, { "source": ".setTooltip(\"Delete\")", "target": ".setTooltip(\"删除\")" }, { "source": ".setTooltip(\"Add additional folder template\")", "target": ".setTooltip(\"添加额外的文件夹模板\")" }, { "source": ".setTooltip(\"Add additional file regex\")", "target": ".setTooltip(\"添加额外的文件 regex\")" }, { "source": ".setTooltip(\"Refresh\")", "target": ".setTooltip(\"刷新\")" }, { "source": ".setTitle(\"Create new note from template\")", "target": ".setTitle(\"从模板创建新便笺\")" }, { "source": ".append(\"Templater provides multiples predefined variables / functions that you can use.\",e.createEl(\"br\"),\"Check the \",e.createEl(\"a\",{href:\"https://silentvoid13.github.io/Templater/\",text:\"documentation\"}),\" to get a list of all the available internal variables / functions.\")", "target": ".append(\"Templater 提供了多个预定义的变量/函数供你使用。\",e.createEl(\"br\"),\"请查看 \",e.createEl(\"a\",{href:\"https://silentvoid13.github.io/Templater/\",text:\"文档\"}),\" 获取所有可用的内部变量/函数列表。\")" }, { "source": ".append(\"Adds syntax highlighting for Templater commands in edit mode.\")", "target": ".append(\"在编辑模式下为 Templater 命令添加语法高亮。\")" }, { "source": ".append(\"Adds syntax highlighting for Templater commands in edit mode on mobile. Use with caution: this may break live preview on mobile platforms.\")", "target": ".append(\"在移动端编辑模式下为 Templater 命令添加语法高亮。请谨慎使用:这可能会导致移动端的实时预览功能出现问题。\")" }, { "source": ".append(\"Automatically triggers \",e.createEl(\"code\",{text:\"tp.file.cursor\"}),\" after inserting a template.\",e.createEl(\"br\"),\"You can also set a hotkey to manually trigger \",e.createEl(\"code\",{text:\"tp.file.cursor\"}),\".\")", "target": ".append(\"在插入模板后会自动触发 \",e.createEl(\"code\",{text:\"tp.file.cursor\"}),\"。\",e.createEl(\"br\"),\"你也可以设置一个快捷键来手动触发 \",e.createEl(\"code\",{text:\"tp.file.cursor\"}),\"。\")" }, { "source": ".append(\"Template hotkeys allows you to bind a template to a hotkey.\")", "target": ".append(\"模板快捷键允许你将某个模板绑定到一个快捷键上。\")" }, { "source": ".append(\"Startup templates are templates that will get executed once when Templater starts.\",e.createEl(\"br\"),\"These templates won't output anything.\",e.createEl(\"br\"),\"This can be useful to set up templates adding hooks to Obsidian events for example.\")", "target": ".append(\"启动模板是在 Templater 启动时执行一次的模板。\",e.createEl(\"br\"),\"这些模板不会输出任何东西。\",e.createEl(\"br\"),\"例如,这对于设置向 Obsidian 事件添加钩子函数(hooks)的模板很有用。\",e.createEl(\"br\"),\"(这段的意思是:在 Obsidian 的 Templater 插件中,“启动模板” 的功能可以用于在 Obsidian 启动时自动执行一些预定义的操作,而这些操作不会有任何直接输出结果。比如,你可以使用这些模板来为 Obsidian 的特定事件(如文件打开、保存等)设置钩子函数(hooks)。钩子函数是一种在特定事件发生时触发的代码。通过这种方式,你可以在 Obsidian 运行时自动完成一些自定义操作。简单来说,就是利用启动模板,在 Obsidian 启动时自动执行特定任务或设置,而无需手动操作。)\")" }, { "source": ".append(\"All JavaScript files in this folder will be loaded as CommonJS modules, to import custom user functions.\",e.createEl(\"br\"),\"The folder needs to be accessible from the vault.\",e.createEl(\"br\"),\"Check the \",e.createEl(\"a\",{href:\"https://silentvoid13.github.io/Templater/\",text:\"documentation\"}),\" for more information.\")", "target": ".append(\"此文件夹中的所有 JavaScript 文件将作为 CommonJS 模块加载,以导入自定义用户函数。\",e.createEl(\"br\"),\"这个文件夹需要能够从保管库中访问。\",e.createEl(\"br\"),\"请查看 \",e.createEl(\"a\",{href:\"https://silentvoid13.github.io/Templater/\",text:\"文档\"}),\" 以获取更多信息。\")" }, { "source": ".append(\"Allows you to create user functions linked to system commands.\",e.createEl(\"br\"),e.createEl(\"b\",{text:\"Warning: \"}),\"It can be dangerous to execute arbitrary system commands from untrusted sources. Only run system commands that you understand, from trusted sources.\")", "target": ".append(\"允许您创建链接到系统命令的用户函数。\",e.createEl(\"br\"),e.createEl(\"b\",{text:\"警告: \"}),\"从不可信的来源执行任意的系统命令可能是危险的。只能从可信来源运行您理解的系统命令。\")" }, { "source": ".append(\"Templater will listen for the new file creation event, and, if it matches a rule you've set, replace every command it finds in the new file's content. \",\"This makes Templater compatible with other plugins like the Daily note core plugin, Calendar plugin, Review plugin, Note refactor plugin, etc. \",e.createEl(\"br\"),e.createEl(\"br\"),\"Make sure to set up rules under either Folder Templates or File Regex Template below.\",e.createEl(\"br\"),e.createEl(\"br\"),e.createEl(\"b\",{text:\"Warning: \"}),\"This can be dangerous if you create new files with unknown / unsafe content on creation. Make sure that every new file's content is safe on creation.\")", "target": ".append(\"Templater 会监听新文件创建事件,如果新文件符合你设置的规则,就会替换其内容中的所有命令。\",\"这使得 Templater 能与其他插件兼容,例如 Daily Note 核心插件、Calendar 插件、Review 插件、Note Refactor 插件等。 \",e.createEl(\"br\"),e.createEl(\"br\"),\"确保在下面的文件夹模板或文件正则表达式模板下设置规则。\",e.createEl(\"br\"),e.createEl(\"br\"),e.createEl(\"b\",{text:\"警告:\"}),\"如果创建的新文件中包含未知或不安全的内容,这可能会带来风险。请确保每个新文件的内容在创建时是安全的。\")" }, { "source": ".append(\"File Regex Templates are triggered when a new \",e.createEl(\"strong\",{text:\"empty\"}),\" file is created that matches one of them. Templater will fill the empty file with the specified template.\"", "target": ".append(\"当有新的 \",e.createEl(\"strong\",{text:\"empty\"}),\" 创建与其中一个匹配的文件。Templater将用指定的模板填充空文件。\"" }, { "source": ",\"The deepest match is used. A global default template would be defined on the root \"", "target": ",\"使用最深的匹配。将在根上定义全局默认模板 \"" }, { "source": ".append(\"When enabled, Templater will make use of the folder templates defined below. This option is mutually exclusive with File Regex Templates below, so enabling one will disable the other.\")", "target": ".append(\"启用后,Templater将使用下面定义的文件夹模板。此选项与下面的文件正则表达式模板是互斥的,因此启用一个将禁用另一个。\")" }, { "source": ".append(\"File Regex Templates are triggered when a new \",e.createEl(\"strong\",{text:\"empty\"}),\" file is created that matches one of them. Templater will fill the empty file with the specified template.\",e.createEl(\"br\"),\"The first match from the top is used, so the order of the rules is important.\",e.createEl(\"br\"),\"Use \",e.createEl(\"code\",{text:\".*\"}),\" as a final catch-all, if you need it.\")", "target": ".append(\"当有新的 \",e.createEl(\"strong\",{text:\"empty\"}),\" 创建与其中一个匹配的文件。Templater将用指定的模板填充空文件。\",e.createEl(\"br\"),\"使用从上到下的第一场比赛,因此规则的顺序很重要。\",e.createEl(\"br\"),\"Use \",e.createEl(\"code\",{text:\".*\"}),\" 如果你需要的话,这是最后的全部。\")" }, { "source": ".append(\"When enabled, Templater will make use of the file regex templates defined below. This option is mutually exclusive with Folder Templates above, so enabling one will disable the other.\")", "target": ".append(\"启用后,Templater将使用下面定义的文件正则表达式模板。此选项与上述文件夹模板互斥,因此启用一个将禁用另一个。\")" }, { "source": ".append(\"Folder Templates are triggered when a new \",e.createEl(\"strong\",{text:\"empty \"}),\"file is created in a given folder.\"", "target": ".append(\"当有新的 \",e.createEl(\"strong\",{text:\"empty \"}),\"文件是在给定的文件夹中创建的。\"" }, { "source": ",\"Templater will fill the empty file with the specified template.\"", "target": ",\"Templater将用指定的模板填充空文件。\"" }, { "source": ",\"The first match from the top is used, so the order of the rules is important.\"", "target": ",\"使用从上到下的第一场比赛,因此规则的顺序很重要。\"" }, { "source": ",\"Use \",e.createEl(\"code\",{text:\".*\"}),\" as a final catch-all, if you need it.\")", "target": ",\"使用 \",e.createEl(\"code\",{text:\".*\"}),\" 如果你需要的话,这是最后的全部。\")" }, { "source": "\"Example: folder1/template_file\"", "target": "\"示例: 文件夹/模板文件\"" }, { "source": "(\"Example: folder1/folder2\")", "target": "(\"示例: 1级文件夹/2级文件夹\")" }, { "source": "(\"Example: /bin/bash, ...\")", "target": "(\"示例: /bin/bash, ...\")" }, { "source": "\"No user scripts detected\"", "target": "\"未检测到用户脚本\"" }, { "source": "\"No user scripts folder set\"", "target": "\"未设置用户脚本文件夹\"" } ] } } }