fix(notice): ensure runtime overrides apply to prefix translations

This commit is contained in:
Slinetrac
2025-11-06 21:12:07 +08:00
Unverified
parent 38db4b9394
commit 773eedf49a
2 changed files with 1 additions and 10 deletions

View File

@@ -1,9 +0,0 @@
files:
- source: /src/locales/en/*.json
translation: /src/locales/%locale_with_underscore%/%original_file_name%
preserve_hierarchy: true
languages_mapping:
locale_with_underscore:
zh-CN: zh
zh-TW: zhtw
ja: jp

View File

@@ -88,8 +88,8 @@ export const NoticeManager: React.FC = () => {
typeof prefixKey === "string"
? t(prefixKey as TranslationKey, {
defaultValue: prefixKey,
...restParams,
...(prefixKeyParams ?? {}),
...restParams,
})
: typeof prefix === "string"
? prefix