Internationalization Module
Install
npm install --save @ribajs/i18n
Regist
To regist the module import import i18nModule from '@ribajs/i18n';
and any LocalesService
in your main.ts
file and regist the module with riba.module.regist(i18nModule(localesService));
:
import { coreModule, Riba, Utils } from '@ribajs/core';
import { LocalesService } from '@ribajs/shopify-tda';
import i18nModule from '@ribajs/i18n';
const riba = new Riba();
const localesService = new LocalesService();
const model = {};
riba.module.regist(coreModule);
riba.module.regist(i18nModule(localesService));
Utils.domIsReady(() => {
riba.bind(document.body, model);
});