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 🙏

© 2026 – Pkg Stats / Ryan Hefner

ngx-xlf-xlsx

v0.3.0

Published

A simple CLI to convert back and forth between XLIFF and XLSX files in Angular projects.

Readme

ngx-xlf-xlsx

NPM Version GitHub

A simple CLI to convert back and forth between XLIFF (.xlf) and Excel (.xlsx) files in Angular projects.

Installation

Installation, either local or global, is possible, though not recommended.

Instead, call the tool using npx and ask for the latest version, as shown in the next section.

npm install ngx-xlf-xlsx

Workflow / How to Use

In your Angular project's root directory, run:

  1. Extract the source strings from the Angular app:

    ng extract-i18n --output-path src/locale
  2. Run the CLI:

    npx ngx-xlf-xlsx@latest

    For other package managers:

    • pnpm: pnpx ngx-xlf-xlsx@latest
    • yarn: yarn dlx ngx-xlf-xlsx@latest
  3. Translate the strings in the Excel file in translations.xlsx.

    The file is automatically created in the root of the project if needed.

  4. Run the CLI again:

    npx ngx-xlf-xlsx@latest

Requirements, Assumptions, and Precautions

  • The Angular project is using @angular/localize to manage internationalization.
  • The project is configured with the different locales in angular.json file, as key-value pairs, where the key is the locale name and the value is the path to the XLF file.
  • translations.xlsx is used for translations. If the file already exists and contains other kinds of data, it will be overwritten and the data will be LOST.
  • The CLI will remove any obsolete translations from the Excel file.
  • The CLI will overwrite the content of the non-source XLF files. Make sure to back them up if you want to keep them. If you want to keep them, make a backup of the file before running the CLI.
  • Source strings cannot contain patterns like ${{variable}}, as they are considered as placeholders and will be attempted to be deserialized as such.
  • Strings with multiple placeholders have to have names specified for each placeholder.

Migration

If you are migrating from Walter's tool™️, check out the migration guide.

Error Reference

json: cannot unmarshal object into Go struct field .projects.i18n.locales of type main.Path

This error occurs when the angular.json config file does not have the expected shape for the i18n configuration.

the locales must be specified as a key-value object, where the key is the locale name and the value is the path to the XLF file.

Example:

{
 "projects": {
  "i18n": {
   "locales": {
    "fr": "src/locale/messages.fr.xlf",
    "nl": "src/locale/messages.nl.xlf",
    "de": "src/locale/messages.de.xlf"
   }
  }
 }
}