1. An apparatus for automatically internationalizing grammatical output for presentation to a user of a program based on the user's locale, the apparatus comprising at least one processor and at least one memory including computer program code, the at least one memory and the computer program code configured to, with the at least one processor, cause the apparatus to at least: modify an Abstract Syntax Tree (AST) in response to compilation by a compiler of a predefined AST transformation; compile a portion of source code, wherein the portion of source code is configured for generating grammatical output to the user of a program following compilation of the predefined AST transformation, wherein the portion of source code comprises a predefined token; reference a modified node of the AST during compilation of the portion of source code in response to compiling the predefined token; generate a programming method in response to referencing the modified node of the AST during compilation of the portion of source code; incorporate the programming method into a file produced by the compiler, wherein the programming method is configured to call an instance of a message bundle file, and wherein the message bundle file is configured to define an entry key value in a natural language, wherein the natural language is based on a locale of the user.
1. An apparatus for automatically internationalizing grammatical output for presentation to a user of a program based on the user's locale, the apparatus comprising at least one processor and at least one memory including computer program code, the at least one memory and the computer program code configured to, with the at least one processor, cause the apparatus to at least: modify an Abstract Syntax Tree (AST) in response to compilation by a compiler of a predefined AST transformation; compile a portion of source code, wherein the portion of source code is configured for generating grammatical output to the user of a program following compilation of the predefined AST transformation, wherein the portion of source code comprises a predefined token; reference a modified node of the AST during compilation of the portion of source code in response to compiling the predefined token; generate a programming method in response to referencing the modified node of the AST during compilation of the portion of source code; incorporate the programming method into a file produced by the compiler, wherein the programming method is configured to call an instance of a message bundle file, and wherein the message bundle file is configured to define an entry key value in a natural language, wherein the natural language is based on a locale of the user. 4. The apparatus of claim 1 , wherein the AST transformation is written using Groovy programming language.