$db
$db :
getDisplayedLocale() : String
Returns the currently selected locale for current form display This function is especially usefull when editing a form widget/field. You may edit some language that is not your mother language and at the same time have the backend displayed in your mother language. Calling this function in your widget will ensure the widget will display with your current editing language in backend (say in French if your mother language is French) while you are editing a foreign language record (say in German).
The form widget/field will then also display correctly in frontend with the intended locale (German). For example, an area of use is dates, which do not display the same in French (01/12/2016) and in German (01.12.2016), thus you need to adapt the widget/field display
the current locale being edited in backend