Newfangled Package Modernizer

    @energyweb/origin-ui-localization
    TypeScript icon, indicating that this package has built-in type declarations

    0.4.1 • Public • Published

    Energy Web Foundation Logo

    Origin UI Localization

    Description

    Localization library for building Origin marketplace user interface.

    Origin UI Localization is a component of Energy Web Origin's SDK.

    Installation

    This package is available through the npm registry.

    npm install @energyweb/origin-ui-localization
    yarn add @energyweb/origin-ui-localization

    Usage

    In your App.j(t)sx file import and use the initialize function as follows:

    import { initializeI18N } from '@energyweb/origin-ui-localization';
    
    initializeI18N('en');
    
    export const App = () => {
      return (...)
    }

    You can also use the helper function to retrieve the current language from localStorage:

    import { initializeI18N } from '@energyweb/origin-ui-localization';
    import { getOriginLanguage } from '@energyweb/origin-ui-shared-state';
    
    initializeI18N(getOriginLanguage());
    
    export const App = () => {
      return (...)
    }

    Contributing Guidelines

    See contributing.md

    Energy Web Decentralized Operating System

    EW-Origin is a component of the Energy Web Decentralized Operating System (EW-DOS).

    The purpose of EW-DOS is to develop and deploy an open and decentralized digital operating system for the energy sector in support of a low-carbon, customer-centric energy future.

    We develop blockchain technology, full-stack applications and middleware packages that facilitate participation of Distributed Energy Resources on the grid and create open market places for transparent and efficient renewable energy trading.

    • To learn about more about the EW-DOS tech stack, see our documentation

    For a deep-dive into the motivation and methodology behind our technical solutions, read our White Papers:

    Connect with Energy Web

    License

    This project is licensed under the MIT License - see the LICENSE file for details

    Keywords

    none

    Install

    npm i @energyweb/origin-ui-localization

    DownloadsWeekly Downloads

    9

    Version

    0.4.1

    License

    MIT

    Unpacked Size

    138 kB

    Total Files

    9

    Last publish

    Collaborators

    • kyleiankian
    • energywebdev
    • aznagy
    • bagaric
    • pkosin
    • drgorb
    • kroy
    • manihagh