Locales are not saved after editing in script.

Hi, I’ve written a script to edit Locale, but when I save and reopen Unity, Locale reverts to the previous state.

I’m using
LocalizationEditorSettings.GetStringTableCollection(TABLE_NAME).StringTables[0].AddEntry(KEY, LOCALE)
and
LocalizationEditorSettings.GetStringTableCollection(TABLE_NAME).RemoveEntry(ENTRY)
for modifying locales.

Are the changes made by these not saved?

OK, I see for using SetDirty()
It is difficult to understand how to use the API only…

1 Like