Skip to content

Commit e8e074c

Browse files
committed
chore: standard translation key
1 parent c9bdd81 commit e8e074c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/components/Suspensable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export function withSuspensable<P extends object>(
112112
const title =
113113
typeof pendingTitle === 'function'
114114
? pendingTitle(t)
115-
: pendingTitle || t('common.loading')
115+
: pendingTitle || t('components.Suspensable.loading')
116116

117117
return (
118118
<Suspense

src/i18n/translations.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@
2323
}
2424
}
2525
},
26-
"common": {
27-
"loading": {
28-
"cn": "加载中...",
29-
"en": "Loading..."
30-
}
31-
},
3226
"components": {
3327
"account": {
3428
"AuthFormShared": {
@@ -2519,6 +2513,12 @@
25192513
"en": "No matching operators"
25202514
}
25212515
},
2516+
"Suspensable": {
2517+
"loading": {
2518+
"cn": "加载中...",
2519+
"en": "Loading..."
2520+
}
2521+
},
25222522
"UserFilter": {
25232523
"searching": {
25242524
"cn": "正在搜索...",

0 commit comments

Comments
 (0)