From f169b097c027213b7aef3c6c6aab076575e9b104 Mon Sep 17 00:00:00 2001 From: Finn Brewer Date: Tue, 23 Jul 2024 15:12:48 -0700 Subject: [PATCH] fix: language templates not working with new dictionary style --- data/language_templates/lithuanian.toml | 40 ++++++++++++++----------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/data/language_templates/lithuanian.toml b/data/language_templates/lithuanian.toml index 73395b5..c858717 100644 --- a/data/language_templates/lithuanian.toml +++ b/data/language_templates/lithuanian.toml @@ -1,23 +1,29 @@ # Indo-European | Baltic | Full Support model = "lt" -dicts = [ - [ - "Main", - { t = "EkalbaBendrines" }, - ], - [ - "Secondary", - { t = "EkalbaDabartines" }, - ], - [ - "Lithuanian Wiktionary", - { t = "Wiktionary", c = [ - "en", - "Lithuanian", - ] }, - ], -] frequency_list = true spyglys_details = true run_on_lemmas = ["remove_universal_prefix"] suggest_on_lemmas = ["root_verb", "unreflexify", "remove_verb_prefix"] + +[[dicts]] +name = "Main" +fetch_by_default = true + +[dicts.specific_settings] +t = "EkalbaBendrines" + +[[dicts]] +name = "Secondary" +run_when_not = "Main" +fetch_by_default = true + +[dicts.specific_settings] +t = "EkalbaDabartines" + +[[dicts]] +name = "Lithuanian Wiktionary" +fetch_by_default = false + +[dicts.specific_settings] +t = "Wiktionary" +c = ["en", "Lithuanian"]