react-native-proximus-language-translation

2.0.0 • Public • Published

Build Status

Build Status Master(Master)

Build Status Dev(Dev)

@proximus/react-native-language-translation

Getting started

$ npm install @proximus/react-native-language-translation --save

Usage

import {setup, getTranslation} from '@proximus/react-native-language-translation';
 
setup({
    fallbackLanguage: 'en',
    transaltions: {
      en: {
        welcome: 'Welcome',
      },
      fr: {
        welcome: 'Welcome',
      },
      nl: {
        welcome: 'Welkom',
      },
    }
})
 
// In you code/templates
getTranslation('key')
 
// Or with optional parameters based on https://github.com/fnando/i18n-js
getTranslation('key', params)

ChangeLog

Version 1.1.0

  • Simplified code and fixed fallback to default locale

Version 1.0.1

  • Implemented basic features

Version 1.0.0

  • Library created

Readme

Keywords

Package Sidebar

Install

npm i react-native-proximus-language-translation

Weekly Downloads

11

Version

2.0.0

License

none

Unpacked Size

37.6 kB

Total Files

24

Last publish

Collaborators

  • mathieusoupart-pxs