mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 08:50:06 +02:00
mysterious error with process require
This commit is contained in:
parent
811b9c1b0e
commit
b4a6ac3784
4 changed files with 9 additions and 5 deletions
|
@ -44,7 +44,7 @@ var init = function() {
|
|||
wait: true
|
||||
});
|
||||
|
||||
LocaleStore.subscribe('change', intlRefresh);
|
||||
LocaleStore.subscribe(intlRefresh);
|
||||
events.on('localeChanged', intlRefresh);
|
||||
events.on('vcsModeChange', vcsModeRefresh);
|
||||
|
||||
|
@ -68,6 +68,7 @@ var vcsModeRefresh = function(eventData) {
|
|||
};
|
||||
|
||||
var intlRefresh = function() {
|
||||
console.log('refreshing inlt');
|
||||
if (!window.$) { return; }
|
||||
$('span.intl-aware').each(function(i, el) {
|
||||
var intl = require('../intl');
|
||||
|
@ -253,7 +254,7 @@ function tryLocaleDetect() {
|
|||
}
|
||||
|
||||
function changeLocaleFromHeaders(langString) {
|
||||
LocaleActions.changeLocaleFromHeaders(langString);
|
||||
LocaleActions.changeLocaleFromHeader(langString);
|
||||
GlobalState.locale = LocaleStore.getLocale();
|
||||
events.trigger('localeChanged');
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@ var toGlobalize = {
|
|||
Visuals: require('../visuals'),
|
||||
Git: require('../git'),
|
||||
CommandModel: require('../models/commandModel'),
|
||||
LocaleActions: require('../actions/LocaleActions'),
|
||||
LocaleStore: require('../stores/LocaleStore'),
|
||||
Levels: require('../graph/treeCompare'),
|
||||
Constants: require('../util/constants'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue