Closed ribsdigital closed 1 month ago
Hi,
yeah i think this is fixed, just not released 😞 - which is why the code looks OK, behaves ok in your test but doesn't when it comes to actually running it.
the fix was made late June, but there hasn't actually been a release since then - so its not public.
I will take a look see what (if anything) else is pending and push at least an overnight release out to fix this for you.
the fix has been released in v13.2.5 now.
thank you for the swift turn around kevin! we've just updated to v13.2.5 and tested, works like a charm 😉
Describe the bug Some languages have duplicate key values in the generated config files resulting in not being able to run a uSync import.
To Reproduce Steps to reproduce the behavior:
Arabic (world)
(iso codear-001
) andChinese (Simplified, China)
(iso codezh-Hans-CN
)Error: Duplicate: Item key 00001000-0000-0000-0000-000000000000 already exists for \zh-hans-cn.config - run uSync Health check for more info.
There are multiple clashes where items of the same type share the same keys.
To fix this perform a clean export from the uSync dashboard
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
protected override XElement InitializeBaseNode(ILanguage item, string alias, int level = 0) { // language guids change all the time ! we ignore them, but here we set them to the 'id' // this means the file stays the same!
}
var isoCodes = new List { "en-US", "ar-001", "es-ES", "fr-FR", "id-ID", "pt-PT", "zh-Hans-CN" };
var output = new Dictionary<string, Guid>();
foreach (var isoCode in isoCodes) { var cultureInfo = CultureInfo.GetCultureInfo(isoCode);
}