mirror of https://github.com/YunYouJun/valaxy
docs: update en translation (#195)
* docs: update themes/use.md en translation * docs: update addons/index.md en translation
This commit is contained in:
parent
2cc30c9d2f
commit
b237be6b34
|
@ -5,10 +5,18 @@ categories:
|
|||
- Addon
|
||||
---
|
||||
|
||||
::: zh-CN
|
||||
我们需要一个插件系统允许用户仅使用/快速加载部分功能。
|
||||
:::
|
||||
|
||||
## 命名规范
|
||||
::: en
|
||||
We need a plugin system that allows users to use/load only certain features quickly.
|
||||
:::
|
||||
|
||||
## 命名规范 {lang="zh-CN"}
|
||||
## Naming conventions {lang="en"}
|
||||
|
||||
::: zh-CN
|
||||
插件名称:`valaxy-addon-<name>`。
|
||||
|
||||
> Add-on 相比 Plug-in 通常包含对界面造成修改,以及仅在某特定平台下适用的含义。
|
||||
|
@ -20,11 +28,37 @@ categories:
|
|||
> 除此之外,我们可能还需要支持一些针对 Valaxy 并(在 Vite/Vue 插件运行前)可控制整个流程的插件。
|
||||
>
|
||||
> 此时,Addon 的 API 仅仅适用于 Valaxy 平台。
|
||||
:::
|
||||
|
||||
## 说明
|
||||
::: en
|
||||
Plugin name: `valaxy-addon-<name>`.
|
||||
|
||||
> Add-on, compared to Plug-in, typically implies modifications to the user interface, as well as being applicable only on a specific platform.
|
||||
> For example, the Edge Add-on Store, Slidev, and others use the naming convention "Addon".
|
||||
>
|
||||
> - [Difference Between Add-on and Plug-in](http://www.differencebetween.net/technology/difference-between-add-on-and-plug-in/)
|
||||
>
|
||||
> Valaxy fully supports the use of Vite and Vue ecosystem plugins.
|
||||
> In addition, we may also require support for some plugins that are specific to Valaxy, which can control the entire process before the Vite/Vue plugins are executed.
|
||||
>
|
||||
> In this scenario, the Addon API is only applicable to the Valaxy platform.
|
||||
:::
|
||||
|
||||
## 说明 {lang="zh-CN"}
|
||||
## Explanation {lang="en"}
|
||||
|
||||
::: zh-CN
|
||||
插件可以做什么?
|
||||
|
||||
譬如制作一个 Live2D 挂件,一个全局音乐播放器,或是修改 Vite 以及内置插件的一些配置等。
|
||||
|
||||
它用于补充 Vite/Vue 插件无法做到或加载配置繁琐的内容。
|
||||
:::
|
||||
|
||||
::: en
|
||||
What can addons do?
|
||||
|
||||
For example, they can create a Live2D widget, a global music player, or modify some configurations of Vite and its built-in plugins.
|
||||
|
||||
Addons are used to complement what Vite/Vue plugins cannot achieve or to simplify complicated configurations.
|
||||
:::
|
|
@ -6,16 +6,24 @@ categories:
|
|||
top: 100
|
||||
---
|
||||
|
||||
## 安装主题
|
||||
## 安装主题 {lang="zh-CN"}
|
||||
## Install Theme {lang="en"}
|
||||
|
||||
```bash
|
||||
npm i valaxy-theme-yun
|
||||
# pnpm add valaxy-theme-yun
|
||||
```
|
||||
|
||||
## 启用主题
|
||||
## 启用主题 {lang="zh-CN"}
|
||||
## Enable Theme {lang="en"}
|
||||
|
||||
::: zh-CN
|
||||
配置 `theme` 字段为主题名称,如 `yun`。
|
||||
:::
|
||||
|
||||
::: en
|
||||
Configure the `theme` field as the theme name, such as `yun`.
|
||||
:::
|
||||
|
||||
```ts
|
||||
// valaxy.config.ts
|
||||
|
@ -25,9 +33,16 @@ export default defineConfig({
|
|||
})
|
||||
```
|
||||
|
||||
## 主题配置
|
||||
## 主题配置 {lang="zh-CN"}
|
||||
## Theme Config {lang="en"}
|
||||
|
||||
::: zh-CN
|
||||
参见对应主题文档,配置 `themeConfig`。
|
||||
:::
|
||||
|
||||
::: en
|
||||
Refer to the corresponding theme documentation, configure `themeConfig`.
|
||||
:::
|
||||
|
||||
```ts
|
||||
// valaxy.config.ts
|
||||
|
|
Loading…
Reference in New Issue