From 1655094ce36bf4d1795c4dd154b4cc3b712404e8 Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Fri, 25 Aug 2017 11:43:59 -0700 Subject: [PATCH] fixed locale path on dev --- server/languages.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/languages.js b/server/languages.js index 3447c580..e6d1f551 100644 --- a/server/languages.js +++ b/server/languages.js @@ -4,7 +4,9 @@ const fs = require('fs'); const path = require('path'); function allLangs() { - const langs = fs.readdirSync(path.join(__dirname, '..', 'public', 'locales')); + const langs = fs.readdirSync( + path.join(__dirname, '..', 'dist', 'public', 'locales') + ); langs.unshift('en-US'); // default first, TODO change for fluent-langneg return langs; }