Socket
Socket
Sign inDemoInstall

@marreman/elm-i18next

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@marreman/elm-i18next

Generate Elm modules from i18n translation JSON files.


Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

⚠️ Work in progress ⚠️

elm-i18next

Generate Elm from i18next JSON files.

Install

npm install @marreman/elm-i18next

Use

Given a JSON file english.json with the following contents.

{ "hello": "Hello, World!" }

Generate Elm from the JSON file using the default options.

elm-i18next < ./english.json

This will create a file src/Text.elm with the following contents.

module Text exposing (..)


hello : String
hello =
    "Hello, World!

Please take a look at the more elaborate example to learn more.

Develop

The project has the following dependencies (later versions will most likely work).

  • elm: 0.19.1
  • elm-test: 0.19.1-revision6
  • node: v14.16.0

Either use the included shell.nix to get going or install the them on your own.

Keywords

FAQs

Package last updated on 06 Mar 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc