From edcffbbf4be1c0e10f0f2daf53da1fc47b280709 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 10 Sep 2020 15:22:21 -0400 Subject: [PATCH] Test submodules (#6) * Testing out submodule. * Fixing translation path. --- .gitmodules | 4 ++++ generate_translations.js | 2 +- lemmy-translations | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .gitmodules create mode 160000 lemmy-translations 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 -- 2.44.1