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

ilib-loctool-webos-json-resource

v1.6.1

Published

A loctool plugin that knows how to process JSON resource files

Downloads

1,588

Readme

ilib-loctool-webos-json-resource

ilib-loctool-webos-json-resource is a plugin for the loctool that allows it to read and localize JSON resource files. This plugin is optimized for the webOS platform.

JSONResource FileType

This plugin is for generating JSON type resource files from JavaScript, C, and Cpp source file types. The default JSON resource file name is strings.json which is for a JavaScript type. In order to generate other resource file names, The following setting is needed in your project.json file.

 "settings": {
    "resourceFileNames": {
        "c": "cstrings.json",
        "cpp": "cppstrings.json"
    }
}

Sample

The simple sample is provided in the ilib-loctool-samples repository. Please check the webos-js, webos-c, webos-cpp, and webos-dart samples to see what JSON files look like.

License

Copyright (c) 2019-2024, JEDLSoft

This plugin is license under Apache2. See the LICENSE file for more details.

Release Notes

v1.6.1

  • Updated dependencies. (loctool: 2.24.0)

v1.6.0

  • Updated to support Dart filetype localization output.
    • The following settings value is need in your project.json file to get proper ouput.
    "settings": {
      "dart": {
          "mappings": {
              "**/*.dart": {
                  "template": "[dir]/assets/i18n/[localeUnder].json"
              }
          }
      },
    }
  • Converted all the unit tests from nodeunit to jest.

v1.5.8

  • Updated to use ilib's Locale class for locale parsing.
  • Removed npm-shrinkwrap.json. It takes a bigger memory size than I expected on webOS. so I decided not to maintain the file here.

v1.5.7

  • Updated loctool dependency information to be written both peerDependencies and devDependencies.

v1.5.6

  • Moved loctool package to peerDependencies in package.json.

v1.5.5

  • Moved loctool packages to dependencies in package.json because it is actually used in codes.

v1.5.4

  • Updated dependencies. (loctool: 2.23.1)
  • Updated to be included npm-shrinkwrap.json in the published files.

v1.5.3

  • Updated dependencies. (loctool: 2.22.0)

v1.5.2

  • Updated dependencies. (loctool: 2.21.0)

v1.5.1

  • Fixed to generate ilibmanifest.json file correctly even when a dummy file exists.

v1.5.0

  • Added a timestamp in ilibmanifest.json file to support wee localization.
  • Updated to skip writing ilibmanifest.json creation logic if it has already been done in another plugin.

v1.4.2

  • Updated dependent module version to have the latest one.(loctool: 2.20.2)

v1.4.1

  • Updated dependent module version to have the latest one.(loctool: 2.20.0)

v1.4.0

  • Updated dependencies. (loctool: 2.18.0)
  • Added ability to override language default locale.

v1.3.11

  • Updated dependencies. (loctool: 2.17.0)
  • Removed source and target comparison code when generating resources.
    • en(en-US) (source: Programme, target: Channel)
    • en/GB (source: Programme, target: Programme)

v1.3.10

  • Updated dependencies. (loctool: 2.16.3)
  • Used the logger provided by the loctool instead of using log4js directly.
  • Added node 16 version testing for circleCI. (minimum version of node is v10.0.0)
  • Fixed not to generate empty directory if content is empty even locale is in target list.

v1.3.9

  • Updated dependent module version to have the latest one.(loctool: 2.16.2)

v1.3.8

  • Updated dependent module version to have the latest one.(loctool: 2.14.1)

v1.3.7

  • Updated dependent module version to have the latest one.(loctool: 2.13.0)

v1.3.6

  • Fixed newFile() to get locale parameter for convert feature
  • Updated dependent module version to have the latest one.(loctool: 2.12.0)

v1.3.5

  • Updated dependent module version to have the latest one.(loctool: 2.10.3)

v1.3.4

  • Updated dependent module version to have the latest one.

v1.3.3

  • Changed en-US translation data to be located in the resource root directory.
  • Fixed not to generate resource file when the content is empty.
  • Fixed to generate ilibmanifest.json file properly in the nested project localization case.

v1.3.2

  • Changed the default Resource output directory to resources

v1.3.1

  • Fixed dependent loctool module version

v1.3.0

  • Fixed code in order not to inherit from FileType.
  • Fixed resource target path for the output to go to the project's target location properly.
  • Updated code to print log with log4js.

v1.2.0

  • Supported various resourceOutput file name. It can be specified according to project type.
    • If the project type is c or cpp program, it should be written in project configuration.
      "settings": {
          "locales": ["en-US", "ko-KR", "zh-Hans-CN"],
          "resourceFileNames": {
              "c": "cstrings.json",
              "cpp": "cppstrings.json"
          }
      }

v1.1.1

  • Changed the way of generating manifestfile. it scans the resource output directory then add a list if the file exists.

v1.1.0

  • Generated ilibmanifest.json file.
    • Updated code to generate ilibmanifest.json file not to load unnecessary locale directories. It's implemented in projectClose()