0.0.13 • Published 4 years ago

@ied/onesky v0.0.13

Weekly downloads
154
License
MIT
Repository
github
Last release
4 years ago

onesky

Import/export translations from/to OneSky and use them to translate text directly in your app. No dependency, it runs at frontend and backend.

How to ?

Use translation algorithm

import OneSky from '@ied/onesky'
import translations from './translations.json'

const i18n = new OneSky(translations, 'fr')

// translate "completed" to french feminine plural
i18n.translate('completed', 'fp')

// translate with variables
i18n.translate('hi ${firstName} ${lastName}', null, {
  firstName: Bruce,
  lastName: Wayne
})

Convert

You can see an overview of the format in this issue or browsing project files.

npm i -g @ied/onesky

Import

en.json, fr.json, de.json, da.json, es.json, fr_CA.jsontranslations.json

onesky import

Export

translations.jsonen.json, fr.json, de.json, da.json, es.json, fr_CA.json

onesky export

Preview

Screenshot

0.0.13

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

5 years ago

0.0.8

6 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

0.0.0

7 years ago