mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-08-02 17:15:24 +02:00
18 lines
388 B
JavaScript
18 lines
388 B
JavaScript
"use strict";
|
|
|
|
var AppConstants = require('../constants/AppConstants');
|
|
var AppDispatcher = require('../dispatcher/AppDispatcher');
|
|
|
|
var ActionTypes = AppConstants.ActionTypes;
|
|
|
|
var LocaleActions = {
|
|
|
|
changeLocale: function(newLocale) {
|
|
AppDispatcher.handleViewAction({
|
|
type: ActionTypes.CHANGE_LOCALE,
|
|
locale: newLocale
|
|
});
|
|
},
|
|
};
|
|
|
|
module.exports = LocaleActions;
|