Currently if the language has ToC status is determined through 2 criteria, if the language is in the hardcoded list of core languages, and if the language has ToC flag in the metadata. Moreover, the hardcoded list of core languages is duplicated both on the frontend and the backend.
It would be architecturally better if the ToC status would be determined only by the corresponding flag in the metadata, and of course that there would be no frontend/backend duplication and all ToC checks would be performed only on the backend.
Implementing that would among other things require a DB migration adding required metadata flags to all languages present in the hardcoded list.
Currently if the language has ToC status is determined through 2 criteria, if the language is in the hardcoded list of core languages, and if the language has ToC flag in the metadata. Moreover, the hardcoded list of core languages is duplicated both on the frontend and the backend.
It would be architecturally better if the ToC status would be determined only by the corresponding flag in the metadata, and of course that there would be no frontend/backend duplication and all ToC checks would be performed only on the backend.
Implementing that would among other things require a DB migration adding required metadata flags to all languages present in the hardcoded list.