From eff4301027780994a332ea6aa0c7c1a771ddc912 Mon Sep 17 00:00:00 2001 From: Lucien Greathouse Date: Tue, 8 Jan 2019 18:30:09 -0800 Subject: [PATCH] Add case in reconciler to handle LocalizationTable Contents --- plugin/src/Reconciler.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugin/src/Reconciler.lua b/plugin/src/Reconciler.lua index 60e637a7..db0728e2 100644 --- a/plugin/src/Reconciler.lua +++ b/plugin/src/Reconciler.lua @@ -60,6 +60,13 @@ local function makeInstanceMap() end local function setProperty(instance, key, value) + -- The 'Contents' property of LocalizationTable isn't directly exposed, but + -- has corresponding (deprecated) getters and setters. + if key == "Contents" and instance.ClassName == "LocalizationTable" then + instance:SetContents(value) + return + end + local ok, err = pcall(function() if instance[key] ~= value then instance[key] = value