Merged in feat/sw-2333-package-and-sas-i18n (pull request #2538)
feat(SW-2333): I18n for multiple apps and packages * Set upp i18n in partner-sas * Adapt lokalise workflow to monorepo * Fix layout props Approved-by: Linus Flood
This commit is contained in:
16
scripts/i18n/download.ts
Normal file
16
scripts/i18n/download.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import path from 'node:path'
|
||||
|
||||
import { config } from 'dotenv'
|
||||
|
||||
config({ path: `${process.cwd()}/.env.local` })
|
||||
|
||||
const filteredExtractPath = path.resolve(__dirname, 'translations')
|
||||
const allExtractPath = path.resolve(__dirname, 'translations-all')
|
||||
|
||||
async function main() {
|
||||
const { download } = await import('./lokalise')
|
||||
await download(filteredExtractPath, false)
|
||||
await download(allExtractPath, true)
|
||||
}
|
||||
|
||||
main()
|
||||
Reference in New Issue
Block a user