You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From @prestontw : each parser could call out to a separate file for aria-labels, which contains an index of all the labels for all the node-types, indexed by human language.
So new Literal(l.from, l.to, v, {aria-label: `${v}, un Numero`}) would become something like: new Literal(l.from, l.to, v, {aria-label: `${v}, ${labels.getLabelFor("number")["Spanish"]}`})
The text was updated successfully, but these errors were encountered:
It's weird that this is done in the parser. I've put a function called .shortDescription() on ASTNode(). As is, it just looks up options["aria-label"]. But instead, the method could be .shortDescription(language), and everything that uses "aria-label" could instead call .shortDescription().
We now have pluralization, enumeration, and support for multiple languages? It might be time to adopt an actual internationalization library.
From @prestontw : each parser could call out to a separate file for
aria-labels
, which contains an index of all the labels for all the node-types, indexed by human language.So
new Literal(l.from, l.to, v, {aria-label: `${v}, un Numero`})
would become something like:new Literal(l.from, l.to, v, {aria-label: `${v}, ${labels.getLabelFor("number")["Spanish"]}`})
The text was updated successfully, but these errors were encountered: