From 2bcc8fc85de20e9d3949cbb766a823ed3f11e842 Mon Sep 17 00:00:00 2001 From: Rishi Raj Jain Date: Wed, 16 Oct 2024 19:46:29 +0000 Subject: [PATCH] pass param during setup new locale --- scripts/setup_new_locale.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/setup_new_locale.tsx b/scripts/setup_new_locale.tsx index 5f59d539..8612af2f 100644 --- a/scripts/setup_new_locale.tsx +++ b/scripts/setup_new_locale.tsx @@ -32,10 +32,10 @@ copyDirectory(path.join(process.cwd(), 'src', 'content', 'blog'), path.join(proc console.log(`Done.\n`) console.log('Generating locale translations...') -execSync(`npm run generate:locale:translations --locale=${newLocale}`, { stdio: 'inherit' }) +execSync(`npm run generate:locale:translations -- --locale=${newLocale}`, { stdio: 'inherit' }) console.log('Generating translation.ts...') -execSync(`npm run generate:translation.ts --locale=${newLocale}`, { stdio: 'inherit' }) +execSync(`npm run generate:translation.ts -- --locale=${newLocale}`, { stdio: 'inherit' }) console.log('Generating blog translations...') -execSync(`npm run generate:blog:translations --locale=${newLocale}`, { stdio: 'inherit' }) +execSync(`npm run generate:blog:translations -- --locale=${newLocale}`, { stdio: 'inherit' }) console.log('Generating plugin translations...') -execSync(`npm run generate:plugin:translations --locale=${newLocale}`, { stdio: 'inherit' }) +execSync(`npm run generate:plugin:translations -- --locale=${newLocale}`, { stdio: 'inherit' })