fix error when there is no locale defined
change method name to _get_initial_config