mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
Typescript - Add method to get locale
This commit is contained in:
parent
5db20ef743
commit
36cc26db8f
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user