From d9d3091d421e21f4dec1246bf1df07c002505afd Mon Sep 17 00:00:00 2001 From: "hexo-crowdin[bot]" <159447924+hexo-crowdin[bot]@users.noreply.github.com> Date: Tue, 16 Jun 2026 03:52:02 +0000 Subject: [PATCH] l10n: New translations from Crowdin --- source/fa/api/box.md | 62 ++ source/fa/api/console.md | 75 ++ source/fa/api/deployer.md | 15 + source/fa/api/events.md | 54 ++ source/fa/api/filter.md | 226 +++++ source/fa/api/generator.md | 111 +++ source/fa/api/helper.md | 52 ++ source/fa/api/index.md | 75 ++ source/fa/api/injector.md | 141 +++ source/fa/api/locals.md | 46 + source/fa/api/migrator.md | 15 + source/fa/api/posts.md | 62 ++ source/fa/api/processor.md | 15 + source/fa/api/renderer.md | 86 ++ source/fa/api/rendering.md | 80 ++ source/fa/api/router.md | 75 ++ source/fa/api/scaffolds.md | 21 + source/fa/api/tag.md | 169 ++++ source/fa/api/themes.md | 37 + source/fa/docs/asset-folders.md | 55 ++ source/fa/docs/commands.md | 202 ++++ source/fa/docs/configuration.md | 312 +++++++ source/fa/docs/contributing.md | 111 +++ source/fa/docs/data-files.md | 31 + source/fa/docs/front-matter.md | 75 ++ source/fa/docs/generating.md | 28 + source/fa/docs/github-pages.md | 111 +++ source/fa/docs/gitlab-pages.md | 45 + source/fa/docs/helpers.md | 981 ++++++++++++++++++++ source/fa/docs/index.md | 111 +++ source/fa/docs/internationalization.md | 57 ++ source/fa/docs/migration.md | 73 ++ source/fa/docs/one-command-deployment.md | 252 +++++ source/fa/docs/permalinks.md | 86 ++ source/fa/docs/plugins.md | 77 ++ source/fa/docs/server.md | 41 + source/fa/docs/setup.md | 69 ++ source/fa/docs/syntax-highlight.md | 294 ++++++ source/fa/docs/tag-plugins.md | 493 ++++++++++ source/fa/docs/templates.md | 110 +++ source/fa/docs/themes.md | 83 ++ source/fa/docs/troubleshooting.md | 294 ++++++ source/fa/docs/variables.md | 103 ++ source/fa/docs/writing.md | 74 ++ source/fa/index.md | 41 + source/tr/api/box.md | 62 ++ source/tr/api/console.md | 75 ++ source/tr/api/deployer.md | 15 + source/tr/api/events.md | 54 ++ source/tr/api/filter.md | 226 +++++ source/tr/api/generator.md | 111 +++ source/tr/api/helper.md | 52 ++ source/tr/api/index.md | 75 ++ source/tr/api/injector.md | 141 +++ source/tr/api/locals.md | 46 + source/tr/api/migrator.md | 15 + source/tr/api/posts.md | 62 ++ source/tr/api/processor.md | 15 + source/tr/api/renderer.md | 86 ++ source/tr/api/rendering.md | 80 ++ source/tr/api/router.md | 75 ++ source/tr/api/scaffolds.md | 21 + source/tr/api/tag.md | 169 ++++ source/tr/api/themes.md | 37 + source/tr/docs/asset-folders.md | 55 ++ source/tr/docs/commands.md | 202 ++++ source/tr/docs/configuration.md | 312 +++++++ source/tr/docs/contributing.md | 111 +++ source/tr/docs/data-files.md | 31 + source/tr/docs/front-matter.md | 75 ++ source/tr/docs/generating.md | 28 + source/tr/docs/github-pages.md | 111 +++ source/tr/docs/gitlab-pages.md | 45 + source/tr/docs/helpers.md | 981 ++++++++++++++++++++ source/tr/docs/index.md | 111 +++ source/tr/docs/internationalization.md | 57 ++ source/tr/docs/migration.md | 73 ++ source/tr/docs/one-command-deployment.md | 252 +++++ source/tr/docs/permalinks.md | 86 ++ source/tr/docs/plugins.md | 77 ++ source/tr/docs/server.md | 41 + source/tr/docs/setup.md | 69 ++ source/tr/docs/syntax-highlight.md | 294 ++++++ source/tr/docs/tag-plugins.md | 493 ++++++++++ source/tr/docs/templates.md | 110 +++ source/tr/docs/themes.md | 83 ++ source/tr/docs/troubleshooting.md | 294 ++++++ source/tr/docs/variables.md | 103 ++ source/tr/docs/writing.md | 74 ++ source/tr/index.md | 41 + source/zh-cn/docs/one-command-deployment.md | 2 +- 91 files changed, 11253 insertions(+), 1 deletion(-) create mode 100644 source/fa/api/box.md create mode 100644 source/fa/api/console.md create mode 100644 source/fa/api/deployer.md create mode 100644 source/fa/api/events.md create mode 100644 source/fa/api/filter.md create mode 100644 source/fa/api/generator.md create mode 100644 source/fa/api/helper.md create mode 100644 source/fa/api/index.md create mode 100644 source/fa/api/injector.md create mode 100644 source/fa/api/locals.md create mode 100644 source/fa/api/migrator.md create mode 100644 source/fa/api/posts.md create mode 100644 source/fa/api/processor.md create mode 100644 source/fa/api/renderer.md create mode 100644 source/fa/api/rendering.md create mode 100644 source/fa/api/router.md create mode 100644 source/fa/api/scaffolds.md create mode 100644 source/fa/api/tag.md create mode 100644 source/fa/api/themes.md create mode 100644 source/fa/docs/asset-folders.md create mode 100644 source/fa/docs/commands.md create mode 100644 source/fa/docs/configuration.md create mode 100644 source/fa/docs/contributing.md create mode 100644 source/fa/docs/data-files.md create mode 100644 source/fa/docs/front-matter.md create mode 100644 source/fa/docs/generating.md create mode 100644 source/fa/docs/github-pages.md create mode 100644 source/fa/docs/gitlab-pages.md create mode 100644 source/fa/docs/helpers.md create mode 100644 source/fa/docs/index.md create mode 100644 source/fa/docs/internationalization.md create mode 100644 source/fa/docs/migration.md create mode 100644 source/fa/docs/one-command-deployment.md create mode 100644 source/fa/docs/permalinks.md create mode 100644 source/fa/docs/plugins.md create mode 100644 source/fa/docs/server.md create mode 100644 source/fa/docs/setup.md create mode 100644 source/fa/docs/syntax-highlight.md create mode 100644 source/fa/docs/tag-plugins.md create mode 100644 source/fa/docs/templates.md create mode 100644 source/fa/docs/themes.md create mode 100644 source/fa/docs/troubleshooting.md create mode 100644 source/fa/docs/variables.md create mode 100644 source/fa/docs/writing.md create mode 100644 source/fa/index.md create mode 100644 source/tr/api/box.md create mode 100644 source/tr/api/console.md create mode 100644 source/tr/api/deployer.md create mode 100644 source/tr/api/events.md create mode 100644 source/tr/api/filter.md create mode 100644 source/tr/api/generator.md create mode 100644 source/tr/api/helper.md create mode 100644 source/tr/api/index.md create mode 100644 source/tr/api/injector.md create mode 100644 source/tr/api/locals.md create mode 100644 source/tr/api/migrator.md create mode 100644 source/tr/api/posts.md create mode 100644 source/tr/api/processor.md create mode 100644 source/tr/api/renderer.md create mode 100644 source/tr/api/rendering.md create mode 100644 source/tr/api/router.md create mode 100644 source/tr/api/scaffolds.md create mode 100644 source/tr/api/tag.md create mode 100644 source/tr/api/themes.md create mode 100644 source/tr/docs/asset-folders.md create mode 100644 source/tr/docs/commands.md create mode 100644 source/tr/docs/configuration.md create mode 100644 source/tr/docs/contributing.md create mode 100644 source/tr/docs/data-files.md create mode 100644 source/tr/docs/front-matter.md create mode 100644 source/tr/docs/generating.md create mode 100644 source/tr/docs/github-pages.md create mode 100644 source/tr/docs/gitlab-pages.md create mode 100644 source/tr/docs/helpers.md create mode 100644 source/tr/docs/index.md create mode 100644 source/tr/docs/internationalization.md create mode 100644 source/tr/docs/migration.md create mode 100644 source/tr/docs/one-command-deployment.md create mode 100644 source/tr/docs/permalinks.md create mode 100644 source/tr/docs/plugins.md create mode 100644 source/tr/docs/server.md create mode 100644 source/tr/docs/setup.md create mode 100644 source/tr/docs/syntax-highlight.md create mode 100644 source/tr/docs/tag-plugins.md create mode 100644 source/tr/docs/templates.md create mode 100644 source/tr/docs/themes.md create mode 100644 source/tr/docs/troubleshooting.md create mode 100644 source/tr/docs/variables.md create mode 100644 source/tr/docs/writing.md create mode 100644 source/tr/index.md diff --git a/source/fa/api/box.md b/source/fa/api/box.md new file mode 100644 index 0000000000..5b14bc6b2f --- /dev/null +++ b/source/fa/api/box.md @@ -0,0 +1,62 @@ +--- +title: Box +--- + +Box is a container used for processing files in a specified folder. Hexo uses two different boxes: `hexo.source` and `hexo.theme`. The former is used to process the `source` folder and the latter to process the `theme` folder. + +## Load Files + +Box provides two methods for loading files: `process` and `watch`. `process` loads all files in the folder. `watch` does the same, but also starts watching for file changes. + +```js +box.process().then(function () { + // ... +}); + +box.watch().then(function () { + // You can call box.unwatch() later to stop watching. +}); +``` + +## Path Matching + +Box provides many ways for path matching. You can use a regular expression, a function or an Express-style pattern string. For example: + +```plain +posts/:id => posts/89 +posts/*path => posts/2015/title +``` + +See [util.Pattern][] for more info. + +## Processors + +A processor is an essential element of Box and is used to process files. You can use path matching as described above to restrict what exactly the processor should process. Register a new processor with the `addProcessor` method. + +```js +box.addProcessor("posts/:id", function (file) { + // +}); +``` + +Box passes the content of matched files to processors. This information can then be read straight from the `file` argument in the callback: + +| Attribute | Description | +| --------- | ----------------------------------------------------------------- | +| `source` | Full path of the file | +| `path` | Relative path to the box of the file | +| `type` | File type. The value can be `create`, `update`, `skip`, `delete`. | +| `params` | The information from path matching. | + +Box also provides some methods so you don't have to do file IO by yourself. + +| Method | Description | +| ------------ | --------------------------------------- | +| `read` | Read a file | +| `readSync` | Read a file synchronously | +| `stat` | Read the status of a file | +| `statSync` | Read the status of a file synchronously | +| `render` | Render a file | +| `renderSync` | Render a file synchronously | + +[util.Pattern]: https://github.com/hexojs/hexo-util#patternrule diff --git a/source/fa/api/console.md b/source/fa/api/console.md new file mode 100644 index 0000000000..5c94dd2458 --- /dev/null +++ b/source/fa/api/console.md @@ -0,0 +1,75 @@ +--- +title: Console +--- + +The console forms the bridge between Hexo and its users. It registers and describes the available console commands. + +## Synopsis + +```js +hexo.extend.console.register(name, desc, options, function (args) { + // ... +}); +``` + +| Argument | Description | +| --------- | ----------- | +| `name` | Name | +| `desc` | Description | +| `options` | Options | + +An argument `args` will be passed into the function. This is the argument that users type into the terminal. It's parsed by [Minimist][]. + +## Options + +### usage + +The usage of a console command. For example: + +```js +{ + usage: "[layout]
Test
+``` + +See [Rendering](https://hexo.io/api/rendering) for more details. + +### word_wrap + +Wraps text into lines no longer than `length`. `length` is 80 by default. + +```js +<%- word_wrap(str, [length]) %> +``` + +**Examples:** + +```js +<%- word_wrap('Once upon a time', 8) %> +// Once upon\n a time +``` + +### truncate + +Truncates text after certain `length`. Default is 30 characters. + +```js +<%- truncate(text, [options]) %> +``` + +**Examples:** + +```js +<%- truncate('Once upon a time in a world far far away', {length: 17}) %> +// Once upon a ti... + +<%- truncate('Once upon a time in a world far far away', {length: 17, separator: ' '}) %> +// Once upon a... + +<%- truncate('And they found that many people were sleeping better.', {length: 25, omission: '... (continued)'}) %> +// And they f... (continued) +``` + +### escape_html + +Escapes HTML entities in a string. + +```js +<%- escape_html(str) %> +``` + +**Examples:** + +```js +<%- escape_html('Hello "world".
') %> +// <p>Hello "world".</p> +``` + +## Templates + +### partial + +Loads other template files. You can define local variables in `locals`. + +```js +<%- partial(layout, [locals], [options]) %> +``` + +| Option | Description | Default | +| ------- | ------------------------------------------------------------------------ | ------- | +| `cache` | Cache contents (Use fragment cache) | `false` | +| `only` | Strict local variables. Only use variables set in `locals` in templates. | `false` | + +### fragment_cache + +Caches the contents in a fragment. It saves the contents within a fragment and serves the cache when the next request comes in. + +```js +<%- fragment_cache(id, fn); +``` + +**Examples:** + +```js +<%- fragment_cache('header', function(){ + return '`:
+
+````markdown
+```yaml
+hello: hexo
+```
+````
+
+```html
+
+ hello: hexo
+
+```
+
+When no built-in syntax highlight is enabled, you can either install third-party syntax-highlight plugin, or use a browser-side syntax highlighter (e.g. `highlight.js` and `prism.js` both support running in browser).
+
+## Highlight.js
+
+below v7.0.0:
+
+```yaml
+# _config.yml
+highlight:
+ enable: true
+ auto_detect: false
+ line_number: true
+ line_threshold: 0
+ tab_replace: " "
+ exclude_languages:
+ - example
+ wrap: true
+ hljs: false
+prismjs:
+ enable: false
+```
+
+v7.0.0+:
+
+```yaml
+# _config.yml
+syntax_highlighter: highlight.js
+highlight:
+ auto_detect: false
+ line_number: true
+ line_threshold: 0
+ tab_replace: " "
+ exclude_languages:
+ - example
+ wrap: true
+ hljs: false
+```
+
+`highlight.js` is enabled by default and used as server-side highlighting in Hexo; it needs to be disabled if you prefer to run `highlight.js` on browser-side.
+
+> Server-side means, the syntax highlight is generated during `hexo generate` or `hexo server`.
+
+### auto_detect
+
+`auto_detect` is a `highlight.js` feature that detects language of the code block automatically.
+
+> Tip: When you want to use "sublanguage highlight", enable `auto_detect` and don't mark language when writing code block.
+
+{% note warn "Warning!" %}
+`auto_detect` is very resource-intensive. Do not enable it unless you really need "sublanguage highlight" or prefer not to mark language when writing code block.
+{% endnote %}
+
+### line_number
+
+`highlight.js` [does not](https://highlightjs.readthedocs.io/en/latest/line-numbers.html) support line number.
+
+Hexo adds line number by wrapping output inside `` and `