ant-design / pro-components

🏆 Use Ant Design like a Pro!
https://pro-components.antdigital.dev
MIT License
4.3k stars 1.36k forks source link

fix(provider): use built-in translation when translation in ProConfigContext is missing #8551

Closed Hector-Chong closed 3 months ago

Hector-Chong commented 3 months ago

For example, if the user has not defined editableTable.onlyAddOneLine in the context:

// Intl passed to ProConfigProvider
export default {
  editableTable: {},
};

The translation will fall back to default message. However, editableTable.onlyAddOneLine is actually defined in the provider's default language set. This fix ensures that the translation is found in the default set.

github-actions[bot] commented 3 months ago

⚡️ Deploying PR Preview...