intl dom refresh when locale changes final push for Issue

This commit is contained in:
Peter Cottle 2013-02-24 00:33:22 -08:00
parent 1b0d836a42
commit bd62fa735e
9 changed files with 55 additions and 8 deletions
src/js/level

View file

@ -23,6 +23,8 @@ var instantCommands = [
}],
[/^(locale|locale reset)$/, function(bits) {
constants.GLOBAL.locale = intl.getDefaultLocale();
var Main = require('../app').getEvents().trigger('localeChanged');
throw new CommandResult({
msg: intl.str(
'locale-reset-command',
@ -33,6 +35,7 @@ var instantCommands = [
[/^locale (\w+)$/, function(bits) {
constants.GLOBAL.locale = bits[1];
var Main = require('../app').getEvents().trigger('localeChanged');
throw new CommandResult({
msg: intl.str(
'locale-command',