feat(SW-706): load .env.local for download and upload

This commit is contained in:
Michael Zetterberg
2025-04-14 11:50:54 +02:00
parent 7de46cafa8
commit 37ac9f607c
5 changed files with 11 additions and 5 deletions

View File

@@ -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)
}