1.6.1 • Published 8 months ago

ilib-loctool-webos-json-resource v1.6.1

Weekly downloads
395
License
Apache-2.0
Repository
github
Last release
8 months ago

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()
1.6.1

8 months ago

1.6.0

8 months ago

1.5.8

1 year ago

1.5.5

1 year ago

1.5.7

1 year ago

1.5.6

1 year ago

1.5.4

1 year ago

1.5.3

1 year ago

1.5.2

1 year ago

1.5.1

2 years ago

1.4.2

2 years ago

1.5.0

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.11

2 years ago

1.3.10

2 years ago

1.3.9

3 years ago

1.3.8

3 years ago

1.3.7

3 years ago

1.3.6

3 years ago

1.3.5

4 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago