How can I access to the whole Antl object? (Internationalization with adonis.js)

Im using the Antl object to use internationalization with my validation messages. It works fine with that. Antl object works with a database´s table called locales, wich uses to get the messages. I added a column to this locales table in order to save some extra data about each record. When you run the aplication adonis.js makes a select * from locales query and it gets all the data from that table so you don´t have to access to the database. But I can´t find a method or a way to get that extra data from the Antl object, is there a way to do it?

this is the way I get the object

const Antl = use('Antl')

I´m currently using the version 4.1 of adonis and using this link

Source: JavaSript – Stack Overflow

November 30, 2021
Category : News
Tags: adonis.js | internationalization | javascript

Leave a Reply

Your email address will not be published. Required fields are marked *

Sitemap | Terms | Privacy | Cookies | Advertising

Senior Software Developer

Creator of @LzoMedia I am a backend software developer based in London who likes beautiful code and has an adherence to standards & love's open-source.