From 6a87f0cdcd9222f1c169bc61c66105755712a0c3 Mon Sep 17 00:00:00 2001 From: Andrea Vos Date: Mon, 28 Sep 2020 20:11:51 +0200 Subject: [PATCH] #59 locale switch --- Makefile | 4 ++++ README.md | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 16a5c15db..14d754d77 100644 --- a/Makefile +++ b/Makefile @@ -12,3 +12,7 @@ stop: deploy: install yarn build + +switch: + -rm data + ln -s ./locale/${LANG} ./data diff --git a/README.md b/README.md index 3cba9be9f..4f253cbf0 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ $ yarn install # configure environment $ cp .env.dist .env $ nano .env -$ ln -s locale/pl data # or other locale +$ make switch LANG=pl $ node server/initDb.js # serve with hot reload at localhost:3000