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.
This commit is contained in:
Senén Rodero Rodríguez
2023-06-20 14:00:44 +02:00
parent 1d7c821935
commit 3c3ff65be1

View File

@@ -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