mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 15:53:23 +02:00
14 lines
370 B
JavaScript
14 lines
370 B
JavaScript
angular.module('gettext').run(['gettextCatalog', function(gettextCatalog) {
|
|
// Load all supported languages
|
|
angular.forEach(require('./langs'), function(value, key) {
|
|
if (key !== 'en') {
|
|
gettextCatalog.setStrings(key,
|
|
require('./translations/stf.' + key + '.json')[key])
|
|
}
|
|
})
|
|
}])
|
|
|
|
module.exports = angular.module('stf/lang', [
|
|
'gettext'
|
|
])
|