Skip to content

Commit

Permalink
support same language dictionary for several locales, #3
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksandr Bardanov committed Jul 9, 2014
1 parent 492acad commit 74d5973
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions extension/services/locale.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
define(function (require, exports, module){
var dictionaries = {
'en-US': require('../locale/en-US'),
'it': require('../locale/it')
//More locals to add here
var englishLanguage = require('../locale/en-US'),
italianLanguage = require('../locale/it'),
dictionaries = {
'en': englishLanguage,
'en-GB': englishLanguage,
'en-US': englishLanguage,
'it': italianLanguage,
'it-IT': italianLanguage
//More locals to add here
},
_ = require('../vendor/lodash.min'),
defaultLocale = 'en-US';
Expand Down

0 comments on commit 74d5973

Please sign in to comment.