Skip to content

Commit ac7da2d

Browse files
committed
Do not check if the language directory contains default language file
1 parent 5e8acf7 commit ac7da2d

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

Flow.Launcher.Core/Resource/Internationalization.cs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -118,16 +118,8 @@ private void AddPluginLanguageDirectories()
118118
var pluginLanguageDir = Path.Combine(dir, Folder);
119119
if (!Directory.Exists(pluginLanguageDir)) continue;
120120

121-
// Check if the language directory contains default language file
122-
if (File.Exists(Path.Combine(pluginLanguageDir, DefaultFile)))
123-
{
124-
// Add the plugin language directory to the list
125-
_languageDirectories.Add(pluginLanguageDir);
126-
}
127-
else
128-
{
129-
API.LogError(ClassName, $"Can't find default language file in path <{pluginLanguageDir}>");
130-
}
121+
// Check if the language directory contains default language file since it will be checked later
122+
_languageDirectories.Add(pluginLanguageDir);
131123
}
132124
}
133125
}

0 commit comments

Comments
 (0)