feat(SW-706): load .env.local for download and upload
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
import path from "node:path"
|
||||
|
||||
import { download } from "./lokalise"
|
||||
import { config } from "dotenv"
|
||||
|
||||
config({ path: `${process.cwd()}/.env.local` })
|
||||
|
||||
const extractPath = path.resolve(__dirname, "translations")
|
||||
|
||||
async function main() {
|
||||
const { download } = await import("./lokalise")
|
||||
await download(extractPath)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user