{"id":19777482,"url":"https://github.com/ilib-js/ilib-loctool-webos-javascript","last_synced_at":"2025-04-30T19:32:35.368Z","repository":{"id":35142425,"uuid":"204867936","full_name":"iLib-js/ilib-loctool-webos-javascript","owner":"iLib-js","description":"Javascript file handler plugin for webOS platform loctool","archived":false,"fork":false,"pushed_at":"2024-07-22T00:40:50.000Z","size":713,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"develop","last_synced_at":"2024-09-22T07:18:43.001Z","etag":null,"topics":["javascript","localization"],"latest_commit_sha":null,"homepage":"","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-28T06:55:53.000Z","updated_at":"2024-07-27T13:01:02.000Z","dependencies_parsed_at":"2023-09-26T07:59:11.670Z","dependency_job_id":"75f74a7d-5210-4cef-86bd-6c86e6391b87","html_url":"https://github.com/iLib-js/ilib-loctool-webos-javascript","commit_stats":{"total_commits":170,"total_committers":4,"mean_commits":42.5,"dds":0.04705882352941182,"last_synced_commit":"be5a2e73cd3ced47616bd72ef232a599398c506a"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLib-js%2Filib-loctool-webos-javascript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLib-js%2Filib-loctool-webos-javascript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLib-js%2Filib-loctool-webos-javascript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLib-js%2Filib-loctool-webos-javascript/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-javascript/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224222279,"owners_count":17275984,"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":["javascript","localization"],"created_at":"2024-11-12T05:25:16.186Z","updated_at":"2025-04-30T19:32:35.355Z","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-javascript\n\nilib-webos-loctool-javascript is a plugin for the loctool that\nallows it to read and localize JavaScript files. This plugin is optimized for the webOS platform.\n\n### JavaScript FileType\nThis plugin expects to be used [iLib](https://github.com/iLib-js/iLib) library directory or [Enact](https://enactjs.com/) framework to internationalize your JavaScript code.   \nIt extracts string usages used in the examples below by considering them as strings that need to be translated.\n* [getString](https://ilib-js.github.io/iLib/docs/api/jsdoc/ResBundle.html#getString) from iLib\n* [$L](https://enactjs.com/docs/modules/i18n/$L/) from Enact framework\n```javascript\ngetString(\"Hello\");\ngetString(\"Channel\", \"speaker_channel\");\n$L(\"Hello\");\n$L({value: \"Channel\", key: \"speaker_channel\"});\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) sample to see how the JavaScript file type is localized.\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.10.6\n* Updated dependencies. (loctool: 2.24.0)\n* Converted all the unit tests from `nodeunit` to `jest`.\n* Modified to use the same variable name as the `ilib-loctool-webos-json-resource` package name in code.\n\n### v1.10.5\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.10.4\n* Updated loctool dependency information to be written both `peerDependencies` and `devDependencies`.\n\n### v1.10.3\n* Moved `loctool` package to `peerDependencies` in `package.json`.\n\n### v1.10.2\n* Moved `loctool` package to `dependencies` in `package.json` because it is actually used in codes.\n\n### v1.10.1\n* Updated dependencies. (loctool: 2.23.1)\n* Updated to be included `npm-shrinkwrap.json` in the published files.\n\n### v1.10.0\n* Updated dependencies. (loctool: 2.22.0)\n* Added ability to disable pseudo-localization in plugin when a project's pseudo-localization is enabled.\n    ~~~~\n       \"settings\": {\n            \"javascript\": {\n                \"disablePseudo\": true\n            }\n        }\n    ~~~~\n\n### v1.9.0\n* Updated dependencies. (loctool: 2.21.0)\n* Updated not to load common data repeatedly if it's loaded from another plugin in a project.\n\n### v1.8.2\n* Updated dependencies.\n\n### v1.8.1\n* Updated dependencies.\n\n### v1.8.0\n* Updated dependencies. (loctool: 2.20.2)\n* Fixed an issue where common's locale inheritance data values were not checked.\n* Updated to match translation's reskey and resource's reskey when they are different.\n* Updated to check common data's as well when getting base translation.\n\n### v1.7.0\n* Updated to custom locale inheritance feature work properly in `generate` mode.\n* Added guard code to prevent errors when the common data path is incorrect.\n* Updated to generate resources by comparing base translation data even in `generate` mode.\n* Fixed an issue where localeinherit related data was not created properly according to the order of locales.\n* Fixed an issue where data is duplicated when it is the same as base translation in `generate` mode.\n\n### v1.6.0\n* Updated dependencies. (loctool: 2.20.0)\n* Added ability to define custom locale inheritance.\n    ~~~~\n       \"settings\": {\n            \"localeInherit\": {\n                \"en-AU\": \"en-GB\"\n            }\n        }\n    ~~~~\n* Added ability to use common locale data.\n  * App's xliff data has a higher priority, if there's no matched string there, then loctool checks data in the commonXliff directory.\n    ~~~~\n       \"settings\": {\n            \"webos\": {\n                \"commonXliff\": \"./common\"\n            }\n        }\n    ~~~~\n* Fixed an issue where multi-space could not be properly parsed in key-value use cases.\n\n### v1.5.0\n* Updated dependencies. (loctool: 2.18.0)\n* Added ability to override language default locale.\n    ~~~~\n       \"settings\": {\n            \"localeMap\": {\n                \"es-CO\": \"es\"\n            }\n        }\n    ~~~~\n* Updated generate mode to use loctool's new public method.\n\n### v1.4.7\n* Updated to check language default locale translation not to generate duplicate resources.\n* Updated to make source and key policy clear to avoid confusion.\n\n### v1.4.6\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 an issue where the $L(key,value) usage could not be parsed properly.\n\n### v1.4.5\n* Update dependent module version to have the latest one.(loctool: 2.16.2)\n\n### v1.4.4\n* Fixed pseudo localization to work properly\n* Updated dependent module version to have the latest one.(loctool: 2.14.1)\n\n### v1.4.3\n* Updated dependent module version to have the latest one.(loctool: 2.13.0)\n\n### v1.4.2\n* Updated dependent module version to have the latest one.(loctool: 2.12.0)\n\n### v1.4.1\n* Updated dependent module version to have the latest one.(loctool: 2.10.3)\n\n### v1.4.0\n* Removed commented lines before parsing so that strings in the comments will not be extracted.\n* Updated dependent module version to have the latest one.\n\n### v1.3.0\n* Updated regular Expression to extract case when resbundle object name is not `rb` or `RB`.\n* Updated code to print log with log4js.\n* Supported loctool's generate mode.\n\n### v1.2.0\n* Supported pseudo localization\n\n### v1.1.0\n* Supported xliff 2.0 style\n   * Update code to return translation data properly with xliff 2.0 format","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filib-js%2Filib-loctool-webos-javascript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filib-js%2Filib-loctool-webos-javascript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filib-js%2Filib-loctool-webos-javascript/lists"}