check for default value before localizing attribute