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

cordova-plugin-chrome-apps-i18n

v2.0.1

Published

This plugin allows apps to present localised content to users according to the language / locale settings on their device.

Downloads

5

Readme

chrome.i18n Plugin

This plugin allows apps to present localised content to users according to the language / locale settings on their device.

Status

Stable on Android and iOS.

Reference

The API reference is here.

Usage (with a Chrome Apps)

To use the plugin, create a _locales directory within your web assets directory. Inside this, create a directory for each locale for which you can supply translations. See the API reference above for the format of the files to place in those directories, and for the documentation of functions in the chrome.i18n namespace.

Usage (with a vanilla Apache Cordova App)

This plugin can be used by Apache Cordova applications, but some of the automated installation steps must be done manually:

  • The specific locale directories within CCA_locales must be lower-cased, with an underscores separating the country code from the language code, if it is present. For example, en and en_us will be read as locale directories, but en-us, en_US and en-US will not.

Limitations

  • On iOS, placeholders within manifest.json and .css files are not replaced (if you want this, file an issue!)

Release Notes

2.0.1 (April 30, 2015)

  • Renamed plugin to pubilsh to NPM

2.0.0 (Mar 24, 2015)

  • CCA_locales -> _locales now that we build with gradle
  • Now works better in CADT (but paths need to be lower-case and use _s rather than -s)

1.1.1 (Mar 18, 2015)

  • Improved performance of CSS substitutions

1.1.0 (Mar 17, 2015)

  • Fix to work with non-file:///android_asset start URLs

1.0.3 (Jan 27, 2015)

  • Change from using okhttp's Base64 to Android's Base64

1.0.2 (October 21, 2014)

  • Documentation updates.

1.0.1 (March 10, 2014)

  • Fix incorrect file: URL building in ChromeI18n.java