How to add a new entry in localization tables by Script?

I am able to create a new StringTableEntry but I can’t save the value of the text, I tried with

var table = LocalizationSettings.StringDatabase.GetTable("MyTable",LocalizationSettings.SelectedLocale);

the entry is created, but the text isn’t saved
maybe i am getting the wrong localized data table?

i am using Unity 2019.4.28f1 on ArchLinux
Localization 1.0.0-pre.9

You need to call EditorUtility.SetDirty on the table and the Shared Table Data as they are both assets.