[I18n De-Angular] Remove angular-related parts of OpenSearch Dashboards i18n system #4018
Labels
de-angular
de-angularize work
technical debt
If not paid, jeapardizes long-term success and maintainability of the repository.
v2.11.0
Introduction
OpenSearch Dashboards i18n system has two parts:
the i18n tools
The i18n tools is a set of developer tools for handling internationalized messages in the source code. Its primary functions include:
osd-i18n
The osd-i18n is a runtime library used for translating messages in the user interface based on the user's locale. It works in multiple environments (browser, NodeJS) and is compatible with several UI frameworks (ReactJS, AngularJS). It uses the JSON files generated by src/dev/i18n to provide translated messages to the user. When the application is running, it uses osd-i18n package to display the correct translations to the user. The package fetches the appropriate translations based on the user's set locale, and these translations are then displayed in the user interface. It uses i18n engine under the hood.
To summarize, src/dev/i18n is used during the development process to extract, integrate, and validate internationalized messages, while osd-i18n is used at runtime to provide translated messages to the user.
De-Angular task
the i18n tools
osd-i18n
osd-i18n includes both React and AngularJS versions of the i18n system. The AngularJS system is a wrapper around the main i18n engine, and it consists of four main components: a provider, a service, a directive, and a filter. We need to completely remove packages/osd-i18n/angular and packages/osd-i18n/src/angular. Also update test and document. Removal of packages/osd-i18n/src/angular will break all the usages of
By a quick search,
@osd/i18n/angular
is used in the following places:The text was updated successfully, but these errors were encountered: