0.1.1 • Published 4 years ago

pipe-services v0.1.1

Weekly downloads
71
License
-
Repository
-
Last release
4 years ago

pipe-services

This module provides a service library that can be used by react projects using the node module pipe-automater.

Get started

  1. Create an app with pipe-automater
  2. $ npm install pipe-services
  3. Use services when needed

Usage

I18n

Import and initialize i18n service with the .i18n.json file you want to use.

import { I18n } from 'pipe-services';
import i18File from './YourFileName.i18n.json';
const i18n = new I18n(i18nFile);

// Get translation of string with give id in the current system language
console.log(i18n.translate('hello'));
// Get translation with giving an option array to substitute each variable in {} included in the string 
console.log(i18n.translate('hello', ['planet']));

Hoc

Higher order components for components, modules and views. They are also used when running $ npm run add inside the template

0.1.1

4 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.1.0

5 years ago