Raku Programming Language Now Supports Writing Code in Italian and Other Languages
The Raku programming language ecosystem now includes over a dozen localisation modules under the L10N namespace, allowing developers to write code using non-English keywords in their native languages. These modules work by attaching a role to the Raku grammar that replaces built-in English keywords with translated equivalents, such as Italian's 'il-mio' for 'my' and 'dillo' for 'say'. A developer recently contributed three new modules to the family, with the Italian module L10N::IT enabling fully functional Italian-syntax Raku programs. The system also supports reverse translation, allowing localised source code to be deparsed back into standard English Raku via the .AST and .DEPARSE methods. Contributors looking to add support for missing languages can generate a module template from a simple text file mapping standard Raku keywords to their translations.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in