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

foundry-magic-l10n

v1.0.8

Published

A CLI tool for interacting with the Foundry Magic L10n service.

Downloads

4

Readme

ALPHA - Foundry Magic L10n 🪄

Patreon

A CLI tool for interacting with the Foundry Magic Localization service, with a dose of magic.

What is this, exactly?

This CLI tool allows you, a module or system developer, to generate 15 different localization files in the FoundryVTT "language file" format. This utilizes AWS Translate - a "fluent and accurate machine translation" engine. It takes your base English translations, and converts them into language files for you to download and include in your own modules and systems.

Installation

$ npm install -g foundry-magic-l10n

This will install the tool on your computer globally.

Running

  1. Run foundry-magic-l10n run <your_manifest_url_here>. This must be a direct URL to the manifest file itself, and must be publicly accessible on the internet.
  2. Your job has now been started! Check up on the processing time of the job by running foundry-magic-l10n list. Jobs usually take around 15 - 20 minutes to complete.
  3. Once completed, when you run foundry-magic-l10n list you should see COMPLETED associated to your job, and a download URL. Inside the downloaded zip file is a README which explains the next steps.

Supported Languages

We currently support all of the community-provided core translations.

  • Arabic (ar)
  • Catalan (ca)
  • Czech (cs)
  • Chinese (Simplified) (cn)
  • Chinese (Traditional) (zh-TW)
  • French (fr)
  • German (de)
  • Italian (it)
  • Japanese (ja)
  • Korean (ko)
  • Polish (pl)
  • Portuguese (pt-BR)
  • Russian (ru)
  • Spanish (es)
  • Swedish (sv)

Known Limitations

  • Only ONE individual can be running translation jobs at one time. We're aware this is an insane limitation, and we're working on getting the quota limits increased. 🙈 Sorry! You're welcome to try running the run command and seeing if the service is currently available for you.
  • Jobs take 15 - 20 minutes to run - just how AWS Translate's batch processing works, even for smaller amounts of text

FAQ

  • What is the "Foundry Magic L10n Service"?
    • Also built by myself, it's a AWS-powered service to execute the heavy lifting of marshaling the module files, translating them, creating the downloads, etc. This tool interacts with that service,
  • Is this a complete replacement for human-translated strings?
    • Nope - AWS Translate is really good, but there will always be things that a human will translate better than a machine.
  • How "good" are the translations? Can I trust them to make sense to native speakers?
  • Will this generate files for existing translations / language files I have within my module?
    • Yes it will - it will generate all the supported languages. If you have existing translations, this tool will only generate new translations based off any missing translations from your English language file. All language files are generated as [language]-magicl10n.json to be able to easily separate which are machine-translated and which are human-translated.
  • I got an error or found a bug, where do I report it?
    • Please add an issue here. Thanks!