Bug 32030: I18N rewrite
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 26 Oct 2022 09:58:01 +0000 (11:58 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 8 Nov 2022 12:44:38 +0000 (09:44 -0300)
commitde77f3a719b2d25cef0c504b6d9899128e38a697
tree3bb4f99580e4bcf5fac637346ec23a61f74ccd96
parent07c75f1d24e25aaa1728e48e1c5628baf2a476b1
Bug 32030: I18N rewrite

The previous implementation was using vue-i18n inject localized strings
into the Vue app. However it was using json files, and we needed
additional overhead to convert from/to PO files.

I've also tried vue3-gettext that use PO, but the overhead to work with
our workflow was existent as well (see branch joubu/vue3-gettext).

vue-i18n-extract was using for extracting, and a specific misc script
(misc/translate_json.pl) was also used to generate the json file. They
can be removed.

Here we are simply reusing our existing workflow, and we will improve it
(ie. make it more vue-ish) later if we need it.

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
gulpfile.js
koha-tmpl/intranet-tmpl/prog/en/modules/erm/erm.tt
koha-tmpl/intranet-tmpl/prog/js/vue/locales/de-DE.json [deleted file]
koha-tmpl/intranet-tmpl/prog/js/vue/locales/en.json [deleted file]
koha-tmpl/intranet-tmpl/prog/js/vue/locales/es-ES.json [deleted file]
koha-tmpl/intranet-tmpl/prog/js/vue/locales/fr-FR.json [deleted file]
koha-tmpl/intranet-tmpl/prog/js/vue/main-erm.ts
misc/translate_json.pl [deleted file]
package.json