mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-25 20:42:50 -06:00
server: changes lang field to name
This commit is contained in:
@@ -102,9 +102,9 @@ doLinearize pgf tree mto = showJSON $ map toJSObject
|
||||
|
||||
doLanguages :: PGF -> JSValue
|
||||
doLanguages pgf = showJSON $ map toJSObject
|
||||
[[("lang", showJSON l),
|
||||
("languageCode", showJSON $ fromMaybe "" (PGF.languageCode pgf l)),
|
||||
("canParse", showJSON $ PGF.canParse pgf l)]
|
||||
[[("name", showJSON l),
|
||||
("languageCode", showJSON $ fromMaybe "" (PGF.languageCode pgf l)),
|
||||
("canParse", showJSON $ PGF.canParse pgf l)]
|
||||
| l <- PGF.languages pgf]
|
||||
|
||||
doCategories :: PGF -> JSValue
|
||||
|
||||
Reference in New Issue
Block a user