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 __dirname = path.dirname(__filename);
|
||||||
|
|
||||||
const LOCALES_DIR = path.resolve(__dirname, "../src/locales");
|
const LOCALES_DIR = path.resolve(__dirname, "../src/locales");
|
||||||
const TAURI_LOCALES_DIR = path.resolve(
|
const TAURI_LOCALES_DIR = path.resolve(__dirname, "../src-tauri/locales");
|
||||||
__dirname,
|
|
||||||
"../src-tauri/resources/locales",
|
|
||||||
);
|
|
||||||
const DEFAULT_SOURCE_DIRS = [
|
const DEFAULT_SOURCE_DIRS = [
|
||||||
path.resolve(__dirname, "../src"),
|
path.resolve(__dirname, "../src"),
|
||||||
path.resolve(__dirname, "../src-tauri"),
|
path.resolve(__dirname, "../src-tauri"),
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ export const NoticeManager: React.FC = () => {
|
|||||||
typeof prefixKey === "string"
|
typeof prefixKey === "string"
|
||||||
? t(prefixKey as TranslationKey, {
|
? t(prefixKey as TranslationKey, {
|
||||||
defaultValue: prefixKey,
|
defaultValue: prefixKey,
|
||||||
|
...restParams,
|
||||||
...(prefixKeyParams ?? {}),
|
...(prefixKeyParams ?? {}),
|
||||||
})
|
})
|
||||||
: typeof prefix === "string"
|
: typeof prefix === "string"
|
||||||
|
|||||||
Reference in New Issue
Block a user