Skip to content

Language and hyphenation#

The frontend language and hyphenation interface is closely related to the backend interface.

func GetLanguage(langname string) (*lang.Lang, error)

Request a language object from a string like en or en_US.

These language strings are known to the boxes and glue frontend:

bg, ca, cs, cy, da, de, el, en, en, en, eo, es, et, eu, fi, fr, ga, gl, grc, gu, hi, hr, hu, hy, id, is, it, ku, kn, lt, ml, lv, nb, nl, nn, no, pl, pt, ro, ru, sk, sl, sc, sv, tr, uk.