mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-21 11:15:38 +02:00
locale store and test
This commit is contained in:
parent
eba404c595
commit
ef74ac1cf8
4 changed files with 13 additions and 1 deletions
|
@ -30,10 +30,13 @@ var LocaleStore = assign({}, EventEmitter.prototype, {
|
|||
|
||||
switch (action.type) {
|
||||
case ActionTypes.CHANGE_LOCALE:
|
||||
_locale = action.locale;
|
||||
shouldInform = true;
|
||||
break;
|
||||
}
|
||||
|
||||
if (shouldInform) {
|
||||
this.emit(CHANGE_EVENT);
|
||||
LocaleStore.emit(CHANGE_EVENT);
|
||||
}
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue