I'm using i18n for localization in my project but whenever i change the language, all page's translate is okay except grid header names! Its getting normal when i refresh the page.How can fix this situation without refresh ?
Aggrid vue i18n: Grid header name not translated without refresh after change language
983 Views Asked by Özlem Uslu At
2
You can fix this by calling the
refreshHeaderfunction on the reader API. try this :where the gridApi is the API object you get from the
onGridReadyevent params.EDIT, how to get the gridApi :
the gridApi u get from the params of the onGridReady method being called by the AgGrid component. if you are using reactJs, an attribute named onGridReady in your agGrid component would accept that function.