{"id":19777473,"url":"https://github.com/ilib-js/ilib-loctool-webos-qml","last_synced_at":"2025-04-30T19:32:29.838Z","repository":{"id":39639888,"uuid":"235050128","full_name":"iLib-js/ilib-loctool-webos-qml","owner":"iLib-js","description":"ilib-webos-loctool-qml is a plugin for the loctool allows it to read and localize qml files. This plugins is optimized for webOS platform.","archived":true,"fork":false,"pushed_at":"2025-02-19T01:17:46.000Z","size":850,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"develop","last_synced_at":"2025-03-20T12:14:22.747Z","etag":null,"topics":["localization","qml"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/ilib-loctool-webos-qml","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-20T08:12:26.000Z","updated_at":"2025-02-19T01:59:52.000Z","dependencies_parsed_at":"2024-01-03T05:41:31.236Z","dependency_job_id":"0e8773c0-008f-4eb0-9948-0b669cfff46b","html_url":"https://github.com/iLib-js/ilib-loctool-webos-qml","commit_stats":{"total_commits":81,"total_committers":3,"mean_commits":27.0,"dds":0.0864197530864198,"last_synced_commit":"792f22568da085212e52334981b327d61dd4e419"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLib-js%2Filib-loctool-webos-qml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLib-js%2Filib-loctool-webos-qml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLib-js%2Filib-loctool-webos-qml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLib-js%2Filib-loctool-webos-qml/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-qml/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251769502,"owners_count":21640915,"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","qml"],"created_at":"2024-11-12T05:25:14.777Z","updated_at":"2025-04-30T19:32:29.832Z","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-qml\nilib-webos-loctool-qml is a plugin for the loctool allows it to read and localize QML files. This plugin is optimized for the webOS platform.\n\n### QML FileType\nThis plugin expects the strings to be marked by using proper APIs from QT suggested.\n - [qsTr()](https://doc.qt.io/qt-6/qml-qtqml-qt.html#qsTr-method)\n - [qsTranslate()](https://doc.qt.io/qt-6/qml-qtqml-qt.html#qsTranslate-method)\n - [qsTrId](https://doc.qt.io/qt-6/qml-qtqml-qt.html#qsTrId-method)\n - [qsTrIdNoOp](https://doc.qt.io/qt-6/qml-qtqml-qt.html#qsTrIdNoOp-method)\n - [qsTrNoOp](https://doc.qt.io/qt-6/qml-qtqml-qt.html#qsTrNoOp-method)\n - [qsTranslate](https://doc.qt.io/qt-6/qml-qtqml-qt.html#qsTranslate-method)\n - [qsTranslateNoOp](https://doc.qt.io/qt-6/qml-qtqml-qt.html#qsTranslateNoOp-method)\n\n```qml\nText { text: qsTr(\"hello\") }\nText { text: qsTranslate(\"CustomContext\", \"hello\") }\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 how the qml 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.7.5\n* Fixed newline issues where resources of source string containing '\\n' were not generated\n\n### v1.7.4\n* Updated dependencies. (loctool: 2.24.0)\n* Converted all the unit tests from `nodeunit` to `jest`.\n\n### v1.7.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\n### v1.7.2\n* Added `loctool` package to `peerDependencies` in `package.json`.\n\n### v1.7.1\n* Updated dependencies. (loctool: 2.23.1)\n* Updated to be included `npm-shrinkwrap.json` in the published files.\n\n### v1.7.0\n* Updated dependencies. (loctool: 2.22.0)\n* Updated to use first argument of `qsTranslate()` as a context value instead of file name.\n* Added ability to disable pseudo-localization in plugin when a project's pseudo-localization is enabled.\n    ~~~~\n       \"settings\": {\n            \"json\": {\n                \"disablePseudo\": true\n            }\n        }\n    ~~~~\n\n### v1.6.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.5.1\n* Fixed issues where didn't handle single quotes and multi-line properly.\n\n### v1.5.0\n* Updated dependencies. (loctool: 2.20.2)\n* Fixed an issue where common's locale inheritance data values were not checked.\n\n### v1.4.1\n* Added guard code to prevent errors when the common data path is incorrect.\n* Fixed an issue where localeInherit related data was not created properly.\n\n### v1.4.0\n* Updated dependencies. (loctool: 2.20.0)\n* Added ability to define custom locale inheritance.\n  * e.g. en-AU inherits translations from en-GB\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\n### v1.3.7\n* Updated dependencies. (loctool: 2.18.0)\n\n### v1.3.6\n* Updated dependencies. (loctool: 2.17.0)\n\n### v1.3.5\n* Updated dependencies. (loctool: 2.16.3)\n* Added node 16 version testing for circleCI. ( minimum version of node is v10.0.0)\n* Added `js` to the list of file extensions that this plugin handles.\n* Used the logger provided by the loctool instead of using log4js directly.\n* Fixed an issue not to filter newline character for window.\n\n### v1.3.4\n* Updated dependent module version to have the latest one. (loctool: 2.16.2)\n\n### v1.3.3\n* Fixed pseudo localization to work properly\n* Updated dependent module version to have the latest one. (loctool: 2.14.1)\n\n### v1.3.2\n* Updated dependent module version to have the latest one. (loctool: 2.13.0)\n\n### v1.3.1\n* Updated dependent module version to have the latest one. (loctool: 2.12.0)\n\n### v1.3.0\n* Updated code to extract the i18n comment part more appropriately. If webOS style comments exist, The [general comment style](https://doc.qt.io/qt-5/qtquick-internationalization.html) is ignored.\n* Updated dependent module version to have the latest one. (loctool: 2.10.3)\n\n### v1.2.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.1.1\n* Updated code to print log with log4js.\n\n### v1.1.0\n* Implemented to pseudo localization properly.\n* Used `SourceContextResourceString` in qml file string to solve an issue regarding duplicated keys are exist in the same file\n\n### v1.0.0\n* Implemented to parse properly regarding resource bundle usage of qml files.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filib-js%2Filib-loctool-webos-qml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filib-js%2Filib-loctool-webos-qml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filib-js%2Filib-loctool-webos-qml/lists"}