Koha/package.json
Jonathan Druart 4eb9816354
Bug 37303: Replace po2json with a JS version
When using __() (ie. Gettext.js) we are seeing the translations that are marked as fuzzy.
This is definitely not the expected behaviour.

It happens because (our version of) po2json are old and no longer maintained,
and just embed them.

It seems that the bin we have has been upgraded to a JS version
(different authors).

Test plan:
(replace LANG with your language code)
0. Do not apply this patch
Edit misc/translator/po/LANG-messages-js.po
Mark a string as fuzzy
Edit ./intranet-main.tt and add the following lines inside $(document).ready
  console.log(_("Your string"));
  console.log(__("Your string"));
Replace "Your string" with the string you are actually testing.

Update the templates: `koha-translate --update LANG --dev kohadev && restart_all`

Go to the Koha home page, open the console.

=> Notice that the second log in the console is displaying the fuzzy string.

1. Apply this patch
Install the new version of po2json using `yarn install`
Repeat the previous steps.

=> With this patch applied both logs show the English version of the
string.

Remove fuzzy, update the templates and try again.

Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2024-07-26 14:49:53 +01:00

97 lines
3 KiB
JSON

{
"name": "koha",
"description": "Koha is distributed under the GNU GPL version 3 or later.",
"main": "gulpfile.js",
"directories": {
"doc": "docs",
"test": "test"
},
"dependencies": {
"@cypress/vue": "^3.1.1",
"@cypress/webpack-dev-server": "^1.8.3",
"@fortawesome/fontawesome-svg-core": "^6.1.0",
"@fortawesome/free-solid-svg-icons": "^6.0.0",
"@fortawesome/vue-fontawesome": "^3.0.0-5",
"@popperjs/core": "^2.11.2",
"@redocly/cli": "^1.11.0",
"@vue/cli-service": "^5.0.1",
"babel-core": "^7.0.0-beta.3",
"bootstrap": "^4.5.2",
"css-loader": "^6.6.0",
"cypress": "^12.17.2",
"cypress-mysql": "^1.0.0",
"datatables.net-buttons": "^2.3.4",
"datatables.net-vue3": "^2.0.0",
"gulp": "^4.0.2",
"gulp-autoprefixer": "^4.0.0",
"gulp-concat-po": "^1.0.0",
"gulp-exec": "^4.0.0",
"gulp-rename": "^2.0.0",
"gulp-rtlcss": "^1.4.1",
"gulp-sass": "^5.1.0",
"gulp-sourcemaps": "^2.6.1",
"js-yaml": "^3.13.1",
"lodash": "^4.17.12",
"merge-stream": "^2.0.0",
"minimist": "^1.2.5",
"mysql": "^2.18.1",
"pinia": "^2.0.13",
"po2json": "^0.4.5",
"sass": "^1.58.1",
"style-loader": "^3.3.1",
"vue": "^3.2.31",
"vue-flatpickr-component": "^9",
"vue-router": "^4.0.14",
"vue-select": "4.0.0-beta.3"
},
"scripts": {
"css:build": "gulp css && gulp css --view opac",
"css:build:prod": "gulp build && gulp build --view opac",
"css:watch": "gulp watch",
"js:build": "webpack --mode development",
"js:watch": "webpack --mode development --watch",
"js:build:prod": "webpack --mode production",
"build": "yarn css:build && yarn js:build && yarn api:bundle",
"build:prod": "yarn css:build:prod && yarn js:build:prod && yarn api:bundle",
"cypress": "cypress",
"prettier": "prettier",
"api:bundle": "redocly bundle --ext json api/v1/swagger/swagger.yaml --output api/v1/swagger/swagger_bundle.json"
},
"repository": {
"type": "git",
"url": "git://git.koha-community.org/koha.git"
},
"resolutions": {
"minimatch": "^3.0.2",
"lodash": "^4.17.12"
},
"author": "",
"license": "GPL-3.0",
"devDependencies": {
"@babel/core": "^7.17.5",
"@babel/preset-env": "^7.16.11",
"@vue/compiler-sfc": "^3.2.31",
"babel-loader": "^8.2.3",
"babelify": "^10.0.0",
"browserify": "^17.0.0",
"clean-webpack-plugin": "^4.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"gulp-tap": "^1.0.1",
"html-webpack-plugin": "^5.5.0",
"postcss": "^8.4.14",
"postcss-selector-parser": "^6.0.10",
"stylelint": "^14.9.1",
"stylelint-config-standard-scss": "^5.0.0",
"stylelint-order": "^5.0.0",
"swagger-cli": "^4.0.4",
"ts-loader": "^9.2.7",
"typescript": "^4.6.2",
"vinyl-source-stream": "^2.0.0",
"vue-loader": "^17.0.0",
"watchify": "^4.0.0",
"webpack": "^5.69.1",
"webpack-cli": "^4.9.2",
"webpack-dev-server": "^4.7.4"
}
}