Removed the code duplication from the base localization file