Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit b79894d

Browse files
committed
chore(ngMessageFormat): rename angular-messageFormat to angular-message-format
Closes #11595
1 parent 8a45064 commit b79894d

File tree

6 files changed

+10
-9
lines changed

6 files changed

+10
-9
lines changed

Gruntfile.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ module.exports = function(grunt) {
204204
src: util.wrap(files['angularModules']['ngResource'], 'module')
205205
},
206206
messageformat: {
207-
dest: 'build/angular-messageFormat.js',
207+
dest: 'build/angular-message-format.js',
208208
src: util.wrap(files['angularModules']['ngMessageFormat'], 'module')
209209
},
210210
messages: {
@@ -239,7 +239,7 @@ module.exports = function(grunt) {
239239
animate: 'build/angular-animate.js',
240240
cookies: 'build/angular-cookies.js',
241241
loader: 'build/angular-loader.js',
242-
messageformat: 'build/angular-messageFormat.js',
242+
messageformat: 'build/angular-message-format.js',
243243
messages: 'build/angular-messages.js',
244244
touch: 'build/angular-touch.js',
245245
resource: 'build/angular-resource.js',

docs/content/error/$interpolate/logicbug.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@fullName Bug in ngMessageFormat module
44
@description
55

6-
You've just hit a bug in the ngMessageFormat module provided by angular-messageFormat.min.js.
6+
You've just hit a bug in the ngMessageFormat module provided by angular-message-format.min.js.
77
Please file a github issue for this and provide the interpolation text that caused you to hit this
88
bug mentioning the exact version of AngularJS used and we will fix it!
99

docs/content/error/$interpolate/nochgmustache.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
@description
55

66
You have redefined `$interpolate.startSymbol`/`$interpolate.endSymbol` and also
7-
loaded the `ngMessageFormat` module (provided by angular-messageFormat.min.js)
7+
loaded the `ngMessageFormat` module (provided by angular-message-format.min.js)
88
while creating your injector.
99

1010
`ngMessageFormat` currently does not support redefinition of the

docs/content/guide/i18n.ngdoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ You can read more about the ICU MessageFormat syntax at
154154

155155
This extended syntax is provided by way of the
156156
`ngMessageFormat` module that your application can depend
157-
upon (shipped separately as `angular-messageFormat.min.js` and
158-
`angular-messageFormat.js`.) A current limitation of the
157+
upon (shipped separately as `angular-message-format.min.js` and
158+
`angular-message-format.js`.) A current limitation of the
159159
`ngMessageFormat` module, is that it does not support
160160
redefining the `$interpolate` start and end symbols. Only the
161161
default `{{` and `}}` are allowed.

lib/grunt/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ module.exports = {
185185
var mapFileName = mapFile.match(/[^\/]+$/)[0];
186186
var errorFileName = file.replace(/\.js$/, '-errors.json');
187187
var versionNumber = grunt.config('NG_VERSION').full;
188-
var compilationLevel = (file === 'build/angular-messageFormat.js') ?
188+
var compilationLevel = (file === 'build/angular-message-format.js') ?
189189
'ADVANCED_OPTIMIZATIONS' : 'SIMPLE_OPTIMIZATIONS';
190190
shell.exec(
191191
'java ' +

src/ngMessageFormat/messageFormatService.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*
2121
* ## Example
2222
*
23-
* <example name="ngMessageFormat-example" module="msgFmtExample" deps="angular-messageFormat.min.js">
23+
* <example name="ngMessageFormat-example" module="msgFmtExample" deps="angular-message-format.min.js">
2424
* <file name="index.html">
2525
* <div ng-controller="AppController">
2626
* <button ng-click="decreaseRecipients()" id="decreaseRecipients">decreaseRecipients</button><br>
@@ -99,7 +99,7 @@ var $$MessageFormatFactory = ['$parse', '$locale', '$sce', '$exceptionHandler',
9999

100100
var $$interpolateDecorator = ['$$messageFormat', '$delegate', function $$interpolateDecorator($$messageFormat, $interpolate) {
101101
if ($interpolate['startSymbol']() != "{{" || $interpolate['endSymbol']() != "}}") {
102-
throw $interpolateMinErr('nochgmustache', 'angular-messageformat.js currently does not allow you to use custom start and end symbols for interpolation.');
102+
throw $interpolateMinErr('nochgmustache', 'angular-message-format.js currently does not allow you to use custom start and end symbols for interpolation.');
103103
}
104104
var interpolate = $$messageFormat['interpolate'];
105105
interpolate['startSymbol'] = $interpolate['startSymbol'];
@@ -111,6 +111,7 @@ var $$interpolateDecorator = ['$$messageFormat', '$delegate', function $$interpo
111111
/**
112112
* @ngdoc module
113113
* @name ngMessageFormat
114+
* @packageName angular-message-format
114115
* @description
115116
*/
116117
var module = window['angular']['module']('ngMessageFormat', ['ng']);

0 commit comments

Comments
 (0)