This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
// Specify the locales you are interested here. | |
var locales = ['en', 'fr']; | |
var i; | |
var localesData = Object.create(null); | |
var prefix = 'data:text/javascript;base64,'; | |
var outputPrefix = "angular.module('tmh.dynamicLocalePreload', ['tmh.dynamicLocale'])" + | |
".config(['tmhDynamicLocaleProvider', function(tmhDynamicLocaleProvider) {" + | |
"tmhDynamicLocaleProvider.localeLocationPattern('{{base64Locales[locale]}}');" + |