File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ module.exports = function(version, _options) {
11
11
} ) ;
12
12
13
13
return {
14
- capitalizeFirstLetter : function ( string ) {
15
- return string . charAt ( 0 ) . toUpperCase ( ) + string . slice ( 1 ) ;
14
+ capitalizeFirstLetter : function ( language , string ) {
15
+ return string . charAt ( 0 ) . toLocaleUpperCase ( language ) + string . slice ( 1 ) ;
16
16
} ,
17
17
ordinalize : function ( language , number ) {
18
18
// Transform numbers to their translated ordinalized value
@@ -206,7 +206,7 @@ module.exports = function(version, _options) {
206
206
. replace ( / { 2 } / g, ' ' ) ; // remove excess spaces
207
207
208
208
if ( instructions [ language ] . meta . capitalizeFirstLetter ) {
209
- return this . capitalizeFirstLetter ( output ) ;
209
+ return this . capitalizeFirstLetter ( language , output ) ;
210
210
}
211
211
212
212
return output ;
You can’t perform that action at this time.
0 commit comments