fix(notice): ensure runtime overrides apply to prefix translations
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user