{"id":19777449,"url":"https://github.com/ilib-js/ilib-loctool-webos-json-resource","last_synced_at":"2025-04-30T19:32:25.415Z","repository":{"id":35142427,"uuid":"204869009","full_name":"iLib-js/ilib-loctool-webos-json-resource","owner":"iLib-js","description":"JSON resource file handler plugin for webos platform loctool","archived":true,"fork":false,"pushed_at":"2025-02-19T01:16:39.000Z","size":480,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"develop","last_synced_at":"2025-03-20T12:20:44.428Z","etag":null,"topics":["localization"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/ilib-loctool-webos-json-resource","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iLib-js.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-28T07:02:28.000Z","updated_at":"2025-02-19T02:04:16.000Z","dependencies_parsed_at":"2024-01-03T03:03:00.098Z","dependency_job_id":"f66ba43e-465e-4401-89a8-cae72d5a248a","html_url":"https://github.com/iLib-js/ilib-loctool-webos-json-resource","commit_stats":{"total_commits":147,"total_committers":5,"mean_commits":29.4,"dds":0.04081632653061229,"last_synced_commit":"55a37d3b7599f4c24555fafdd6230309e1970ad2"},"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLib-js%2Filib-loctool-webos-json-resource","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLib-js%2Filib-loctool-webos-json-resource/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLib-js%2Filib-loctool-webos-json-resource/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLib-js%2Filib-loctool-webos-json-resource/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iLib-js","download_url":"https://codeload.github.com/iLib-js/ilib-loctool-webos-json-resource/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251769488,"owners_count":21640912,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["localization"],"created_at":"2024-11-12T05:24:55.739Z","updated_at":"2025-04-30T19:32:25.409Z","avatar_url":"https://github.com/iLib-js.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003e :warning: **Deprecation Notice** :warning:\n\u003e This repository has been deprecated. Please use the corresponding package from the [ilib-mono-webos](https://github.com/iLib-js/ilib-mono-webos) instead.\n\n# ilib-loctool-webos-json-resource\nilib-loctool-webos-json-resource is a plugin for the loctool that\nallows it to read and localize JSON resource files. This plugin is optimized for the webOS platform.\n\n### JSONResource FileType\nThis 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.\n```json\n \"settings\": {\n    \"resourceFileNames\": {\n        \"c\": \"cstrings.json\",\n        \"cpp\": \"cppstrings.json\"\n    }\n}\n```\n#### Sample\nThe simple sample is provided in the [ilib-loctool-samples](https://github.com/iLib-js/ilib-loctool-samples) repository.\nPlease check the [webos-js](https://github.com/iLib-js/ilib-loctool-samples/tree/main/webos-js), [webos-c](https://github.com/iLib-js/ilib-loctool-samples/tree/main/webos-c), [webos-cpp](https://github.com/iLib-js/ilib-loctool-samples/tree/main/webos-cpp), and [webos-dart](https://github.com/iLib-js/ilib-loctool-samples/tree/main/webos-dart) samples to see what JSON files look like.\n\n## License\n\nCopyright (c) 2019-2025, JEDLSoft\n\nThis plugin is license under Apache2. See the [LICENSE](./LICENSE)\nfile for more details.\n\n## Release Notes\n### v1.7.0\n* Updated to generate the plural pseudo data for the DartFileType correctly.\n\n### v1.6.1\n* Updated dependencies. (loctool: 2.24.0)\n\n### v1.6.0\n* Updated to support Dart filetype localization output.\n  * The following settings value is need in your `project.json` file to get proper ouput.\n  ```json\n  \"settings\": {\n    \"dart\": {\n        \"mappings\": {\n            \"**/*.dart\": {\n                \"template\": \"[dir]/assets/i18n/[localeUnder].json\"\n            }\n        }\n    },\n  }\n  ```\n* Converted all the unit tests from `nodeunit` to `jest`.\n\n### v1.5.8\n* Updated to use ilib's Locale class for locale parsing.\n* Removed `npm-shrinkwrap.json`. It takes a bigger memory size than I expected on webOS. so I decided not to maintain the file here.\n\n### v1.5.7\n* Updated loctool dependency information to be written both `peerDependencies` and `devDependencies`.\n\n### v1.5.6\n* Moved `loctool` package to `peerDependencies` in `package.json`.\n\n### v1.5.5\n* Moved `loctool` packages to `dependencies` in `package.json` because it is actually used in codes.\n\n### v1.5.4\n* Updated dependencies. (loctool: 2.23.1)\n* Updated to be included `npm-shrinkwrap.json` in the published files.\n\n### v1.5.3\n* Updated dependencies. (loctool: 2.22.0)\n\n### v1.5.2\n* Updated dependencies. (loctool: 2.21.0)\n\n### v1.5.1\n* Fixed to generate `ilibmanifest.json` file correctly even when a dummy file exists.\n\n### v1.5.0\n* Added a timestamp in `ilibmanifest.json` file to support wee localization.\n* Updated to skip writing `ilibmanifest.json` creation logic if it has already been done in another plugin.\n\n### v1.4.2\n* Updated dependent module version to have the latest one.(loctool: 2.20.2)\n\n### v1.4.1\n* Updated dependent module version to have the latest one.(loctool: 2.20.0)\n\n### v1.4.0\n* Updated dependencies. (loctool: 2.18.0)\n* Added ability to override language default locale.\n\n### v1.3.11\n* Updated dependencies. (loctool: 2.17.0)\n* Removed source and target comparison code when generating resources.\n  *  en(en-US) (source: Programme, target: Channel)\n  *  en/GB (source: Programme, target: Programme)\n\n### v1.3.10\n* Updated dependencies. (loctool: 2.16.3)\n* Used the logger provided by the loctool instead of using log4js directly.\n* Added node 16 version testing for circleCI. (minimum version of node is v10.0.0)\n* Fixed not to generate empty directory if content is empty even locale is in target list.\n\n### v1.3.9\n* Updated dependent module version to have the latest one.(loctool: 2.16.2)\n\n### v1.3.8\n* Updated dependent module version to have the latest one.(loctool: 2.14.1)\n\n### v1.3.7\n* Updated dependent module version to have the latest one.(loctool: 2.13.0)\n\n### v1.3.6\n* Fixed `newFile()` to get locale parameter for convert feature\n* Updated dependent module version to have the latest one.(loctool: 2.12.0)\n\n### v1.3.5\n* Updated dependent module version to have the latest one.(loctool: 2.10.3)\n\n### v1.3.4\n* Updated dependent module version to have the latest one.\n\n### v1.3.3\n* Changed en-US translation data to be located in the resource root directory.\n* Fixed not to generate resource file when the content is empty.\n* Fixed to generate `ilibmanifest.json` file properly in the nested project localization case.\n\n### v1.3.2\n* Changed the default Resource output directory to `resources`\n\n### v1.3.1\n* Fixed dependent loctool module version\n\n### v1.3.0\n* Fixed code in order not to inherit from FileType.\n* Fixed resource target path for the output to go to the project's target location properly.\n* Updated code to print log with log4js.\n\n### v1.2.0\n* Supported various resourceOutput file name. It can be specified according to project type.\n    * If the project type is c or cpp program, it should be written in project configuration.\n        ~~~~json\n        \"settings\": {\n            \"locales\": [\"en-US\", \"ko-KR\", \"zh-Hans-CN\"],\n            \"resourceFileNames\": {\n                \"c\": \"cstrings.json\",\n                \"cpp\": \"cppstrings.json\"\n            }\n        }\n        ~~~~\n\n### v1.1.1\n* Changed the way of generating manifestfile. it scans the resource output directory then add a list if the file exists.\n\n### v1.1.0\n* Generated `ilibmanifest.json` file.\n    * Updated code to generate `ilibmanifest.json` file not to load unnecessary locale directories.\n      It's implemented in projectClose()","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filib-js%2Filib-loctool-webos-json-resource","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filib-js%2Filib-loctool-webos-json-resource","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filib-js%2Filib-loctool-webos-json-resource/lists"}