Typescript - Add method to get locale

This commit is contained in:
Kiran Niranjan 2018-11-27 17:18:24 +05:30
parent 5db20ef743
commit 36cc26db8f

View File

@ -28,6 +28,13 @@ class Translation {
// logger.info(`Translation: locale updated with ${locale}`);
}
/**
* Gets the current locale
*/
public getLocale(): localeType {
return this.locale;
}
/**
* fetches and returns the translated value
* @param value {string}