npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@hovrcat/eeko

v0.3.11

Published

Translation files manager

Downloads

3

Readme

Problem

Translation files can very easily get disorganized:

  • unordered keys
  • orphan keys
  • out of sync locale files

Solution

The starting point of the project, whether you are starting fresh, or have an existing project is a template file. This will be the source of truth for the structure of your language files.

When the UI launches, it will scan for the template file and, if it does not exist, it will prompt you to create one. All

Installation

$ npm i -g @hovrcat/eeko

Once installed, the eeko CLI utility is available to be run in any Frontend project directory.

Usage

Initialize and configure

Run the interactive configuration utility in the FE project of your choice, to get Eeko set up

$ cd path-to-project
$ eeko init

This will create a .eekorc.json file with the configuration options defined above.

Run the Eeko i18n manager UI

$ eeko ui

This will launch the Eeko i18n manager UI in the default browser.

CLI

| Command | Description | Status | |---------|---------------------------------------------------------------------------------------------|--------| | init | Initialize the Eeko manager | ✅ | | ui | Spin up the Eeko manager server | ✅ | | scan | Crawls the frontend application repository and identifies possibly invalid translation keys | ❌ |

UI

While some actions can be performed via the CLI tool, Eeko comes with a user interface to facilitate the management of your translation files.

Features

Template

The template is responsible with keeping the single source of truth for the locale files JSON structure. Actions:

  • Add, remove, rename keys
  • Toggle conversion of keys from simple to nested
  • Import template structure from existing locale file
  • Search through the tree to locate specific keys
Language file(s)

Language files are generated based on the template structure. Actions:

  • Edit values for keys in the locale
  • Search through the tree to locate specific keys and values

Roadmap

  1. Improve onboarding into new projects
    • Using the tool in an existing project (with possibly out of sync locale files) needs looking into
      • The UI needs to inform the user after importing the template from a locale file, that other locales are out of sync.
  2. Destructive actions (Deleting/Converting keys from the template) should propagate across all locale files
  3. Scanning feature

Project structure

Tech stack

Development

For development, the UI and CORE packages need to be run independently of each other. For this, they need to be executed in DEV mode.

UI

Create a .env file in the UI package, with the following contents

VITE_CORE_DEVMODE=true

This will allow the Vue app to run as standalone and send requests to http://localhost:2016.

$ nx run ui:serve:development

CORE

$ cd packages/core
# start the init command
$ npm run start:init
# start the UI server
$ npm run start:ui