Commit 6c4617b3 authored by Amos Wenger's avatar Amos Wenger

Add script to import i18n strings

parent 0ce7611a
#!/usr/bin/env node
const $ = require("./common");
async function importStrings() {
let src = `../itch-i18n/locales`;
try {
await $.lstat(src);
} catch (e) {
$.say(`Missing ../itch-i18n, not importing anything`);
let dst = `./src/static/locales`;
await $.sh(`rm -rf ${dst}`);
await $.sh(`cp -rfv ${src} ${dst}`);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment