1
1
mirror of https://github.com/MarginaliaSearch/MarginaliaSearch.git synced 2025-10-05 21:22:39 +02:00

(config) Fix language config pickup

This commit is contained in:
Viktor Lofgren
2025-09-16 10:43:27 +02:00
parent c231a82062
commit 924fb05661

View File

@@ -98,7 +98,7 @@ public class LanguageConfiguration {
throws IOException, ParserConfigurationException, SAXException {
fastTextLanguageModel.loadModel(lm.fasttextLanguageModel.toString());
try (var languagesXmlStream = ClassLoader.getSystemResourceAsStream("languages.xml")) {
try (var languagesXmlStream = findLanguageConfiguration()) {
if (languagesXmlStream == null)
throw new IllegalStateException("languages.xml resource not found in classpath");