ilib-loctool-webos-json-resource

A loctool plugin that knows how to process JSON resource files

Usage no npm install needed!

<script type="module">
  import ilibLoctoolWebosJsonResource from 'https://cdn.skypack.dev/ilib-loctool-webos-json-resource';
</script>

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 plugins is optimized for webOS platform.

Release Notes

v1.3.8

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

v1.3.7

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

v1.3.6

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

v1.3.5

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

v1.3.4

  • Update 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

  • Support 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.0

  • Generate ilibmanifest.json file
    • Updated code to generate ilibmanifest.json file not to load unnecessary locale directories. It's implemented in projectClose() v1.1.1
  • Changed the way of generating manifestfile. it scans the resource output directory then add a list if the file exists.

License

Copyright (c) 2019-2021, JEDLSoft

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

See the License for the specific language governing permissions and limitations under the License.