I am able to reproduce this issue and attaching the sample app which has same error on page load after adding the pagingtoolbar. This issue is coming only when I am adding localisation. In Sample app I added a method applyLocalization() which is causing the issue.
Please guid me what wrong I am doing in localisation. It is not failing If I remove the paging tool bar.
Problem is the way you define locale. You do not extend one, instead you create a locale with a subset of fields. PagingToolbar expects on of the localization properties to be a template function. It is missing from your custom locale and code throws. Once you remove LocaleManager.applyLocale('CustomLocale'); app works normally again.
Where do I need to add the localisation pf paging tool for the key like pageCountTemplate, pageCountTemplate, nextPage etc?
I already attached the sample application above.
Attachments
Screenshot 2021-11-23 at 12.33.31 PM.png (289.3 KiB) Viewed 1130 times