]> Untitled Git - lemmy-ui.git/commitdiff
Test submodules (#6)
authorDessalines <dessalines@users.noreply.github.com>
Thu, 10 Sep 2020 19:22:21 +0000 (15:22 -0400)
committerGitHub <noreply@github.com>
Thu, 10 Sep 2020 19:22:21 +0000 (15:22 -0400)
* Testing out submodule.

* Fixing translation path.

.gitmodules [new file with mode: 0644]
generate_translations.js
lemmy-translations [new submodule]

diff --git a/.gitmodules b/.gitmodules
new file mode 100644 (file)
index 0000000..8c2dfdd
--- /dev/null
@@ -0,0 +1,4 @@
+[submodule "lemmy-translations"]
+       path = lemmy-translations
+       url = https://github.com/lemmynet/lemmy-translations
+       branch = main
index e792e6d22c062122f27a0834975b109b4eb4e6c5..153e6132cd6cfe8c8a5b2815c2e3e607cf0a76b9 100644 (file)
@@ -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 (submodule)
index 0000000..835b932
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit 835b932ac37354e8fb0f716700e212c14a672254