UNPKG

524 BJavaScriptView Raw
1'use strict';
2
3const {
4 ServiceProvider
5} = require('adonis-fold');
6
7class LintlProvider extends ServiceProvider {
8 /**
9 * Register method called by the Ioc container
10 * to register the provider
11 *
12 * @method register
13 *
14 * @return {void}
15 */
16 * register() {
17 this.app.singleton('Lesswork/Src/Lintl', function (app) {
18 const Lintl = require('../src/Lintl');
19
20 return new Lintl(use('App'), use('Helpers'), use('Config').get('app.fallback_locale'));
21 });
22 }
23}
24
25module.exports = LintlProvider;
\No newline at end of file