let's make this be `function localizeInlineOptions({ document }) {` instead