{"id":19777444,"url":"https://github.com/ilib-js/ilib-loctool-webos-ts-resource","last_synced_at":"2025-04-30T19:32:24.509Z","repository":{"id":38848521,"uuid":"235262350","full_name":"iLib-js/ilib-loctool-webos-ts-resource","owner":"iLib-js","description":"ts resource file handler plugin for webos platform loctool","archived":true,"fork":false,"pushed_at":"2025-02-19T01:18:44.000Z","size":300,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"develop","last_synced_at":"2025-04-20T01:08:23.005Z","etag":null,"topics":["localization"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/ilib-loctool-webos-ts-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":"2020-01-21T05:22:00.000Z","updated_at":"2025-02-19T02:08:07.000Z","dependencies_parsed_at":"2024-01-03T06:28:55.070Z","dependency_job_id":"c1f60ad6-d6b1-403f-944e-5b83fc6f6c5f","html_url":"https://github.com/iLib-js/ilib-loctool-webos-ts-resource","commit_stats":{"total_commits":85,"total_committers":3,"mean_commits":"28.333333333333332","dds":0.02352941176470591,"last_synced_commit":"dc964cabac3a81c044fa498112ec576e5bf0d509"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLib-js%2Filib-loctool-webos-ts-resource","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLib-js%2Filib-loctool-webos-ts-resource/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLib-js%2Filib-loctool-webos-ts-resource/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLib-js%2Filib-loctool-webos-ts-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-ts-resource/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251769486,"owners_count":21640911,"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.409Z","updated_at":"2025-04-30T19:32:24.503Z","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-ts-resource\nilib-loctool-webos-ts-resource is a plugin for the loctool that\nallows it to read and localize TS resource files. This plugin is optimized for the webOS platform.\n\n### TSResource FileType\nThis plugin is for generating [TS](https://doc.qt.io/qt-6/linguist-ts-file-format.html) type of resource file from the QML application.   \nThe TS file format used by Qt Linguist. The TS file is an intermediate output for QML localization. *.qm files are required for the application. Converting ts file to qm file work happens during a webOS build. Here's a simple ts file example.\n```xml\n   \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n   \u003c!DOCTYPE TS\u003e\n   \u003cTS version=\"2.1\" language=\"ko-KR\" sourcelanguage=\"en-US\"\u003e\n   \u003ccontext\u003e\n    \u003cname\u003eIntro\u003c/name\u003e\n       \u003cmessage\u003e\n           \u003clocation filename=\"Intro.qml\"\u003e\u003c/location\u003e\n           \u003csource\u003eHello\u003c/source\u003e\n           \u003ctranslation\u003e안녕하세요\u003c/translation\u003e\n       \u003c/message\u003e\n   \u003c/context\u003e\n   \u003c/TS\n```\n\n#### Sample\nThe simple sample is provided in [ilib-loctool-samples](https://github.com/iLib-js/ilib-loctool-samples) repository.\nPlease check the [webos-qml](https://github.com/iLib-js/ilib-loctool-samples/tree/main/webos-qml) sample to see what TS file looks 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\n## Release Notes\n### v1.5.4\n* Updated dependencies. (loctool: 2.24.0)\n* Converted all the unit tests from `nodeunit` to `jest`.\n\n### v1.5.3\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* Updated to use the path's `basename()` to get filename from the path.\n\n### v1.5.2\n* Added `loctool` package to `peerDependencies` in `package.json`.\n\n### v1.5.1\n* Updated dependencies. (loctool: 2.23.1)\n* Updated to be included `npm-shrinkwrap.json` in the published files.\n\n### v1.5.0\n* Updated dependencies. (loctool: 2.22.0)\n* Updated to set context name value properly which is not always a file name.\n\n### v1.4.2\n* Updated dependencies. (loctool: 2.21.0)\n* Fixed not to have file extension in name element with js file.\n\n### v1.4.1\n* Updated dependencies. (loctool: 2.20.2)\n\n### v1.4.0\n* Replaced dependent `xml2json` package to `xml-js`\n\n### v1.3.1\n* Updated dependencies. (loctool: 2.20.0)\n\n### v1.3.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\n### v1.2.10\n* Updated dependencies. (loctool: 2.17.0)\n\n### v1.2.9\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)\n\n### v1.2.8\n* Updated dependent module version to have the latest one. (loctool: 2.16.2)\n\n### v1.2.7\n* Updated dependent module version to have the latest one. (loctool: 2.14.1)\n\n### v1.2.6\n* Updated dependent module version to have the latest one. (loctool: 2.13.0)\n\n### v1.2.5\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.2.4\n* Updated dependent module version to have the latest one. (loctool: 2.10.3)\n\n### v1.2.3\n* Updated dependent module version to have the latest one.\n\n### v1.2.2\n* Updated code to generate resource even though source and target are the same.\n\n### v1.2.1\n* Fixed resource target path\n* Updated code to print log with log4js.\n\n### v1.2.0\n* Changed default sourcelanguage to `en-KR`.\n\n### v1.1.0\n* Fixed an issue case which a `key` value is not written to TS file.\n\n### v1.0.0\n* Implemented to generate [TS](https://doc.qt.io/qt-5/linguist-ts-file-format.html) style resource file.\n  Here's simple output example.\n   ~~~~\n   \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n   \u003c!DOCTYPE TS\u003e\n   \u003cTS version=\"2.1\" language=\"ko-KR\" sourcelanguage=\"en-US\"\u003e\n   \u003ccontext\u003e\n    \u003cname\u003eIntro\u003c/name\u003e\n       \u003cmessage\u003e\n           \u003clocation filename=\"Intro.qml\"\u003e\u003c/location\u003e\n           \u003csource\u003eHello!\u003c/source\u003e\n           \u003ctranslation\u003e안녕\u003c/translation\u003e\n       \u003c/message\u003e\n   \u003c/context\u003e\n   \u003c/TS\n   ~~~~","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filib-js%2Filib-loctool-webos-ts-resource","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filib-js%2Filib-loctool-webos-ts-resource","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filib-js%2Filib-loctool-webos-ts-resource/lists"}