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

ember-l10n-crowdin

v0.1.2

Published

Manage translations for ember-l10n on crowdin.com

Downloads

2

Readme

ember-l10n-crowdin

Manage translations files from ember-l10n with Crowdin.

Build Status Ember Observer Score npm version

Compatibility

  • Node 8 and above

Installation

ember install ember-l10n-crowdin

Usage

ember crowdin:pull
ember crowdin:push

Make sure to update the config/crowdin.js file with the correct configuration for your project.

crowdin:pull

Pull translations from Crowdin, and update the _locale_.po files locally.

Options:

  • project: The project ID on Crowdin
  • api-key: The API key for this Crowdin project
  • crowdin-folder-name: The folder name for the export from Crowdin. See "Crowdin Setup" for details on this
  • translations-dir: The local directory where translation files are stored. Default: ./translations
  • locale: One or multiple locales to download. If not set, all locales will be overwritten.

Example usages:

ember crowdin:pull # Pull all translations
ember crowdin:pull --locale de # Only pull German
ember crowdin:pull --locale de --locale es # Pull German and Spanish

crowdin:push

Push the translation source file to Crowdin, and update it there.

Options:

  • project: The project ID on Crowdin
  • api-key: The API key for this Crowdin project
  • crowdin-file-name: The file name for the translation file on Crowdin
  • translations-dir: The local directory where translation files are stored. Default: ./translations
  • translations-file: The local file name for the translation source file. Default: messages.pot

Example usages:

ember crowdin:push # Push file as configured in config/crowdin.js

Crowdin Setup

You will need to ensure the export filenames for your project are setup correctly in Crowdin.

To do that, go to your Project > Settings > Files.

Then, double click on the file that maps to your ember-l10n project.

In the field "Resulting file name when exported", enter something like this:

/my-project-name/%locale_with_underscore%.po

Where my-project-name would be what needs to be set as crowdinFolderName option.

For the default options (from the auto-generated config/crowdin.js file), you would need the following settings:

  • Make sure the source file is uploaded as messages.pot
  • Set the "Resulting file name when exported" to /messages/%locale_with_underscore%.po

You can configure the "locale_with_underscore" settings for the locales in Crowdin via Project > Settings > General Settings > Add custom language codes > Language Mapping.

License

This project is licensed under the MIT License.