Ericsson / CodeCompass

CodeCompass is a software comprehension tool for large scale software written in C/C++ and Java
https://codecompass.net
GNU General Public License v3.0
517 stars 101 forks source link

Implement proper internationalization in the New Frontend #607

Closed mcserep closed 1 year ago

mcserep commented 1 year ago

The current approach for the New Frontend is to store the UI phrases as enum values. While currently only the English language is supported in CodeCompass and we have no near future plans for supporting other languages, it is not really a robust solution and is not really better than hard coding the English texts in the UI code.

E.g.:

export enum SearchMethods {
  EXPRESSION = 'Search by expression',
  FILE_REGEX = 'File name filter regex',
  PATH_REGEX = 'Path filter regex',
}

It could be a much solution to place these into real translation files and use react-i18next for example for internationalization.