mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-08 13:44:25 +02:00
intl dom refresh when locale changes final push for Issue #42
This commit is contained in:
parent
1b0d836a42
commit
bd62fa735e
9 changed files with 55 additions and 8 deletions
src/js/level
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue