Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored Mar 29, 2024
1 parent d18ef39 commit 5db1516
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/document/docs/en/api/config/config-theme.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ export default defineConfig({
- Type: `'auto' | 'never'`
- Default: `'auto'`

Whether to redirect to the closest locale when the user visits the site, the default is `auto`, which means that the user will be redirected on the first visit. If you set it to `never`, the user will not be redirected. For example:
Whether to redirect to the locale closest to `window.navigator.language` when the user visits the site, the default is `auto`, which means that the user will be redirected on the first visit. If you set it to `never`, the user will not be redirected. For example:

```ts title="rspress.config.ts"
import { defineConfig } from 'rspress/config';
Expand Down
2 changes: 1 addition & 1 deletion packages/document/docs/zh/api/config/config-theme.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ export default defineConfig({
- Type: `'auto' | 'never'`
- Default: `'auto'`

是否在访问网站时重定向到最接近的语言,默认为 `auto` 表示首次访问时区将重定向,`never` 表示不重定向。比如:
是否在访问网站时重定向到最接近 `window.navigator.language` 的语言,默认为 `auto` 表示首次访问时区将重定向,`never` 表示不重定向。比如:

```ts title="rspress.config.ts"
import { defineConfig } from 'rspress/config';
Expand Down

0 comments on commit 5db1516

Please sign in to comment.