vibe.d beta banner
get vibe.d
0.10.0

Asynchronous I/O that doesn’t get in your way, written in D

Function translate

Translates a line of text based on the traits passed to the Diet parser.

string translate(TRAITS...) (
  string text,
  string context = null
);

The input text may contain string interpolations of the form #{...} or !{...}, where the contents form an arbitrary D expression. The translation function is required to pass these through unmodified.

Authors
Copyright
License