You mean like this for example:
    
    
    const englishColorizedTable =
       {
        "help_cmd_msg": "\t\e[93mhelp\e[39m (show this message)\n\t",
        "exit_cmd_msg": "\e[93mexit\e[39m (quitting the app)\n\t",
        "clear_cmd_msg": "\e[93mclear\e[39m (clear the screen)\n\t",
        "config_create_cmd_msg": "\e[93mconfig\e[39m \e[94mcreate\e[39m 
<\e[95mname\e[39m> (create a config with the given name)"
       }.toTable
    
    const englishTable =
       {
        "help_cmd_msg": "help (show this message)\n\t",
        "exit_cmd_msg": "exit (quitting the app)\n\t",
        "clear_cmd_msg": "clear (clear the screen)\n\t",
        "config_create_cmd_msg": "config create <name> (create a config with 
the given name)"
       }.toTable
    
    var msgTable = englishColorizedTable
    var globalHelp = "Usage:\n" & msgTable["help_cmd_msg"] & msgTable[
        "exit_cmd_msg"] & msgTable["clear_cmd_msg"] & msgTable[
        "config_create_cmd_msg"]
    
    
    Run

Sound's good to me

Reply via email to