rubenv/grunt-angular-gettext — pull request #25 by tkrotoff (2014-02-07 17:57:16+00:00)
Title: Better translations.js indentation

Instead of:

```JavaScript
angular.module("gettext").run(['gettextCatalog', function (gettextCatalog) {
gettextCatalog.setStrings('en', {"Contact":"Contact","Création d'un kit local":"Creation of a local kit","Création d'un produit fini local sous licence":"Creation of a local end product under license","Duplication/modification d'un kit local":"Duplication/modification of a local kit","Erreur récupération niveau {{niveau}}
":"Error while getting level {{niveau}}
","FCCi":"FCCi","Hiérarchie marketing":"Marketing hierarchy","Langue":"Language","Logs":"Logs","Niveau {{niveau}} récupérée":"Got level {{niveau}}","Ouverture des entités logistiques":"Opening of the logistics units","Paramétrage des informations logistiques":"Setting of the logistics informations","Pour une meilleur expérience, utilisez Firefox, Chrome ou une version récente d'Internet Explorer":"For a better experience, use Firefox, Chrome or a recent version of Internet Explorer","Récupération niveau {{niveau}} ...":"Getting level {{niveau}}...","Se connecter":"Connect","Se deconnecter":"Disconnect","TCO":"TCO","Toggle navigation":"Toggle navigation"});
gettextCatalog.setStrings('fr', {"Création d'un kit local":"","Création d'un produit fini local sous licence":"","Duplication/modification d'un kit local":"","FCCi":"","Langue":"","Logs":"","Ouverture des entités logistiques":"","Paramétrage des informations logistiques":"","Se connecter":"","Se deconnecter":"","TCO":"","Toggle navigation":""});

}]);
```

now `translations.js` is more human friendly, so quickly check the translations is easier now:

```JavaScript
angular.module("gettext").run(['gettextCatalog', function (gettextCatalog) {
gettextCatalog.setStrings('en', {
"Contact": "Contact",
"Création d'un kit local": "Creation of a local kit",
"Création d'un produit fini local sous licence": "Creation of a local end product under license",
"Duplication/modification d'un kit local": "Duplication/modification of a local kit",
"Erreur récupération niveau {{niveau}}
": "Error while getting level {{niveau}}
",
"FCCi": "FCCi",
"Hiérarchie marketing": "Marketing hierarchy",
"Langue": "Language",
"Logs": "Logs",
"Niveau {{niveau}} récupérée": "Got level {{niveau}}",
"Ouverture des entités logistiques": "Opening of the logistics units",
"Paramétrage des informations logistiques": "Setting of the logistics informations",
"Pour une meilleur expérience, utilisez Firefox, Chrome ou une version récente d'Internet Explorer": "For a better experience, use Firefox, Chrome or a recent version of Internet Explorer",
"Récupération niveau {{niveau}} ...": "Getting level {{niveau}}...",
"Se connecter": "Connect",
"Se deconnecter": "Disconnect",
"TCO": "TCO",
"Toggle navigation": "Toggle navigation"
});
gettextCatalog.setStrings('fr', {
"Création d'un kit local": "",
"Création d'un produit fini local sous licence": "",
"Duplication/modification d'un kit local": "",
"FCCi": "",
"Langue": "",
"Logs": "",
"Ouverture des entités logistiques": "",
"Paramétrage des informations logistiques": "",
"Se connecter": "",
"Se deconnecter": "",
"TCO": "",
"Toggle navigation": ""
});
}]);
```

I could not even better indent due to `JSON.stringify()` not being powerful enough.