Update variable names and comments for interface-based transliteration

This commit is contained in:
2021-10-04 20:23:54 -07:00
parent 6b94030b83
commit c56c0ae198
3 changed files with 7 additions and 7 deletions

View File

@@ -73,7 +73,7 @@ func initNotifRelay(dev *infinitime.Device) error {
}
maps := viper.GetStringSlice("notifs.translit.use")
translit.Maps["custom"] = translit.Map(viper.GetStringSlice("notifs.translit.custom"))
translit.Transliterators["custom"] = translit.Map(viper.GetStringSlice("notifs.translit.custom"))
sender = translit.Transliterate(sender, maps...)
summary = translit.Transliterate(summary, maps...)
body = translit.Transliterate(body, maps...)