From 5a8fff5295fbf4b3ad64443b45e326393ff1bce0 Mon Sep 17 00:00:00 2001 From: Vadim Macagon Date: Mon, 8 Jan 2018 19:09:42 +0700 Subject: [PATCH] Persist the locale to the store and localStorage The locale will be set whenever a localized URL is loaded, provided the locale is supported (i.e. we have localized content for that locale). The locale is persisted to localStorage to survive site reloads. --- lesson_index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lesson_index.js b/lesson_index.js index bda2cbf79a..b7c67fbe24 100644 --- a/lesson_index.js +++ b/lesson_index.js @@ -57,7 +57,8 @@ import l3_complete from './3/14-lessoncomplete.md' // chapterList is an ordered array of chapters. The order represents the order of the chapters. // chapter index will be 1-based and not zero-based. First chapter is 1 -export default { +// English (source for all translations) +const en = { 1: [ l1_overview, lessonoverview, @@ -114,3 +115,7 @@ export default { 4:[], 5:[], } + +export default { + en +}