Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

fix for invariant/empty culture #443

Merged
merged 2 commits into from
Dec 14, 2018
Merged

Conversation

lauren-mills
Copy link
Contributor

Description

Fix to use defaultLocale when CultureInfo is "iv".

Related Issue

fixes #442

Testing Steps

  • Set locale field in emulator to empty
  • Verify the default locale config is used

@kendomen
Copy link

Even with the above change, the CalendarSkill throws an exception in MainDialog.cs line 233.

"Skill Error: The given key 'iv' was not present in the dictionary. | at System.Collections.Generic.Dictionary`2.get_Item(TKey key)\r\n at CalendarSkill.MainDialog.OnInterruptDialogAsync(DialogContext dc, CancellationToken cancellationToken) in D:\assist-modify\new\AI\solutions\Virtual-Assistant\src\csharp\skills\calendarskill\Dialogs\Main\MainDialog.cs:line 233\r\n

@lauren-mills
Copy link
Contributor Author

@kendomen I added a change. Please try it and let me know!

@kendomen
Copy link

@lauren-mills yes that works great! thanks!

@lauren-mills lauren-mills merged commit 58ee002 into master Dec 14, 2018
@lauren-mills lauren-mills deleted the lamil/invariant_culture_fix branch December 14, 2018 14:53
lauren-mills added a commit that referenced this pull request Apr 18, 2019
* fix for invariant/empty culture

* updated setlocalemiddleware
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Virtual Assistant Error: The given key 'iv' was not present in the dictionary.
3 participants