As a follow up to #99613, we might want to stop maintaining a manual mapping of the EUI i18n tokens to Kibana's core.{TOKEN}.
The function getEuiContextMapping could loop through each element in @elastic/eui/i18ntokens.json and register them as i18n.translate(`core.{TOKEN}`, {...}). The logic might need to identify when values are required to wrap them in a function.
Pending questions:
As a follow up to #99613, we might want to stop maintaining a manual mapping of the EUI i18n tokens to Kibana's
core.{TOKEN}.The function
getEuiContextMappingcould loop through each element in@elastic/eui/i18ntokens.jsonand register them asi18n.translate(`core.{TOKEN}`, {...}). The logic might need to identify whenvaluesare required to wrap them in a function.Pending questions:
i18n.translateorFormattedMessage? There are some entries that preferredFormattedMessagefor some reason.