fix(i18n, notice): propagate runtime params and update cleanup script path
This commit is contained in:
@@ -10,10 +10,7 @@ const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
|
||||
const LOCALES_DIR = path.resolve(__dirname, "../src/locales");
|
||||
const TAURI_LOCALES_DIR = path.resolve(
|
||||
__dirname,
|
||||
"../src-tauri/resources/locales",
|
||||
);
|
||||
const TAURI_LOCALES_DIR = path.resolve(__dirname, "../src-tauri/locales");
|
||||
const DEFAULT_SOURCE_DIRS = [
|
||||
path.resolve(__dirname, "../src"),
|
||||
path.resolve(__dirname, "../src-tauri"),
|
||||
|
||||
@@ -88,6 +88,7 @@ export const NoticeManager: React.FC = () => {
|
||||
typeof prefixKey === "string"
|
||||
? t(prefixKey as TranslationKey, {
|
||||
defaultValue: prefixKey,
|
||||
...restParams,
|
||||
...(prefixKeyParams ?? {}),
|
||||
})
|
||||
: typeof prefix === "string"
|
||||
|
||||
Reference in New Issue
Block a user