File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @hebcal/hdate" ,
3
- "version" : " 0.9.8 " ,
3
+ "version" : " 0.9.9 " ,
4
4
"description" : " converts between Hebrew and Gregorian dates using Rata Die (R.D.) algorithm by Dershowitz and Reingold" ,
5
5
"author" : " Michael J. Radwin (https://github.com/mjradwin)" ,
6
6
"contributors" : [
Original file line number Diff line number Diff line change @@ -145,14 +145,15 @@ export class Locale {
145
145
* will be represented by the corresponding translation in the specified locale.
146
146
* @param {string } locale Locale name (i.e: `'he'`, `'fr'`)
147
147
*/
148
- static useLocale ( locale : string ) : void {
148
+ static useLocale ( locale : string ) : StringArrayMap {
149
149
const locale0 = locale . toLowerCase ( ) ;
150
150
const obj = locales . get ( locale0 ) ;
151
151
if ( ! obj ) {
152
152
throw new RangeError ( `Locale '${ locale } ' not found` ) ;
153
153
}
154
154
activeName = alias [ locale0 ] || locale0 ;
155
155
activeLocale = obj ;
156
+ return activeLocale ;
156
157
}
157
158
158
159
/**
You can’t perform that action at this time.
0 commit comments