Skip to content

Commit

Permalink
Persist the locale to the store and localStorage
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
enlight committed Jan 12, 2018
1 parent 1c14989 commit 5a8fff5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lesson_index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -114,3 +115,7 @@ export default {
4:[],
5:[],
}

export default {
en
}

0 comments on commit 5a8fff5

Please sign in to comment.