api extension for getting locale value per ajax