Last active
March 8, 2017 08:51
-
-
Save aldesantis/533bdc0eec0d74815140 to your computer and use it in GitHub Desktop.
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
app = angular.module('app', [ | |
'pascalprecht.translate' | |
]); | |
app.config(['$translateProvider', function($translateProvider) { | |
$translateProvider.useStaticFilesLoader({ | |
prefix: 'translations/', | |
suffix: '.json' | |
}); | |
$translateProvider.preferredLanguage('en'); | |
}]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This gives Error: [$injector:unpr] http://errors.angularjs.org/1.6.1/$injector/unpr?p0=%24translateStaticFilesLoaderProvider%20%3C-%20%24translateStaticFilesLoader. How you fix that?