[i18n][system upgrade] Upgrade i18n tooling (#186519)

Update i18n tools after the main packages upgrade. This upgrade makes
use of formatJS tooling instead of fully implementing the parsers
ourselves. It also changes our custom AST parsing from babel to the
typescript compiler.
- [x] i18n exrtract
- [x] i18n check
- [x] i18n integrate
- [x] add test cases for formatjs runner
- [x] Make sure all CLI flags are handled properly
- [x] Update tooling readme

Closes https://github.com/elastic/kibana/issues/180616
Closes https://github.com/elastic/kibana/issues/187703

### Note to reviewers

Teams outside operations and core are probably requested to review
because the `i18n_check` fixed malformed i18n messages in your plugins.
Please check and approve :elasticheart:
This commit is contained in:
Ahmad Bamieh 2024-07-16 21:47:54 +01:00 committed by GitHub
parent 026f68858c
commit 7c6aa3fc8a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
125 changed files with 24144 additions and 24484 deletions

View file

@ -7,4 +7,4 @@
*/
require('../src/setup_node_env');
require('../src/dev/run_i18n_check');
require('../src/dev/i18n_tools/bin/run_i18n_check');

View file

@ -7,4 +7,4 @@
*/
require('../src/setup_node_env');
require('../src/dev/run_i18n_extract');
require('../src/dev/i18n_tools/bin/run_i18n_extract');

View file

@ -7,4 +7,4 @@
*/
require('../src/setup_node_env');
require('../src/dev/run_i18n_integrate');
require('../src/dev/i18n_tools/bin/run_i18n_integrate');