You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: i18n/zh/docusaurus-plugin-content-docs/current/extenders.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
# Local Extenders
1
+
# 本地扩展
2
2
3
-
If there are customizations you want to make to your site without distributing an entire extension, you can do so by using **local extenders**. Each Flarum installation comes with an `extend.php` file where you can add extender instances, just like in a full extension.
3
+
如果您想要在没有分发整个扩展的情况下自定义您的站点, 您可以通过使用 **本地扩展** 来做到这一点。 Each Flarum installation comes with an `extend.php` file where you can add extender instances, just like in a full extension.
4
4
5
5
See our [extension documentation](extend/start.md) for more information about extenders (and even an [example of a local extender](extend/start.md#hello-world)).
**第2步:** 查看您的 `composer.json` 文件。 Unless you have a reason to require specific versions of extensions or libraries, you should set the version string of everything except `flarum/core`to`*` (including`flarum/tags`, `flarum/mentions`, and other bundled extensions). Make sure `flarum/core`is NOT set to `*`. If you're targeting a specific version of Flarum, set`flarum/core`to that (e.g.`"flarum/core": "v0.1.0-beta.16`). If you just want the most recent version, use `"flarum/core": "^1.0"`.
0 commit comments