mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-10 15:11:22 +00:00
GUAC-605: Use MessageFormat interpolation for angular-translate.
This commit is contained in:
@@ -24,10 +24,17 @@
|
||||
* The configuration block for setting up everything having to do with i18n.
|
||||
*/
|
||||
angular.module('index').config(['$translateProvider', function($translateProvider) {
|
||||
|
||||
// Use US English by default
|
||||
$translateProvider.preferredLanguage('en_US');
|
||||
|
||||
// Load translations from static JSON files
|
||||
$translateProvider.useStaticFilesLoader({
|
||||
prefix: 'translations/',
|
||||
suffix: '.json'
|
||||
});
|
||||
|
||||
// Provide pluralization, etc. via messageformat.js
|
||||
$translateProvider.useMessageFormatInterpolation();
|
||||
|
||||
}]);
|
Reference in New Issue
Block a user