mirror of
https://github.com/gosticks/web.git
synced 2026-11-03 03:50:24 +00:00
Also moved the scripts into a new scripts folder. The language list generation is independent of the parsing we do for POEditor. This also makes it easier to move to a different translation service while keeping the languages.json generation. Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
18 lines
609 B
JavaScript
18 lines
609 B
JavaScript
/* Pi-hole: A black hole for Internet advertisements
|
|
* (c) 2019 Pi-hole, LLC (https://pi-hole.net)
|
|
* Network-wide ad blocking via your own hardware.
|
|
*
|
|
* Web Interface
|
|
* Update languages.json with the current languages
|
|
*
|
|
* This file is copyright under the latest version of the EUPL.
|
|
* Please see LICENSE file for your rights under this license. */
|
|
|
|
const fs = require("fs-extra");
|
|
|
|
// Get the available languages
|
|
const languages = fs.readdirSync("public/i18n");
|
|
|
|
// Save the language list so the web interface knows what's available
|
|
fs.outputFileSync("src/languages.json", JSON.stringify(languages));
|