Add optional custom localization functionality