ensures that all future translations check if the default translation has the key.

This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD
2024-11-11 09:06:19 -07:00
parent 9cd8030808
commit c9c8fc8705

View File

@@ -107,7 +107,10 @@ namespace CarCareTracker.Helper
{
foreach(var translation in translationDictionary)
{
defaultTranslation[translation.Key] = translation.Value;
if (defaultTranslation.ContainsKey(translation.Key))
{
defaultTranslation[translation.Key] = translation.Value;
}
}
}
return defaultTranslation ?? new Dictionary<string, string>();