Skip to content

Commit 7a2f442

Browse files
committed
fix: lint
1 parent 3162b68 commit 7a2f442

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/document/docs/en/guides/advanced-features/international/resource-loading.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ i18nPlugin({
125125

126126
:::warning
127127
The `loadPath` configuration is used for both HTTP backend (frontend) and file system backend (server-side). If configured as an absolute path starting with `/` (e.g., `/locales/{{lng}}/{{ns}}.json`), the file system backend will automatically convert it to a relative path (`./locales/{{lng}}/{{ns}}.json`). Therefore, it's recommended to use absolute paths in the configuration, which can meet both frontend and backend requirements.
128+
128129
:::
129130

130131
## SDK Backend

packages/document/docs/en/guides/advanced-features/international/routing.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ i18nPlugin({
3737
// String array: supports exact match and prefix match
3838
ignoreRedirectRoutes: ['/api', '/admin', '/static'],
3939
// Or use function for more flexible judgment
40-
ignoreRedirectRoutes: (pathname) => {
40+
ignoreRedirectRoutes: pathname => {
4141
return pathname.startsWith('/api') || pathname.startsWith('/admin');
4242
},
4343
},
@@ -139,6 +139,7 @@ function App() {
139139

140140
:::info
141141
Convention-based routing will automatically generate corresponding routes based on the file structure. It's recommended to use convention-based routing. Only use custom routing when special route control is needed.
142+
142143
:::
143144

144145
## I18nLink Component
@@ -209,4 +210,3 @@ interface I18nLinkProps {
209210
Contact
210211
</I18nLink>
211212
```
212-

0 commit comments

Comments
 (0)