From: Dessalines Date: Thu, 10 Sep 2020 19:22:21 +0000 (-0400) Subject: Test submodules (#6) X-Git-Url: http://these/git/%7Bthis.src%28%27jpg%27%29%7D?a=commitdiff_plain;h=edcffbbf4be1c0e10f0f2daf53da1fc47b280709;p=lemmy-ui.git Test submodules (#6) * Testing out submodule. * Fixing translation path. --- diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..8c2dfdd --- /dev/null +++ b/.gitmodules @@ -0,0 +1,4 @@ +[submodule "lemmy-translations"] + path = lemmy-translations + url = https://github.com/lemmynet/lemmy-translations + branch = main diff --git a/generate_translations.js b/generate_translations.js index e792e6d..153e613 100644 --- a/generate_translations.js +++ b/generate_translations.js @@ -1,6 +1,6 @@ fs = require('fs'); -let translationDir = 'translations/'; +let translationDir = 'lemmy-translations/translations/'; let outDir = 'src/shared/translations/'; fs.mkdirSync(outDir, { recursive: true }); fs.readdir(translationDir, (err, files) => { diff --git a/lemmy-translations b/lemmy-translations new file mode 160000 index 0000000..835b932 --- /dev/null +++ b/lemmy-translations @@ -0,0 +1 @@ +Subproject commit 835b932ac37354e8fb0f716700e212c14a672254