The only answer I found to my question is here - Attempting to set the Update String of the Localize String Event using a script
But it use functionality of UnityEditor package, so Im not able to build my app, because this package is not allowed in build.
P.S. sorry for stupid question, figure out solution shortly after asking - its not necessary to add it via script in my case.
I added this event components to texts in Editor to my prefab, set the ‘Update string’ to point to ‘TextMeshProUGUI.text’ and left ‘String reference’ and ‘Table collection’ empty to configure them in script and it was enough to my goal.