before big intl merge on levels

This commit is contained in:
Peter Cottle 2013-02-23 20:54:14 -08:00
parent 9a497cfbad
commit eedce6616a
10 changed files with 260 additions and 92 deletions

View file

@ -2,6 +2,7 @@ var _ = require('underscore');
var util = require('../util');
var constants = require('../util/constants');
var intl = require('../intl');
var Errors = require('../util/errors');
var CommandProcessError = Errors.CommandProcessError;
@ -21,9 +22,9 @@ var instantCommands = [
});
}],
[/^(locale|locale reset)$/, function(bits) {
constants.GLOBAL.locale = util.getDefaultLocale();
constants.GLOBAL.locale = intl.getDefaultLocale();
throw new CommandResult({
msg: 'Locale reset to default, which is ' + util.getDefaultLocale()
msg: 'Locale reset to default, which is ' + intl.getDefaultLocale()
});
}],
[/^locale (\w+)$/, function(bits) {