Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@ied/onesky

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ied/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.

latest
npmnpm
Version
0.0.13
Version published
Maintainers
2
Created
Source

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

FAQs

Package last updated on 04 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts