From 3c3ff65be11352b55108683f41021f2d96aa5a85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sen=C3=A9n=20Rodero=20Rodr=C3=ADguez?= <15726+Senen@users.noreply.github.com> Date: Tue, 20 Jun 2023 14:00:44 +0200 Subject: [PATCH] Update search dictionaries Since the creation of this list 3 years ago we added more languages to the application and PostgreSQL added more dictionaries too. --- lib/search_dictionary_selector.rb | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/search_dictionary_selector.rb b/lib/search_dictionary_selector.rb index 8e0747f5b..8da907a71 100644 --- a/lib/search_dictionary_selector.rb +++ b/lib/search_dictionary_selector.rb @@ -1,22 +1,32 @@ module SearchDictionarySelector SQL_QUERY = "SELECT cfgname FROM pg_ts_config".freeze I18N_TO_DICTIONARY = { + ar: "arabic", + ca: "catalan", de: "german", dk: "danish", + el: "greek", en: "english", es: "spanish", + eu: "basque", fi: "finnish", fr: "french", + ga: "irish", hu: "hungarian", + id: "indonesian", it: "italian", + lt: "lithuanian", nb: "norwegian", + ne: "nepali", nl: "dutch", nn: "norwegian", pt: "portuguese", ro: "romanian", ru: "russian", + sv: "serbian", sv: "swedish", - tr: "turkish" + tr: "turkish", + yi: "yiddish" }.freeze class << self